cs Verified current stable Not installed? Build Tools

Cs / Fetch Specific Jar Version

Fetch Specific Jar Version

Cs command syntax to fetch specific jar version. Copyable examples, output expectations, and common mistakes.

$
Terminal
cs fetch <group_id>:<artifact_id>:<artifact_version>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Fetching artifact...\n\nGroup ID       | Artifact ID       | Version        | Status   \n---------------|-------------------|----------------|----------\ncom.example    | example-artifact  | 1.2.3          | Downloaded\n

Command Breakdown

What each part is doing

cs
Base Command
The executable that performs this operation. Here it runs Cs before the shell applies any redirect operators.
<group_id>
group id
The value supplied for group id.
<artifact_id>
artifact id
The value supplied for artifact id.
<artifact_version>
artifact version
The value supplied for artifact version.

How To Run

Execution path

  1. Step 1

    Run the command: cs fetch com.example:example-artifact:1.2.3

  2. Step 2

    Verify the download by checking the output or using: ls ~/.m2/repository/com/example/example-artifact/1.2.3/

Alternative Approaches

Comparable commands in other tools

Alternative build tools tools for the same job.