Unbedocs

CLI reference

Authenticate, select a secret set, manage values, and inject them directly into a child process.

Installation

Install
npm install --global unbe-cli
Verify installation
unbe --version

Install the unbe-cli package globally to make theunbe command available in your terminal. Run the same install command again to update to the latest release.

Authentication

Interactive login
unbe login
unbe whoami

Interactive login opens an authorization flow and stores the resulting credential in the global CLI configuration. For a machine or non-interactive environment, provide a scoped token instead.

Choose a target

Terminal
unbe use -w acme -p atlas-api -e development

The saved target becomes the default for commands run in this repository. Omit flags to use the keyboard-driven picker, or pass--global to save a user-wide fallback.

Read secrets

Terminal
unbe secrets list
unbe secrets pull --format env
unbe secrets pull --format json

Values are sensitive

Commands that include values can expose credentials in terminal output, shell logs, or captured CI output. Prefer metadata-only listing unless you need the complete values.

Write secrets

Terminal
unbe secrets set STRIPE_SECRET_KEY sk_live_...
unbe secrets import --from .env
unbe secrets delete STRIPE_SECRET_KEY

Set updates one key. Import applies multiple dotenv entries to the selected environment. Delete is destructive and requires confirmation in an interactive terminal.

Run a command

Terminal
unbe run -- npm run dev
unbe run -- node dist/server.js

The first -- ends Unbe option parsing. The remaining arguments are started as the child command with the selected values in its environment.

Watch mode

Terminal
unbe run --watch -- npm run dev

[unbe 14:06:22] watching acme/atlas-api/development; 6 secrets
[unbe 14:08:47] changed: DATABASE_URL
[unbe 14:08:48] restarted command with 6 secrets

Watch mode checks for secret revisions and restarts the child process after changes settle. If connectivity is interrupted, the current child continues running while the watcher retries and reports recovery.

Command reference

unbe login

Authorize the CLI through the browser.

unbe login --token <token>

Save an existing machine token.

unbe logout

Remove the global login token.

unbe whoami

Show the current identity and resolved target.

unbe use -w <workspace> -p <project> -e <env>

Save target defaults for this repository.

unbe secrets list

List keys and metadata without values.

unbe secrets list --values

Include complete values in the output.

unbe secrets pull --format env

Print dotenv-formatted values to stdout.

unbe secrets pull --format json

Print values as JSON.

unbe secrets pull --out .env.local

Write values to an explicit file.

unbe secrets set KEY value

Create or replace one secret.

unbe secrets import --from .env

Import dotenv-formatted values.

unbe secrets delete KEY

Delete one secret after confirmation.

unbe run -- <command>

Run a child process with secrets injected.

unbe run --watch -- <command>

Restart a child process when secrets change.

On this page