gritpack login

Log in to a hub and save the credential it issues

Generated from gritpack login --helpGritpack 1.2.63
gritpack login [OPTIONS] [HUB_OR_EMAIL]

Arguments

[HUB_OR_EMAIL]The hub to log in to, or your email address; the same as --hub or --email

Options

--email <EMAIL>Account email address; prompted on an interactive terminal when omitted
--hub <HUB>The hub to log in to (its enrollment address), as host[:port]; default $GRITPACK_ENROLLMENT_SERVER, else the public hub
--ca <CA>Certificate authority used to authenticate the hubEnvironment: GRITPACK_CA
--code <ENROLLMENT_CODE>Short-lived enrollment code from the hub's operatorEnvironment: GRITPACK_ENROLLMENT_CODE · Also: --enrollment-code
--credentials-dir <CREDENTIALS_DIR>Parent directory for issued credential directoriesEnvironment: GRITPACK_CREDENTIALS_DIR · Default: ~/.frogfish/gritpack/credentials
--profile <PROFILE>Name of the login profile to create or refreshDefault: default
--package-hub <HUB>The hub's package address, when it differs from the one Gritpack infers
--config <CONFIG>Profile configuration fileEnvironment: GRITPACK_CONFIG · Default: ~/.frogfish/gritpack/config.toml
--store <STORE>Where to keep the credential. auto is the Keychain on macOS and a file elsewhere; under CI, choose file or runDefault: auto · Values: auto, file, keychain, run
--run-project <RUN_PROJECT>Project in the run secret store, with --store runDefault: gritpack
--run-environment <RUN_ENVIRONMENT>Environment in the run secret store, with --store runDefault: default
--format <FORMAT>Output format: human or jsonDefault: human · Values: human, json
--json[=<FIELDS>]Same as --format json; --json=name,version keeps only those fields
--jq <EXPRESSION>Print the JSON output through a jq expression, strings unquoted
-h, --helpPrint help

Examples

$ gritpack login
$ gritpack login hub.example.com --email you@example.com
$ gritpack login --store file --code <code> --email you@example.com