#cargo #credentials #token #artifactory #command-line #cargo-subcommand #command-arguments

app cargo-artifactory-token

A cargo subcommand to manage Artifactory access tokens

3 stable releases

1.1.0 Mar 12, 2024
1.0.1 Mar 12, 2024
1.0.0 Mar 8, 2024

#115 in Cargo plugins

Download history 374/week @ 2024-03-07 68/week @ 2024-03-14 2/week @ 2024-03-21 32/week @ 2024-03-28 24/week @ 2024-04-04

91 downloads per month


1.5K SLoC


License GitLab Release Crates.io Version Source Code Repository GitLab Pipeline Status GitLab Code Coverage Crates.io MSRV

🦀-🐸-🪙 — A cargo subcommand to manage Artifactory access tokens.

Screen recording of a token creation{width=865}


cargo install --locked cargo-artifactory-token


See help for a detailed description of available commands, their arguments, and their default values:

cargo artifactory-token --help


Each argument some-argument can be set with a short (-s) or long (--some-argument) CLI argument, or read from an upper snake case environment variable (SOME_ARGUMENT).


  • endpoint: URL of the Artifactory token creation endpoint
  • username: your Artifactory username (e.g. flastname for First Lastname)
  • duration: desired token duration


  • file: path to your cargo credentials file
  • registry: name of the registry in your credentials file


  • access-token: your private token value
  • token-type: your private token type

Global arguments

These arguments apply to all commands.

  • quiet: suppress all superfluous output


Create a token

Retrieve a token and save it with its renewal information. This is the default subcommand.

Takes Source and Credentials arguments.

cargo artifactory-token create

Generate a token

Retrieve a token and display it.

Takes Source arguments.

cargo artifactory-token generate

Renew a token

Retrieve a token using saved renewal information and save it.

Takes Credentials arguments.

cargo artifactory-token renew

Save an existing token

Save a token retrieved by another means.

Takes Credentials and Token arguments.

cargo artifactory-token save


~443K SLoC