Skip to main content

rbtk context and rbtk auth

Two small groups, separated because they answer different questions:
  • rbtk authwho am I, and how does the CLI prove it?
  • rbtk contextwhich org and project should this invocation act on?
rbtk org and rbtk project are read-only helpers that live alongside them.

rbtk auth login

Interactive browser OAuth. Refresh token lands in the OS keyring.
Headless? The CLI falls back to a one-time code:

rbtk auth logout

rbtk auth status

--output json returns the same as a record (handy for jq in scripts).

rbtk auth oidc-from-github

Inside a GitHub Actions job, this trades the GH-provided OIDC token for a CLI access token. No long-lived secret required.
The exchanged token is cached in memory for the rest of the workflow. See Authentication → GitHub OIDC for the subject-claim policy setup.

rbtk auth keys list

rbtk auth keys revoke

Effect is immediate; any in-flight HTTP request using the key fails with 401. The audit log records the actor.

rbtk context (default)

Show the active org and project. This is what every other command uses unless overridden by --org / --project.

rbtk context set

The selection persists in ~/.config/roboticks/context.yaml (or %APPDATA%\roboticks\context.yaml on Windows).

Repo-local context

If a .roboticks/context.yaml file exists in the current directory (or any parent), it takes precedence over the user-level setting. Commit it to your repo so every contributor lands in the right org/project automatically:

rbtk context list

List orgs and projects you can access.
--output json returns the same as a structured tree.

rbtk context clear

rbtk org list and rbtk org get

get shows tier, seats, included sim minutes, current month’s burn-down, and SSO config.

rbtk project list and rbtk project get

get shows linked GitHub repos, requirement baselines, pinned standards, and routing flags (airgapped, hosted_fallback).

Common patterns

Next

Authentication deep-dive

OAuth, API keys, GitHub OIDC — when to use each.

Test commands

The biggest command group.