KeyEnvKeyEnv

CLI Reference

Complete reference for all KeyEnv CLI commands.

CLI Reference

The KeyEnv CLI provides commands for managing secrets from your terminal.

Global Options

These options work with all commands:

OptionDescription
--jsonOutput JSON instead of human-readable text
-q, --quietMinimize output (only essential info)
--no-colorDisable colored output
-v, --verboseEnable verbose output
-h, --helpPrint help information
-V, --versionPrint version

Command Categories

Authentication

  • login - Authenticate with KeyEnv
  • logout - Clear stored credentials
  • whoami - Display current user

Projects

  • init - Initialize a project
  • projects - List all projects
  • switch - Switch to a different project

Secrets

  • pull - Pull secrets from server
  • push - Push secrets to server
  • list - List all secrets
  • get - Get a secret value
  • set - Set a secret value
  • delete - Delete a secret
  • export - Export secrets to various formats

Workflow

  • run - Run command with secrets
  • diff - Compare local and remote secrets
  • history - View secret history

Security

  • scan - Scan for hardcoded secrets in your codebase

Tokens

Teams

Rotations

  • rotations - Manage secret rotation configurations

Update

Utility

See the full reference for all commands on a single page.

On this page