Skip to content

CLI reference

This page is generated from the enw CLI definitions with just docs-cli - do not edit it by hand.

In addition to the subcommands below, enw [-y] :<gear> [entry] dispatches to an environment’s gear entries directly.

This document contains the help content for the enw command-line program.

Command Overview:

Usage: enw [OPTIONS] <COMMAND>

  • activate — Activate a workspace for a given environment, creating it if needed. Use NAME=RECIPE to create environment NAME from the recipe of RECIPE; if NAME already exists the recipe part is ignored.
  • goal — Show, set, or clear the current environment’s goal
  • info — Show information about an environment
  • kanban — interactive kanban board of environments grouped by status
  • ls — list existing environments and/or available recipes
  • mark — Set the status of the current environment
  • meta — Refresh environment metadata resolved once at cook time
  • prep — Cook (if needed) and print the env path; no adapter contact
  • rm — Remove an environment
  • run — Run a command via the active environment’s adapter
  • shell — Run your shell inside the current environment, waiting while it is being prepared. Intended as a terminal emulator’s configured shell: with no environment it degrades to the plain shell.
  • wrap — Run an application/command inside an environment
  • --env <ENV>

Activate a workspace for a given environment, creating it if needed. Use NAME=RECIPE to create environment NAME from the recipe of RECIPE; if NAME already exists the recipe part is ignored.

Usage: enw activate [OPTIONS] <NAME>

  • <NAME>
  • --no-hooks — Skip garnish run_on: [Cook] autorun hooks when cooking the env

Show, set, or clear the current environment’s goal

Usage: enw goal [COMMAND]

  • show — Print the current goal (default when no subcommand is given)
  • set — Set the current environment’s goal to free text
  • clear — Clear the current environment’s goal

Print the current goal (default when no subcommand is given)

Usage: enw goal show [OPTIONS]

  • --json — Output as JSON

Set the current environment’s goal to free text

Usage: enw goal set <TEXT>

  • <TEXT>

Clear the current environment’s goal

Usage: enw goal clear

Show information about an environment

Usage: enw info [OPTIONS] [NAME]

  • <NAME> — Name of the environment to query. Defaults to the active environment
  • --json — Output as JSON

interactive kanban board of environments grouped by status

Usage: enw kanban

list existing environments and/or available recipes

Usage: enw ls [OPTIONS]

  • --all — Show both environments and recipes (default)

  • --envs — Show only existing environments (does not require the daemon)

  • --recipes — Show only available recipes (requires the daemon cache)

  • --json — Output in JSON lines format

  • --status <STATUS> — Filter environments by status

    Possible values: ready, active, waiting, done, evergreen

Set the status of the current environment

Usage: enw mark <STATUS>

  • <STATUS>

    Possible values: ready, active, waiting, done, evergreen

Refresh environment metadata resolved once at cook time

Usage: enw meta <COMMAND>

  • refresh — Re-resolve descriptions still stuck on their cook-time pattern-recipe template (ADR-0006), e.g. “Work on PR or issue #42 in myrepo”

Re-resolve descriptions still stuck on their cook-time pattern-recipe template (ADR-0006), e.g. “Work on PR or issue #42 in myrepo”

Usage: enw meta refresh [OPTIONS] [ENV_NAME]

  • <ENV_NAME> — Environment to refresh (defaults to the current environment)
  • --all — Refresh every environment instead of just one
  • --dry-run — Report what would change without writing anything

Cook (if needed) and print the env path; no adapter contact

Usage: enw prep [OPTIONS] <NAME>

  • <NAME>
  • --no-hooks — Skip garnish run_on: [Cook] autorun hooks when cooking the env

Remove an environment

Usage: enw rm [OPTIONS] <NAME>

  • <NAME>
  • -y, --yes — Skip the confirmation prompt

Run a command via the active environment’s adapter

Usage: enw run <COMMAND_NAME> [ENVIRONMENT_NAME] [-- [CHILD_ARGS]...]

  • <COMMAND_NAME>
  • <ENVIRONMENT_NAME>
  • <CHILD_ARGS>

Run your shell inside the current environment, waiting while it is being prepared. Intended as a terminal emulator’s configured shell: with no environment it degrades to the plain shell.

Usage: enw shell [OPTIONS] [SHELL_ARGS]...

  • <SHELL_ARGS> — Arguments forwarded verbatim to the shell (e.g. -c <command>)
  • --timeout <TIMEOUT> — Seconds to wait for an environment that is still being prepared before falling back to a plain shell. 0 waits forever

    Default value: 30

Run an application/command inside an environment

Usage: enw wrap <COMMAND_NAME> [ENVIRONMENT_NAME] [-- [CHILD_ARGS]...]

  • <COMMAND_NAME>
  • <ENVIRONMENT_NAME>
  • <CHILD_ARGS>