metalcloud-cli secret

Manage encrypted secrets for secure credential storage

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

metalcloud-cli secret list

Get details of a specific secret

metalcloud-cli secret get 123

Create a new secret from JSON file

metalcloud-cli secret create –config-source ./secret.json

Create a secret from stdin

echo ‘{“name”:”my-secret”,”value”:”secret-value”,”usage”:”credential”}’ | metalcloud-cli secret create –config-source pipe

Update a secret

metalcloud-cli secret update 123 –config-source ./updated-secret.json

Delete a secret

metalcloud-cli secret delete 123

Options

  -h, --help   help for secret

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

Auto generated by spf13/cobra on 11-Aug-2025