context

Stallion CLI context command - Show or clear the saved default org/project context used by other Stallion CLI commands.

Shows the currently saved org/project context, or clears it. The context is what stallion use saved and what other commands fall back to when --org-id / --project-id are not passed.

stallion context

Alias:

stallion ctx
Context
  Org         acme
  Org Id      64f5f341a43eb5ccf93548e4
  Region      ap
  Project     my-project
  Project Id  6650a2c1b7f93548e4d21a77

If nothing is set, the command tells you to run stallion use first.

Parameters

1. --clear (Optional) Clears the saved context. Commands go back to prompting for org and project.

stallion context --clear

2. --json (Optional) Prints the raw context as JSON — useful for scripting.

stallion context --json
{
  "orgId": "64f5f341a43eb5ccf93548e4",
  "orgName": "acme",
  "region": "ap",
  "projectId": "6650a2c1b7f93548e4d21a77",
  "projectName": "my-project"
}