Skip to content
Build with Mammoth › CLI reference: open the docs menu

mammoth context

Generated from mammoth-cli 2.4.2, released 2026-11-02: mammoth schema list, mammoth capability list and the CLI's own --help. Do not edit by hand; run npm run docs:capabilities.

Inspect and select the active project context. 4 commands.

Every command also takes the global flags (--output, --yes, --confirm, --dry-run, --input, --profile, ...), which are not repeated below. --input takes a JSON or YAML document of the input fields; mammoth schema get COMMAND_ID prints a command's full input schema.

Confirmation. Commands marked --yes --confirm TARGET or --yes always need those flags, even at a terminal: they never prompt. Commands marked "--yes or prompt" ask at an interactive terminal (table output, no --no-input) and otherwise need --yes. --dry-run skips confirmation and sends nothing.

Summary

CommandWhat it doesEffectConfirmation
context showShow the profile, endpoint, workspace and project the next command would use.Read—
context project clearClear the active project id for one profile. Idempotent.Benign mutation—
context project statusReport the resolved active project id for one profile.Read—
context project useSave a positive project id as the active project for one profile.Benign mutation—

context commands

mammoth context show

Show the profile, endpoint, workspace and project the next command would use.

mammoth context show
  • Effect: Read, scope local · Confirmation: none
  • Preconditions: Local read, no network call. Shows which profile, endpoint, workspace and project the next command would use; it never prints credentials.
  • Id: context.show · Result: ContextShowResult

context project

mammoth context project clear

Clear the active project id for one profile. Idempotent.

mammoth context project clear
  • Effect: Benign mutation, scope local · Confirmation: none
  • Id: context.project.clear · Result: ContextProjectClearResult

mammoth context project status

Report the resolved active project id for one profile.

mammoth context project status
  • Effect: Read, scope local · Confirmation: none
  • Id: context.project.status · Result: ContextProjectStatusResult

mammoth context project use

Save a positive project id as the active project for one profile.

mammoth context project use 123
NamePassed asRequiredDefaultTypeNotes
PROJECT_IDpositionalyes—intPositive project id to make active.
  • Effect: Benign mutation, scope local · Confirmation: none
  • Preconditions: Required inputs: PROJECT_ID.
  • Id: context.project.use · Result: ContextProjectUseResult

Report an issue · support@mammoth.io