cargo-artifactory-token

Crates.iocargo-artifactory-token
lib.rscargo-artifactory-token
version1.1.0
sourcesrc
created_at2024-03-08 00:39:38.29944
updated_at2024-03-12 22:17:03.791602
descriptionA cargo subcommand to manage Artifactory access tokens.
homepage
repositoryhttps://gitlab.com/sufflope/cargo-artifactory-token
max_upload_size
id1166399
size238,329
Jean-Sébastien Bour (Sufflope)

documentation

README

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
Commit count: 0

cargo fmt