$ initiat commands
$ initiat secret get
Get and decrypt a secret value from the specified project
Back to Docs

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

  1. Retrieves encrypted secret from server

  2. Gets project key and decrypts it

  3. Decrypts secret value client-side

  4. Outputs JSON with secret metadata (default)

  5. Optionally copies value to clipboard (--copy)

  6. 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"
}

      
    
© 2025 Initiat Technologies. All rights reserved.