*_secret flags for credentials whenever possible. They store secret references (env://, keychain://, wincred://, secret-service://) instead of secret values.
Usage
Options
string
required
Store reference name. Used to link profiles to this store.
string
required
Store URI. Formats:
local:<path>, s3:<bucket>[/<prefix>], b2:<bucket>[/<prefix>], sftp://[user@]host[:port]/<path>.S3/S3-Compatible Options
string
S3 region (e.g.,
us-east-1, eu-west-1).string
AWS shared config profile name.
string
S3-compatible endpoint URL (for MinIO, Cloudflare R2, etc.).
string
S3 static access key (stored directly in YAML).
string
S3 static secret key (stored directly in YAML).
string
Secret reference for S3 access key (for example
env://AWS_ACCESS_KEY_ID, keychain://cloudstic/prod/s3-access-key).string
Secret reference for S3 secret key (for example
env://AWS_SECRET_ACCESS_KEY, keychain://cloudstic/prod/s3-secret-key).string
Environment variable name for S3 access key. The env var is resolved at backup time.
string
Environment variable name for S3 secret key. The env var is resolved at backup time.
string
Environment variable name for AWS profile. The env var is resolved at backup time.
Backblaze B2 Options
string
B2 application key ID (stored directly in YAML).
string
B2 application key (stored directly in YAML).
string
Secret reference for the B2 key ID (for example
env://B2_KEY_ID, keychain://cloudstic/prod/b2-key-id).string
Secret reference for the B2 application key (for example
env://B2_APP_KEY, keychain://cloudstic/prod/b2-app-key).SFTP Store Options
string
SFTP password (stored in YAML; prefer
-store-sftp-password-env).string
Path to SFTP private key (stored directly in YAML).
string
Secret reference for SFTP password.
string
Secret reference for SFTP private key path.
string
Environment variable name for SFTP password.
string
Environment variable name for SFTP private key path.
string
Path to custom
known_hosts file for host key validation.boolean
Skip host key validation (INSECURE).
Encryption Options
string
Secret reference for repository password.
string
Secret reference for platform key (64-char hex).
string
Secret reference for recovery key mnemonic.
string
Legacy env-var shortcut for repository password. Converted to
password_secret: env://... when saved.string
Legacy env-var shortcut for platform key. Converted to
encryption_key_secret: env://... when saved.string
Legacy env-var shortcut for recovery key. Converted to
recovery_key_secret: env://... when saved.string
AWS KMS key ARN for envelope encryption. Stored directly (not a secret).
string
AWS KMS region.
string
Custom AWS KMS endpoint URL.
General Options
string
Path to the profiles YAML file.
boolean
default:"false"
Disable interactive prompts. Missing required fields cause an error instead of prompting.
Examples
Interactive Store Initialization
In interactive mode (the default), after saving the basic store config, Cloudstic guides you through encryption configuration and store initialization.Store names must match
^[a-zA-Z0-9][a-zA-Z0-9._-]*$ (start with an alphanumeric character, then alphanumerics, dots, underscores, or hyphens). Store URIs must use a valid scheme: local, s3, b2, or sftp.Step 1: Encryption Configuration
If no encryption flags are provided on the command line, you are prompted to choose an encryption method:- Password and Platform key prompt where to store the secret:
- Environment variable reference (
env://...) - Native secret store reference:
- macOS:
keychain://service/account - Windows:
wincred://target - Linux:
secret-service://collection/item
- macOS:
- Environment variable reference (
- AWS KMS key: prompts for the KMS key ARN and AWS region.
- No encryption: skips encryption setup. Data is stored unencrypted.
profiles.yaml stores only the
reference.
The encryption configuration is saved to profiles.yaml alongside the store entry.
Step 2: Connectivity Check and Init
After saving, Cloudstic checks whether the store is accessible and initialized:cloudstic store verify to run this configuration/
access validation on demand. Use cloudstic check for full
repository integrity verification.
Full interactive example (macOS Keychain)
Secret references
Stores should use secret references for credentials and encryption material:env://VAR_NAMEkeychain://service/accountwincred://targetsecret-service://collection/item
profiles.yamlstays free of raw secret values- You can move secrets between env vars and native secret stores without changing command flows
- Secret rotation can happen in your secret backend without rewriting profile structure
See Also
- cloudstic store list: List configured stores
- cloudstic store show: Show store details
- cloudstic store verify: Validate store credentials and access
- cloudstic store init: Initialize a configured store by reference
- cloudstic profile new: Create a profile that references a store
- Using Profiles: Complete profiles guide