For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

/env Command

Use /env to manage tokens, endpoint values, and other variables referenced by profiles without writing literal secrets into project files.

Rook environment command help with list set show and remove

Syntax

/env
/env list
/env set <json>
/env show <key>
/env rm <key>

The same commands work from a shell by replacing the leading slash with rook, for example rook env list and rook env set '{"API_KEY":"…"}'.

Subcommands

CommandEffect
/env listList variable names and masked values.
/env set {"KEY":"value"}Set one or several string values from one JSON object. Names are normalized to uppercase.
/env show KEYPrint the complete value into terminal scrollback.
/env rm KEYRemove the stored value.
/env set {"REFUND_API_TOKEN":"paste-value-here","AGENT_BASE_URL":"https://staging.example.com"}
/env list
/profile add staging

The generated hook script reads process.env.REFUND_API_TOKEN, and the profile records only the variable name and its purpose.

The current command requires the value as an argument. For sensitive values, prefer an attended TUI session and clear the terminal afterward; a shell command can remain in shell history. Avoid /env show unless full disclosure into scrollback is intentional.

Storage and scope

Variables are stored with restrictive permissions in one file below the global Rook home. They are not written into the workspace's .testmuai/rook/ profile files.

Each value is scoped to the current workspace's absolute path. Another workspace using the same Rook home does not inherit it. A variable exported by the shell shadows a different stored value with the same name.

When /profile add finds a credential in supplied material, the generated script must read it from an environment variable. Use the exact name shown by the authoring flow.

Common problems

  • Missing-variable profile error: set the exact case-sensitive key.
  • Wrong endpoint or account: remove and reset the value, then rerun /profile test.
  • Secret shown in a screenshot: rotate it immediately; masking in /env list does not undo earlier disclosure.

/profile · Prompt-based profiles · Lifecycle phases and hooks

Test across 3000+ combinations of browsers, real devices & OS.

×
Schedule Your Personal Demo
Book Demo

Help and Support

Related Articles