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:
enw↴enw activate↴enw goal↴enw goal show↴enw goal set↴enw goal clear↴enw info↴enw kanban↴enw ls↴enw mark↴enw meta↴enw meta refresh↴enw prep↴enw rm↴enw run↴enw shell↴enw wrap↴
Usage: enw [OPTIONS] <COMMAND>
Subcommands:
Section titled “Subcommands:”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 goalinfo— Show information about an environmentkanban— interactive kanban board of environments grouped by statusls— list existing environments and/or available recipesmark— Set the status of the current environmentmeta— Refresh environment metadata resolved once at cook timeprep— Cook (if needed) and print the env path; no adapter contactrm— Remove an environmentrun— Run a command via the active environment’s adaptershell— 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
Options:
Section titled “Options:”--env <ENV>
enw activate
Section titled “enw 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.
Usage: enw activate [OPTIONS] <NAME>
Arguments:
Section titled “Arguments:”<NAME>
Options:
Section titled “Options:”--no-hooks— Skip garnishrun_on: [Cook]autorun hooks when cooking the env
enw goal
Section titled “enw goal”Show, set, or clear the current environment’s goal
Usage: enw goal [COMMAND]
Subcommands:
Section titled “Subcommands:”show— Print the current goal (default when no subcommand is given)set— Set the current environment’s goal to free textclear— Clear the current environment’s goal
enw goal show
Section titled “enw goal show”Print the current goal (default when no subcommand is given)
Usage: enw goal show [OPTIONS]
Options:
Section titled “Options:”--json— Output as JSON
enw goal set
Section titled “enw goal set”Set the current environment’s goal to free text
Usage: enw goal set <TEXT>
Arguments:
Section titled “Arguments:”<TEXT>
enw goal clear
Section titled “enw goal clear”Clear the current environment’s goal
Usage: enw goal clear
enw info
Section titled “enw info”Show information about an environment
Usage: enw info [OPTIONS] [NAME]
Arguments:
Section titled “Arguments:”<NAME>— Name of the environment to query. Defaults to the active environment
Options:
Section titled “Options:”--json— Output as JSON
enw kanban
Section titled “enw kanban”interactive kanban board of environments grouped by status
Usage: enw kanban
enw ls
Section titled “enw ls”list existing environments and/or available recipes
Usage: enw ls [OPTIONS]
Options:
Section titled “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 statusPossible values:
ready,active,waiting,done,evergreen
enw mark
Section titled “enw mark”Set the status of the current environment
Usage: enw mark <STATUS>
Arguments:
Section titled “Arguments:”-
<STATUS>Possible values:
ready,active,waiting,done,evergreen
enw meta
Section titled “enw meta”Refresh environment metadata resolved once at cook time
Usage: enw meta <COMMAND>
Subcommands:
Section titled “Subcommands:”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”
enw meta refresh
Section titled “enw meta 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”
Usage: enw meta refresh [OPTIONS] [ENV_NAME]
Arguments:
Section titled “Arguments:”<ENV_NAME>— Environment to refresh (defaults to the current environment)
Options:
Section titled “Options:”--all— Refresh every environment instead of just one--dry-run— Report what would change without writing anything
enw prep
Section titled “enw prep”Cook (if needed) and print the env path; no adapter contact
Usage: enw prep [OPTIONS] <NAME>
Arguments:
Section titled “Arguments:”<NAME>
Options:
Section titled “Options:”--no-hooks— Skip garnishrun_on: [Cook]autorun hooks when cooking the env
enw rm
Section titled “enw rm”Remove an environment
Usage: enw rm [OPTIONS] <NAME>
Arguments:
Section titled “Arguments:”<NAME>
Options:
Section titled “Options:”-y,--yes— Skip the confirmation prompt
enw run
Section titled “enw run”Run a command via the active environment’s adapter
Usage: enw run <COMMAND_NAME> [ENVIRONMENT_NAME] [-- [CHILD_ARGS]...]
Arguments:
Section titled “Arguments:”<COMMAND_NAME><ENVIRONMENT_NAME><CHILD_ARGS>
enw shell
Section titled “enw 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.
Usage: enw shell [OPTIONS] [SHELL_ARGS]...
Arguments:
Section titled “Arguments:”<SHELL_ARGS>— Arguments forwarded verbatim to the shell (e.g.-c <command>)
Options:
Section titled “Options:”-
--timeout <TIMEOUT>— Seconds to wait for an environment that is still being prepared before falling back to a plain shell. 0 waits foreverDefault value:
30
enw wrap
Section titled “enw wrap”Run an application/command inside an environment
Usage: enw wrap <COMMAND_NAME> [ENVIRONMENT_NAME] [-- [CHILD_ARGS]...]
Arguments:
Section titled “Arguments:”<COMMAND_NAME><ENVIRONMENT_NAME><CHILD_ARGS>