#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

#87 in Cargo plugins

Download history 141/week @ 2024-03-04 299/week @ 2024-03-11 4/week @ 2024-03-18 55/week @ 2024-04-01

364 downloads per month

GPL-3.0-only

115KB
1.5K SLoC

cargo-artifactory-token

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}

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

~11–26MB
~439K SLoC