3 stable releases
1.1.0 | Mar 12, 2024 |
---|---|
1.0.1 | Mar 12, 2024 |
1.0.0 | Mar 8, 2024 |
#191 in Cargo plugins
115KB
1.5K
SLoC
cargo-artifactory-token
🦀-🐸-🪙 — A cargo subcommand to manage Artifactory access tokens.
{width=865}
Installation
cargo install --locked cargo-artifactory-token
Usage
See help for a detailed description of available commands, their arguments, and their default values:
cargo artifactory-token --help
Arguments
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
).
Source
- endpoint: URL of the Artifactory token creation endpoint
- username: your Artifactory username (e.g.
flastname
for First Lastname) - duration: desired token duration
Credentials
- file: path to your cargo credentials file
- registry: name of the registry in your credentials file
Token
- 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
Commands
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
Dependencies
~12–24MB
~404K SLoC