> ## Documentation Index
> Fetch the complete documentation index at: https://docs.groundforge.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Context

> Select the Organization, Workspace, and environment used by CLI commands.

Most GroundForge commands require an Organization, Workspace, and environment. The CLI stores these values in the active context, so you don't have to repeat them on every command.

## Show the context

```bash theme={null}
gforge context
gforge context -o yaml
```

## Change the context

```bash theme={null}
gforge context set \
  --organization <organization-id> \
  --workspace <workspace-id> \
  --environment <environment>
```

## Override one command

Use command-level flags when a script needs to operate against a different scope without changing your saved profile:

```bash theme={null}
gforge agents list \
  --organization-id <organization-id> \
  --workspace-id <workspace-id> \
  --environment <environment>
```

Always verify context before create, update, delete, approval, or credential operations — it's the single easiest mistake to avoid.

Next: [Resources](/cli/resources).


## Related topics

- [Login](/cli/login.md)
- [Operator Review](/concepts/operator-review.md)
- [Workspaces](/administration/workspaces.md)
- [CLI Overview](/cli/overview.md)
