5 releases

0.1.4 Jun 18, 2024
0.1.3 Nov 14, 2023
0.1.2 Mar 23, 2023
0.1.1 Feb 23, 2023
0.1.0 Dec 14, 2022

#230 in Cargo plugins

27 downloads per month

Apache-2.0

31KB
119 lines

cargo-ktra-login

A Cargo subcommand that logs you in to your little cargo registry.

What is this for?

Given a username and a password, this Cargo subcommand will perform the following steps:

  • Identify the registry for the current package
  • Check out the registry's repository
  • Use the ktra login API to generate a token
  • Add the token to Cargo

Usage

cargo-ktra-login has the following command signature:

Log in to private ktra registries using cargo

Usage: cargo ktra-login [OPTIONS] <USERNAME> <PASSWORD>

Arguments:
  <USERNAME>  The user account to log in with
  <PASSWORD>  The account password to log in with

Options:
      --manifest-path <PATH>  Path to Cargo.toml
      --dry-run               Check that the manifest is valid and that the remote registry exists, but don't generate a token
      --registry <REGISTRY>   The name of the registry to log in to
  -h, --help                  Print help
  -V, --version               Print version

Dependencies

~55–75MB
~1.5M SLoC