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

# Context

> Set org and project scope for golain commands.

After login, set a **context** so commands default to the right org and project (similar to `kubectl config use-context`).

```bash theme={null}
golain context set --org=my-org --project=my-project
golain context get

# Clear selectively
golain context unset --project
golain context unset --org      # clears org and project
```

Context is stored in the active profile JSON alongside credentials.

Once set, omit `--org` and `--project` on subcommands:

```bash theme={null}
golain fleets list
golain devices list --fleet=sensors
golain omega scaffold --device=sensor-01 --fleet=sensors --sample-db
```

**Edge Sync** in the TUI requires both org and project context — it calls `/projects/{project_id}/edge/*` routes scoped to the active project.

## Multiple environments

Use named profiles for staging vs production:

```bash theme={null}
golain login --profile=prod
golain login --profile=staging

golain --profile=staging context set --org=lab --project=dev
golain --profile=prod context set --org=acme --project=production
```

## TUI behavior

The interactive TUI uses the same profile and context. On launch it lists orgs → projects → project menu.

→ [CLI reference](/tools/platform-tui/cli-reference)
