docs: add a CLI client guide - #984
Draft
aparajon wants to merge 3 commits into
Draft
Conversation
Covers profiles and resolution precedence, the three access models (OIDC login, authenticating proxy, network isolation), the plan/apply workflow with example transcripts, everyday reads (status, progress, logs, databases, pull), the control-operation escalation ladder with engine caveats, rollback's plan-then-confirm flow, the GitHub-outage checks backfill runbook, and both wrapper styles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-user documentation for the SchemaBot CLI client, explaining how operators configure, authenticate, and use the CLI for common workflows and recovery scenarios, and links that guide from the README.
Changes:
- Add a new CLI client guide at
docs/cli.mdcovering configuration/profiles, auth models, plan/apply workflows, reads, controls, and checks backfill. - Link the new CLI guide from
README.mdalongside the existing server configuration docs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Adds a direct link to the new CLI client guide from the Configuration section. |
| docs/cli.md | Introduces comprehensive CLI client documentation, including auth models, workflow examples, and wrapper guidance. |
Suppressed comments (2)
docs/cli.md:369
- This paragraph names an internal wrapper and company ("At Block…
sq schemabot") which makes the guide less reusable and may be considered non-OSS-ready. Consider making this wording generic (the wrapper name can remain an example).
Organizations often front the CLI with their own wrapper command that bakes in the environment — resolving internal endpoints, running SSO, starting a port-forward — so operators never configure any of it by hand. At Block, we build an internal wrapper around the schemabot CLI to target internal deployments, which we denote as `sq schemabot`; other schemabot users may want to follow suit. Two styles work:
docs/cli.md:378
- To keep the docs neutral/OSS-ready, avoid implying a specific internal tool name in the normative description. This line can be phrased generically without changing the example code that follows.
**Embed the Go packages.** For a wrapper with real logic of its own — per-environment routing tables, automatic port-forwards, extra commands — import the command structs and build your own [kong](https://github.com/alecthomas/kong) CLI around them. This is how `sq schemabot` is built:
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
docs/cli.md, a client-side guide for the CLI, and links it from the README. It covers:planandapplywith example transcripts, including the lock-conflict refusalstatus,progress,logs,databases,pull, with obfuscated output examplesrollback's plan-then-confirm flowchecks backfillas the GitHub-outage recovery tool, with the dry-run-first rhythmThe "Wrapping the CLI" section documents the
--cli-nameflag andpkg/cmd/clinamepackage from #983, so this should merge after it.🤖 Generated with Claude Code