CLI: Object Storage
Manage S3-compatible object storage buckets and access keys using the DanubeData CLI.
Prerequisites
- DanubeData CLI installed
- Authenticated via
danube auth,danube login, orDANUBE_TOKEN
Quick start
List your buckets:
danube storage buckets ls
Create a new bucket:
danube storage buckets create --name my-bucket --region fsn1
Bucket management
List buckets
danube storage buckets ls
Shows all buckets with ID, name, region, status, storage usage, and object count.
Create a bucket
Interactive
danube storage buckets create
The CLI guides you through naming, region selection, and optional settings.
With flags
danube storage buckets create --name my-bucket --region fsn1 --versioning
View bucket details
danube storage buckets get <id>
Displays full bucket details including endpoint URL, storage usage, object count, and configuration.
Update bucket settings
danube storage buckets update <id> --size-limit 10GB --encryption
danube storage buckets update <id> --public --display-name "My Assets"
Available settings:
--size-limit— Maximum storage size--encryption— Enable server-side encryption--public/--private— Toggle public access--display-name— Set a display name
View bucket metrics
danube storage buckets metrics <id>
Shows the current snapshot: storage usage, object count, 24h requests, error rate, p50/p95 latency, egress/ingress bytes, and a freshness badge.
Trend (time-series)
danube storage buckets metrics trend <id>
danube storage buckets metrics trend <id> --window 7d --format table
-w, --window—24h(default),7d, or30d-r, --resolution—1m,5m,1h,1d(auto by default)-f, --format—sparkline(default),table,csv, orjson
Top objects
danube storage buckets metrics top <id> --by size
-b, --by—size(default),egress, orrequests-l, --limit— number of objects to return (default10)
Health
danube storage buckets metrics health <id>
Shows pending multipart uploads, deleted-version size (reclaimable space), and the last health-check time.
Freshness in scripts: these commands exit with code 3 when the underlying data is stale or not yet available, so automation can branch on data freshness.
Delete a bucket
danube storage buckets delete <id>
Prompts for confirmation. Deletion may take time for buckets with many objects.
Access key management
Access keys provide S3-compatible credentials for connecting to your buckets from applications, backup tools, or S3 clients.
List access keys
danube storage keys ls
Shows all access keys with ID, name, access key ID, and creation date.
Create an access key
danube storage keys create --name "deploy-key"
Important: The secret key is displayed only once. Save it immediately.
View access key details
danube storage keys get <id>
Shows key details (the secret key is not shown again after creation).
Revoke an access key
danube storage keys revoke <id>
Immediately revokes the key. Any applications using this key will lose access.
Using with S3 clients
After creating an access key, use it with any S3-compatible client:
# AWS CLI
aws configure
# Access Key ID: <from danube storage keys create>
# Secret Access Key: <from danube storage keys create>
# Region: fsn1
aws --endpoint-url https://s3.danubedata.ro s3 ls
# rclone
rclone config
# Type: s3
# Provider: Other
# Endpoint: https://s3.danubedata.ro
Complete workflow example
# Install the CLI
npm install -g @danubedata/cli
# Authenticate
danube auth
# Create a bucket with versioning
danube storage buckets create --name my-backups --region fsn1 --versioning
# Create an access key for your application
danube storage keys create --name "app-key"
# Save the access key ID and secret key!
# Check bucket metrics
danube storage buckets metrics <id>
# List all keys
danube storage keys ls
Next steps
- CLI Overview — Installation, auth, and configuration
- CLI: VPS Instances — Manage VPS instances
- Object Storage overview — Full object storage reference
- Object Storage quick start — Dashboard-based guide
Questions? Contact support at support@danubedata.ro