Usage
initiat secret get <secret-key> [options]
Arguments
secret-key
required
The key/name for the secret
Options
-c
|
--copy
Copy value to clipboard instead of printing
--copy-kv
Copy KEY=VALUE format to clipboard
-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
Get secret with full project path
initiat secret get API_KEY --project-path acme-corp/production
Get secret with short flags
initiat secret get API_KEY -P acme-corp/production
Get secret and copy value to clipboard
initiat secret get API_KEY -p production --copy
Get secret and copy KEY=VALUE format to clipboard
initiat secret get API_KEY -p production --copy-kv
How it works
-
→
Retrieves encrypted secret from server
-
→
Gets project key and decrypts it
-
→
Decrypts secret value client-side
-
→
Outputs JSON with secret metadata (default)
-
→
Optionally copies value to clipboard (--copy)
-
→
Optionally copies KEY=VALUE format to clipboard (--copy-kv)
Output
🔍 Getting secret 'API_KEY' from project acme-corp/production...
🔓 Decrypting secret value...
{
"key": "API_KEY",
"value": "sk-1234567890abcdef",
"version": 1,
"project_id": "ws_abc123",
"updated_at": "2024-01-15T10:30:00Z",
"created_by_device": "my-laptop"
}