metalcloud-cli secret
Manage encrypted secrets for secure credential storage
Synopsis
Section titled “Synopsis”Manage encrypted secrets for secure credential storage.
Secrets provide a secure way to store sensitive information like passwords, API keys, and other credentials that can be referenced in your infrastructure configurations. All secret values are encrypted at rest and in transit.
Available Commands: list List all secrets get Get secret details by ID create Create a new secret update Update an existing secret delete Delete a secret config-example Show example configuration format
Examples:
List all secrets
Section titled “List all secrets”metalcloud-cli secret list
Get details of a specific secret
Section titled “Get details of a specific secret”metalcloud-cli secret get 123
Create a new secret from JSON file
Section titled “Create a new secret from JSON file”metalcloud-cli secret create —config-source ./secret.json
Create a secret from stdin
Section titled “Create a secret from stdin”echo ’{“name”:“my-secret”,“value”:“secret-value”,“usage”:“credential”}’ | metalcloud-cli secret create —config-source pipe
Update a secret
Section titled “Update a secret”metalcloud-cli secret update 123 —config-source ./updated-secret.json
Delete a secret
Section titled “Delete a secret”metalcloud-cli secret delete 123
Options
Section titled “Options” -h, --help help for secretOptions inherited from parent commands
Section titled “Options inherited from parent commands” -k, --api_key string MetalCloud API key -c, --config string Config file path -d, --debug Set to enable debug logging -e, --endpoint string MetalCloud API endpoint -f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text") -i, --insecure_skip_verify Set to allow insecure transport -l, --log_file string Log file path -v, --verbosity string Log level verbosity (default "INFO")SEE ALSO
Section titled “SEE ALSO”- metalcloud-cli - MetalCloud CLI
- metalcloud-cli secret config-example - Show example secret configuration format
- metalcloud-cli secret create - Create a new secret
- metalcloud-cli secret delete - Delete a secret
- metalcloud-cli secret get - Get secret details by ID
- metalcloud-cli secret list - List all secrets
- metalcloud-cli secret update - Update an existing secret