Skip to main content

CLI Overview

The Envshed CLI (envshed) lets you manage secrets from the terminal.

Commands

CommandDescription
envshed initCreate a .envshed.json project config
envshed loginAuthenticate with Envshed
envshed whoamiShow the currently logged-in user
envshed branchShow the current environment context
envshed envSwitch the active environment
envshed pullPull secrets to a .env file
envshed pushPush secrets from a .env file
envshed runRun a command with secrets injected
envshed orgsList organizations
envshed projectsList projects in an organization
envshed envsList environments in a project
envshed tokenManage personal and service tokens

Global Options

FlagDescription
--locale <code>Override the display language (e.g., en, es). Defaults to system locale.

Global behavior

All commands that operate on secrets (pull, push, run) require three pieces of context: organization, project, and environment. These can be provided via:

  1. CLI flags (-o, -p, -e)
  2. Project config (.envshed.json)

See Configuration for the full resolution order.

When context is resolved from config, the CLI prints it before executing:

  my-org / my-project / development

Language / Locale

The CLI supports multiple languages. The display language is resolved in this order:

  1. --locale flag (e.g., envshed --locale es pull)
  2. locale field in ~/.envshed/config.json
  3. System locale (LANG / LC_ALL environment variables)
  4. Default: en (English)

Currently supported: en (English), es (Spanish).