Okta CLI
$ okta Official High RiskOkta CLI (okta) helps developers register free Okta developer tenants, bootstrap sample OIDC apps, and register new OIDC integrations via okta apps create. While --batch avoids some prompts, the tool is heavily wizard-oriented, lacks --json output, and covers only basic OIDC onboarding rather than full Management API administration.
brew install oktadeveloper/tap/okta Narrowly scoped to OIDC app registration (okta apps create --batch); use Okta REST APIs or Terraform for broader tenant administration.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Offers --batch on apps create, but lacks --json output, --dry-run, or read/list subcommands; primarily an interactive onboarding wizard.
- Supports
--batchonokta apps create - No
--jsonoutput orlist/getread commands
Supports env-var token scoping (OKTA_CLIENT_TOKEN), but creates remote OIDC apps and local .okta.env files with no --dry-run.
- Env-var config via
OKTA_CLIENT_ORGURLandOKTA_CLIENT_TOKEN - No
--dry-runpreview
Installable via Homebrew tap (oktadeveloper/tap/okta) and GitHub release archives, though older releases rely on JVM/Graal builds.
- Homebrew tap and GitHub release binaries
Narrowly covers tenant signup, okta start, and okta apps create; lacks user/group/policy CRUD.
- Limited to onboarding and OIDC app creation
Official Okta repository (okta/okta-cli) licensed under Apache-2.0.
- Official
okta/okta-cliGitHub repository
Dedicated site at cli.okta.com and GitHub README documenting YAML hierarchy and --batch flags.
- Official docs at cli.okta.com
Security, Auth & Guardrails
Reads OKTA_CLIENT_ORGURL and OKTA_CLIENT_TOKEN from environment variables, project .okta.yaml, or ~/.okta/okta.yaml.
Apache-2.0 open-source CLI; Okta Developer accounts offer a free tier.
# Okta CLI Agent Rules - Always pass `--batch` with explicit `--app-name` and `--redirect-uri` to avoid interactive wizards. - Verify `OKTA_CLIENT_ORGURL` targets a developer/sandbox tenant before running `okta apps create`.
Agent-Ready Command Recipes
Safe Read-Only Queries
okta --help
Displays available Okta CLI subcommands and options without network calls.
okta apps create --help
Prints supported OIDC app types and --batch / --redirect-uri options.
Controlled Writes & Previews
okta apps create web --app-name my-staging-app --redirect-uri http://localhost:3000/callback --batch
Registers a new OIDC web application non-interactively and writes .okta.env or config output.
Strengths for Agents
- + Supports
--batch,--app-name, and--redirect-urito automate OIDC app registration. - + Clean config precedence across
OKTA_CLIENT_*env vars,.okta.yaml, and~/.okta/okta.yaml.
Caveats & Pitfalls
- ! No
--jsonoutput or read-onlylist/getsubcommands for inspecting existing Okta apps or users. - !
okta registerandokta startare interactive wizards unsuitable for headless agents.