cs fetch

Fetch fetches the JARs of dependencies. More information: https://get-coursier.io/docs/cli-fetch.

cs fetch group_id:artifact_id:artifact_version

CP="$(cs fetch --classpath org.scalameta::scalafmt-cli:latest.release)"

cs fetch --sources group_id:artifact_id:artifact_version

cs fetch --javadoc group_id:artifact_id:artifact_version

cs fetch --default=true --sources --javadoc group_id:artifact_id:artifact_version

cs fetch --dependency-file path/to/file1 --dependency-file path/to/file2 ...