Skip to content

docs(cli): document oz logout, whoami, federate, and artifact commands#59

Merged
hongyi-chen merged 1 commit into
mainfrom
oz/docs-missing-cli-commands
May 12, 2026
Merged

docs(cli): document oz logout, whoami, federate, and artifact commands#59
hongyi-chen merged 1 commit into
mainfrom
oz/docs-missing-cli-commands

Conversation

@hongyi-chen

Copy link
Copy Markdown
Collaborator

Summary

The missing_docs skill flagged five undocumented oz CLI commands. This PR adds first-pass reference docs for the four user-facing ones and marks the remaining hidden command as internal so it stops triggering the audit.

  • New src/content/docs/reference/cli/federate.mdx — covers oz federate issue-token (subject-template components, AWS/GCP token-exchange flows).
  • New src/content/docs/reference/cli/artifacts.mdx — covers oz artifact get and oz artifact download.
  • Updated src/content/docs/reference/cli/index.mdx — adds sections for oz whoami and oz logout next to the existing oz login content, and links the two new pages from "Additional commands".
  • Updated src/sidebar.ts — wires the new pages into the CLI sidebar.
  • Updated .agents/skills/missing_docs/scripts/audit_docs.py — fixes path detection so the script works against the current Astro layout (src/content/docs, crates/warp_features, crates/warp_cli) and lets CLI surface-map entries use the same internal sentinel that the API audit already accepts.
  • Updated .agents/skills/missing_docs/references/feature_surface_map.md — refreshes CLI mappings to point at real .mdx files, adds entries for the new pages, and marks oz harness-support as internal.

After these changes the CLI category of the audit reports zero gaps.

Test plan

  • npm run build succeeds locally
  • Sidebar shows "Artifacts" and "Federated identity" under the CLI section
  • /reference/cli/federate/ and /reference/cli/artifacts/ render and the cross-links resolve
  • python3 .agents/skills/missing_docs/scripts/audit_docs.py --warp-internal ../warp-internal --warp-server ../warp-server --category cli reports 0 gaps

This PR was created by Oz (running Claude Code).

The missing_docs audit flagged five undocumented CLI commands. This adds
coverage for the four user-facing ones (logout, whoami, federate, artifact)
and marks oz harness-support as internal so it stops being flagged.

* Extend reference/cli/index.mdx with `oz whoami` and `oz logout` next to
  the existing `oz login` section, plus pointers from "Additional commands"
  to the two new dedicated pages.
* Add reference/cli/federate.mdx covering `oz federate issue-token`,
  including the supported subject-template components and AWS/GCP exchange
  flows.
* Add reference/cli/artifacts.mdx covering `oz artifact get` and
  `oz artifact download`.
* Wire both new pages into the CLI sidebar.
* Fix the audit script for the current repo layout (Astro `src/content/docs`,
  `crates/warp_features`, `crates/warp_cli`) and let CLI surface-map entries
  use the same `internal` sentinel the API audit already supports.
* Update the surface map: refresh CLI mappings to point at real `.mdx`
  paths and mark `oz harness-support` as internal.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 11, 2026
@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 11, 2026 4:09pm

Request Review

@hongyi-chen hongyi-chen marked this pull request as ready for review May 11, 2026 16:31

# Also check OpenAPI spec
openapi_path = docs_root / "developers" / "agent-api-openapi.yaml"
# Also check OpenAPI spec (lives at repo root, not under content/docs)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably replace this with the warp-server version, unless it's synced from there?

oz whoami
```

The output includes your user or service account ID, display name, email, and team (when available). For machine-readable output, set `--output-format json` or `--output-format text`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should probably start saying agent in docs rather than service account

* **No secret rotation** - Federation removes the need to rotate static keys in environments or secrets.
* **Per-run identity** - Each run can claim a different subject (user, team, environment, skill, run ID), giving you fine-grained IAM policies.

For background on federation, see your cloud provider's workload identity federation guide (for example, [Google Cloud's workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation) or [AWS IAM Identity Center](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably link to https://docs.warp.dev/agent-platform/cloud-agents/integrations/cloud-providers/ as well here - there are streamlined paths for AWS and GCP OIDC


### Subject template components

The subject claim is what your cloud provider's policy will match on, so pick the combination that gives you the IAM granularity you need. Supported components:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OIDC token also includes all of these as structured claims, which is strongly preferable to squishing them all into the subject claim. We support this for providers like AWS that only handle the subject claim, and not any custom claims

@hongyi-chen hongyi-chen merged commit 98d22d7 into main May 12, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants