Skip to content

docs: headless & AI — CLI reference for the new commands + AI & MCP tab#14

Open
Gawtier wants to merge 4 commits into
mainfrom
docs/cli-reference-headless-commands
Open

docs: headless & AI — CLI reference for the new commands + AI & MCP tab#14
Gawtier wants to merge 4 commits into
mainfrom
docs/cli-reference-headless-commands

Conversation

@Gawtier

@Gawtier Gawtier commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

What

The CLI reference only covered branch/deploy/init/login/push/switch. This adds reference pages for the commands shipped in forest-cli 5.19.0:

  • Projectsprojects:create:demo · create:sql · create:nosql
  • Layoutlayout:pull · diff · apply · patch
  • Workflowsworkflow:apply
  • Environmentsenvironments:create · get · update · delete · reset
  • Rolesroles:create · apply · copy · export
  • Teamsteams:create · delete · copy-layout
  • Usersusers:list · invite · edit

How

  • Pages generated from forest <cmd> --help (title, description, usage, arguments, options) in the existing page format.
  • reference/cli/overview.mdx updated: existing commands linked + new groups added.
  • docs.json nav restructured into sub-groups (Branches & deployment, Projects, Layout, Workflows, Environments, Roles, Teams, Users).

Review notes

  • ⚠️ Please check the Mintlify preview before merging (merge publishes to the live docs).
  • Pages are accurate reference (from --help) but light on narrative — follow-up to enrich with worked examples / prose like branch.mdx.
  • 30 CLI pages referenced, 0 missing; docs.json validated.

🤖 Generated with Claude Code

Note

Add CLI reference docs for headless commands covering layout, workflows, roles, users, teams, environments, and projects

  • Adds 20+ new CLI reference pages under reference/cli/ covering all headless forest commands: layout (pull/apply/patch), workflow:apply, environments (create/get/update/delete/reset), projects (create:sql/nosql/demo), roles (create/apply/copy/export), teams (create/delete/copy-layout), and users (list/invite/edit).
  • Adds a new 'AI & MCP' docs tab with three pages covering the Forest MCP server, the Claude Code plugin, and an overview comparing the two approaches.
  • Reorganizes the CLI reference navigation in docs.json into grouped sections by command category and expands the CLI overview page with links to all new reference pages.

Macroscope summarized 62dc819.

…oles/users/teams/environments)

The CLI reference only covered branch/deploy/init/login/push/switch. Add reference
pages for the commands shipped in forest-cli 5.19.0:

- projects:create:demo/sql/nosql
- layout:pull/diff/apply/patch
- workflow:apply
- environments:create/get/update/delete/reset
- roles:create/apply/copy/export · users:list/invite/edit · teams:create/delete/copy-layout

Pages generated from `forest <cmd> --help` (usage + arguments + options). Overview
and docs.json nav updated (sub-groups: Branches & deployment, Projects, Layout,
Workflows, Environments, Roles, Teams, Users).

Follow-up: enrich with worked examples / prose like branch.mdx.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread reference/cli/overview.mdx Outdated
@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
forest 🟢 Ready View Preview Jul 17, 2026, 11:48 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
forest 🟡 Building Jul 17, 2026, 11:46 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

… layout:diff

Replaces the 23 per-command pages with 7 category pages (projects, layout,
workflows, environments, roles, teams, users) and a flat CLI nav — fixes the
broken links from the over-nested sidebar and removes layout:diff (not shipped).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…existing pages)

Revert the category-page approach: one page per command (matching the existing
branch/deploy/… pages), grouped in the sidebar (Branches & deployment, Projects,
Layout, Workflows, Environments, Roles, Teams, Users) using the same nested-group
pattern already used elsewhere (Connect → Data Sources). layout:diff stays out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New top-level tab documenting how to drive Forest with AI:
- Overview — the two ways in (Claude Code plugin vs MCP) + when to use which
- Claude Code — the forest plugin: install, the 4 skills (/forest:onboard/layout/workflows/management), example prompts, the vibe-coding loop
- MCP — the Forest MCP server: read/write/act/understand, governed by permissions

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread ai/claude-code.mdx
Tell Claude the outcome you want, in plain language.
</Step>
<Step title="Preview">
The skill shows the plan (and supports `--dry-run` on the underlying commands) before sending anything.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium ai/claude-code.mdx:74

The Preview step states that the skills support --dry-run on the underlying commands, but mutating commands used by these skills — such as forest layout:apply, forest roles:apply, forest users:invite, and forest projects:create:demo — have no --dry-run option. Users following the described loop for layout, management, or onboarding cannot obtain the promised no-write CLI preview and may expect a command not to make changes when it will. Consider either qualifying the claim to the commands that actually support --dry-run or documenting which steps do not offer a dry-run preview.

🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @ai/claude-code.mdx around line 74:

The **Preview** step states that the skills support `--dry-run` on the underlying commands, but mutating commands used by these skills — such as `forest layout:apply`, `forest roles:apply`, `forest users:invite`, and `forest projects:create:demo` — have no `--dry-run` option. Users following the described loop for layout, management, or onboarding cannot obtain the promised no-write CLI preview and may expect a command not to make changes when it will. Consider either qualifying the claim to the commands that actually support `--dry-run` or documenting which steps do not offer a dry-run preview.

@Gawtier Gawtier changed the title docs(cli): document the headless commands (layout, workflow, roles, users, teams, environments, projects) docs: headless & AI — CLI reference for the new commands + AI & MCP tab Jul 17, 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.

1 participant