Usage
initiat secret set <secret-key> --value VALUE [options]
Arguments
secret-key
required
The key/name for the secret
Options
-v
|
--value
required
Secret value
-d
|
--description
Optional description for the secret
-f
|
--force
Overwrite existing secret without confirmation
-P
|
--project-path
Full project path (org/project) or alias
-p
|
--project
Project name (uses default org or --org)
--org
Organization slug (used with --project)
Examples
Set secret with full project path
initiat secret set API_KEY --value "sk-1234567890abcdef" --project-path acme-corp/production
Set secret with separate org/project
initiat secret set DB_PASSWORD --org acme-corp --project production --value "super-secret-pass" --description "Production database password"
Set secret with short flags
initiat secret set API_KEY -P acme-corp/production -v "sk-1234567890abcdef"
Force overwrite existing secret
initiat secret set API_KEY -p production -v "new-value" --force
How it works
-
→
Validates secret key and value
-
→
Retrieves project key from server
-
→
Encrypts secret value client-side
-
→
Uploads encrypted secret to server
-
→
Shows confirmation with metadata
Output
🔐 Setting secret 'API_KEY' in project acme-corp/production...
🔒 Encrypting secret value...
📡 Uploading encrypted secret to server...
✅ Secret 'API_KEY' set successfully!
Version: 1
Updated: 2024-01-15T10:30:00Z
Created by: my-laptop