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 authentication tokens

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