gritpack cargo
Set up and check Cargo for the hub's Cargo registry
gritpack cargo [OPTIONS] <COMMAND>
Commands
- setup
- Add the hub to Cargo as a named registry, or update it
- doctor
- Check Cargo, your login, its token, TLS and the registry settings
Options
-h, --help | Print help |
gritpack cargo setup
Add the hub to Cargo as a named registry, or update it
gritpack cargo setup [OPTIONS] --registry <REGISTRY> --profile <PROFILE>
Options
--registry <REGISTRY> | Cargo registry name used in Cargo.toml dependency declarations |
--profile <PROFILE> | Login profile whose credentials Cargo uses |
--config <CONFIG> | Profile configuration file |
--cargo-config <CARGO_CONFIG> | Cargo configuration file to update |
--index <INDEX> | The hub's Cargo index URL; by default the profile's hub on port 7446 |
--force | Replace an existing registry setting that differs |
--format <FORMAT> | Output format: human or 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, --help | Print help |
gritpack cargo doctor
Check Cargo, your login, its token, TLS and the registry settings
gritpack cargo doctor [OPTIONS] --registry <REGISTRY>
Options
--registry <REGISTRY> | Cargo registry name to inspect |
--cargo-config <CARGO_CONFIG> | Cargo configuration file to inspect |
--format <FORMAT> | Output format: human or 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, --help | Print help |