Skip to content

metalcloud-cli bucket get-credentials

Get access credentials for a bucket

Retrieve access credentials for a specific bucket within an infrastructure.

This command displays the credentials required to access the bucket programmatically, including access keys, secrets, and endpoint information. These credentials can be used with S3-compatible tools and SDKs to interact with the bucket.

Required Arguments: infrastructure_id_or_label The ID or label of the infrastructure containing the bucket bucket_id The unique identifier of the bucket

Examples:

metalcloud-cli bucket get-credentials 100 42

Get credentials using infrastructure label

Section titled “Get credentials using infrastructure label”

metalcloud-cli bucket get-credentials production bucket-abc123

metalcloud-cli bucket credentials staging my-bucket-id

metalcloud-cli bucket get-credentials infrastructure_id_or_label bucket_id [flags]
-h, --help help for get-credentials
-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")

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

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”