Skip to content

docs(v2): rename dbeql CLI commands and move the CLI reference into /reference/cli#41

Closed
coderdan wants to merge 4 commits into
v2from
dan/rename-db-install-to-eql-install
Closed

docs(v2): rename dbeql CLI commands and move the CLI reference into /reference/cli#41
coderdan wants to merge 4 commits into
v2from
dan/rename-db-install-to-eql-install

Conversation

@coderdan

@coderdan coderdan commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Targets v2. Two related changes to the CLI docs.

1. stash db …stash eql …

The stash CLI moved its EQL-extension commands into a dedicated eql group (cipherstash/stack#543):

Old New
stash db install stash eql install
stash db upgrade stash eql upgrade
stash db status stash eql status

The old db spellings remain as deprecated aliases that print a warning. Every page that references these commands is updated, and the install page notes the alias.

2. Move the CLI docs into the new IA

Per IA.md and the existing v2-redirects.mjs map, the CLI reference moves out of the legacy content/stack tree:

  • content/stack/cipherstash/cli/{index,init,plan,impl,status,install,validate,push,api}content/docs/reference/cli/
  • content/stack/cipherstash/cli/troubleshootingcontent/docs/guides/troubleshooting/cli — troubleshooting is a guide, not a reference; this matches the redirect entry (/stack/cipherstash/cli/troubleshooting/guides/troubleshooting/cli) and IA.md's separate "guides/troubleshooting/cli" item.

Details:

  • v2 facets added (type: reference / guide, components: [cli]); explicit reference/cli/meta.json preserving the Setup / Database / Reference grouping.
  • All inbound links across the legacy tree repointed to /reference/cli* and /guides/troubleshooting/cli (anchors preserved); duplicate body H1s dropped.
  • No redirect-map change needed — the CLI entries (cli/reference/cli, troubleshooting → guides, cli/:path* wildcard) already exist.

Test plan

  • bun run validate-links — clean (184 legacy pages)
  • bun run validate-redirects — all legacy pages covered
  • All moved pages render (dev server, 200, no MDX errors)

Note: the rename half should land after (or with) the CLI release that ships the eql group.

Heads-up: I split troubleshooting into /guides/troubleshooting/cli to follow the redirect map rather than putting it under /reference/cli. Happy to fold it back into /reference/cli instead (and update the one redirect entry) if you'd prefer everything under one section.

https://claude.ai/code/session_01CqDNqLSEEkCi7xAJFq7HJA

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
public-docs Ready Ready Preview, Comment Jul 5, 2026 12:33pm

Request Review

coderdan added 2 commits July 5, 2026 14:55
The CLI command moved to a dedicated `eql` command group; `db install`
remains as a deprecated alias that prints a warning. Update all pages
that reference the command and note the deprecated alias on the install
page.
The stash CLI also renamed `db upgrade` → `eql upgrade` and
`db status` → `eql status`; the old spellings remain as deprecated
aliases.
@coderdan coderdan changed the base branch from main to v2 July 5, 2026 05:45
@coderdan coderdan force-pushed the dan/rename-db-install-to-eql-install branch from 9254125 to 441241f Compare July 5, 2026 05:45
Ports the CipherStash CLI docs out of the legacy content/stack tree into the
V2 IA, following IA.md and the existing v2-redirects.mjs migration map:

  content/stack/cipherstash/cli/{index,init,plan,impl,status,install,validate,push,api}
    -> content/docs/reference/cli/
  content/stack/cipherstash/cli/troubleshooting
    -> content/docs/guides/troubleshooting/cli   (troubleshooting is a guide,
       not a reference — matches the redirect map and IA.md's guides entry)

- v2 facets added (type: reference / guide, components: [cli]) and an explicit
  reference/cli meta.json preserving the Setup / Database / Reference grouping.
- All inbound links across the legacy tree repointed from /stack/cipherstash/cli*
  to /reference/cli* and /guides/troubleshooting/cli (anchors preserved).
- Dropped duplicate body H1s to match the v2 reference-page convention; retitled
  the troubleshooting page to "CLI troubleshooting" (its parent is "Troubleshooting").
- Redirect coverage already exists in v2-redirects.mjs (cli -> /reference/cli,
  troubleshooting -> /guides/troubleshooting/cli, cli/:path* wildcard), so no
  map change is needed.

validate-links (184 pages) and validate-redirects pass; all moved pages render.

Claude-Session: https://claude.ai/code/session_01CqDNqLSEEkCi7xAJFq7HJA
@coderdan coderdan changed the title docs: rename stash db install to stash eql install docs(v2): rename dbeql CLI commands and move the CLI reference into /reference/cli Jul 5, 2026
Per the content-model tagging rule (tag `eql` only when a page is about
queryable-in-Postgres ciphertext): install, validate, push, and the CLI
troubleshooting page deal with the EQL extension, so they carry [cli, eql]
and will surface on the EQL hub. The general-workflow pages (init, plan,
impl, status, api, index) stay [cli].

Claude-Session: https://claude.ai/code/session_01CqDNqLSEEkCi7xAJFq7HJA
@coderdan

coderdan commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing — superseded by the generator approach in #45.

  • CLI reference is now generated from the stash CLI (docs(v2): PROTOTYPE — generate the CLI reference from the stash CLI #45): drift-free, version-stamped, tracks the latest published version. That replaces the hand-moved pages here.
  • The dbeql rename in this PR is ahead of the published CLI (stash@0.16.0 still uses db); we decided to let generation settle command naming from whatever version is published, so hand-renaming here would make the docs disagree with the shipped CLI.
  • The inbound-link rewrites / facets were only needed because this PR deleted the legacy CLI pages. docs(v2): PROTOTYPE — generate the CLI reference from the stash CLI #45 leaves content/stack/.../cli in place (served until the CIP-3335 legacy-tree deletion), and v2-redirects.mjs already maps /stack/cipherstash/cli → /reference/cli, so nothing is orphaned.

Nothing lost: the legacy pages remain on v2, and the troubleshooting → /guides/troubleshooting/cli move reverts to its existing IA.md to-do, to land with the guides port.

Reopenable if the eql-group release timing changes the calculus.

@coderdan coderdan closed this Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants