Generated from
packages/cli/src/command-registry.ts; do not edit by hand.
Manifest schema: forge.cli.manifest.v1. Machine-readable version: cli.manifest.json.
Forge CLI is the headless interface for coding agents and the concise command line for humans who submit serialized merges and observe exact-SHA production attempts.
Install @smolai/forge globally to use the short sf command. When it is a project dependency, use pnpm exec sf, npm exec sf, or npx smolforge instead.
sf auth login — Create or refresh this machine’s Forge session in protected OS storage without printing its credential.sf release status — Read the serialized merge and its latest exact-SHA production attempt.sf release watch — Watch one attempt until terminal. This never pushes, retries, activates, or rolls back.sf diagnose — Use the operation or ingest ID returned by Forge to learn the precise phase and safe next action before any explicit Deploy mutation.Use the sections below to jump directly to a command. Every command documents its access scope, safety behavior, output schema, exit codes, and remediation.
sf help — Describe a command or the complete CLI.sf commands — List command paths for machine discovery.sf schema — Print the versioned CLI command manifest.sf docs generate — Generate CLI reference artifacts from the registry.sf auth status — Show the active credential without exposing it.sf auth login — Authenticate a Forge CLI session.sf auth bridge — Copy a protected Forge session to explicit sandbox file storage.sf auth git-credential — Prepare repository-scoped credentials for Git.sf auth logout — Remove this machine’s stored Forge credentials.sf auth revoke — Revoke a personal access token.sf whoami — Return the authenticated Forge identity.sf scopes — Show the active credential scopes.sf register — Register a Forge account.sf git doctor — Diagnose Forge Smart HTTP repository access.sf repo create — Create a repository.sf repo list — List repositories.sf repo get — Get a repository.sf repo update — Update a repository.sf repo star — Star a repository.sf repo unstar — Unstar a repository.sf repo import — Import repositories.sf clone-url — Print a clone URL.sf migrate — Inspect or migrate a local repository configuration.sf actions list — List Actions runs.sf actions inspect — Inspect an Action run and linked release receipt.sf actions cancel — Cancel an Action run.sf agent profiles — List repository-agent execution profiles.sf agent list — List durable repository-agent threads.sf agent create — Create or recover a durable repository-agent thread.sf agent view — Inspect one durable repository-agent thread.sf agent message — Message a repository agent at an explicit execution tier.sf agent events — Read normalized repository-agent events after a cursor.sf agent cancel — Cancel one repository-agent run.sf agent approve — Resolve one repository-agent approval.sf content create — Create an account or repository Content publication.sf content attach — Move an existing publication into a repository scope.sf content list — List an editorial publication and its draft documents.sf content get — Read one published Content document.sf content draft — Create an immutable Content draft revision.sf content draft pull — Fetch the selected Content draft for local or agent work.sf content draft push — Push an immutable Content draft revision.sf content draft diff — Diff two immutable Content revisions.sf content draft preview — Preview the selected Content draft safely.sf content history — List immutable revisions for a Content document.sf content comments — List Content review threads.sf content comment add — Create a range, block, document, or screenshot review thread.sf content comment reply — Reply to a Content review thread.sf content comment resolve — Resolve a Content review thread.sf content comment assign — Assign a review thread to an explicitly granted agent.sf content publish — Atomically select a Content publication release.sf content release status — List Content publication releases.sf content rollback — Move a publication pointer to a prior immutable release.sf content grant — Grant a service principal a Content publication role.sf content inspect — Inspect a Markdown file before Content import.sf content import — Import one file or a Markdown/MDX directory as immutable Content drafts.sf release enqueue — Submit an exact feature SHA to the serialized production merge queue.sf release status — Read canonical merge or production-deployment state.sf release watch — Watch one merge or project deployment until terminal.sf observe install — Install the local skill observability collector.sf observe status — Status the local skill observability collector.sf observe doctor — Doctor the local skill observability collector.sf observe uninstall — Uninstall the local skill observability collector.sf add skit — Install a complete SKIT release.sf skit init — Create a single-skill SKIT scaffold.sf skit validate — Validate bundle declarations, files, hashes, and static audit.sf skit publish — Publish the current valid draft as an immutable release.sf skit pull — Resolve and install a SKIT source.sf skit enable — Enable and project one contained skill.sf skit disable — Disable one contained skill without altering its bundle.sf skit update — Update one or all installed SKITs from recorded sources.sf skit remove — Remove clean managed projections and local desired state.sf skit list — List Forge-managed local SKIT installations.sf skit sync — Validate and three-way reconcile a bound editable draft.sf skit inventory — Rescan known agent roots without changing projections.sf skit reconcile — Apply only safe non-conflicting desired-state changes.sf skit doctor — Diagnose local library, adapter, and projection state.sf benchmark — Plan or run an exact-tree Forge/GitHub benchmark.sf transcript upload — Upload an agent transcript.sf hooks install — Install repository hooks.sf hooks status — Inspect repository hooks.sf llms — Fetch llms.txt.sf pr list — List pull requests.sf pr view — Inspect a pull request.sf pr create — Create a pull request.sf deploy list — List generalized Deploy projects and releases.sf deploy status — Show a generalized Deploy release and production evidence.sf deploy retry — Request an explicit generalized Deploy build.sf deploy promote — Promote a verified release with current-pointer fencing.sf deploy rollback — Restore a selected verified release with fencing.sf deploy check — Validate a local forgeBuild.ts.sf diagnose — Retrieve a sanitized release or ingest diagnostic.sf help#Describe a command or the complete CLI.
Command help is generated from this registry. JSON help is safe for agents and documentation generators.
forge.cli.help.v1 — Command metadata or the complete manifest.command?--jsonExamples:
sf help statussf help --jsonRemediation: Run sf commands --json to discover canonical paths.
sf commands#List command paths for machine discovery.
Returns registry-defined commands without parsing human console output.
forge.cli.commands.v1 — Canonical paths, aliases, summaries, and safety class.--jsonExamples:
sf commands --jsonsf schema#Print the versioned CLI command manifest.
The versioned manifest is canonical input for website documentation and coding agents.
forge.cli.manifest.v1 — Complete stable command manifest.--jsonExamples:
sf schemasf docs generate#Generate CLI reference artifacts from the registry.
Writes the website-consumable JSON manifest and Markdown reference. --check detects drift without writing.
forge.cli.docs.v1 — Artifact paths and whether they were current.--checkExamples:
sf docs generatesf docs generate --checkRemediation: Run sf docs generate and commit both generated artifacts.
sf auth status#Show the active credential without exposing it.
Reports the configured identity, credential storage state, and server-confirmed API authentication state. When owner/repo is supplied, or exactly one HTTPS Forge remote is present, it separately diagnoses the repository-scoped Git helper and credential without exposing either bearer.
forge.auth.status.v1 — Sanitized API identity plus separate repository Git-wiring state.owner/repo?--json, --jsonl, --base-urlExamples:
sf auth status --jsonsf auth status owner/repo --jsonRemediation: Run sf auth login or set a short-lived SMOLFORGE_TOKEN. To inspect Git access explicitly, run sf auth status owner/repo.
sf auth login#Authenticate a Forge CLI session.
Prompts for a missing username or email in a TTY and stores the full-access Forge session in protected OS storage by default. Normal Git setup remains repository-scoped and its credentials last seven days. A trusted durable machine may explicitly request a global, non-expiring Git credential with --git-scope global --expires never --yes. That credential covers every accessible Forge repository, is stored only in protected OS storage, is never printed, and is revoked by sf auth logout. Use --storage file only for the login session in a local sandbox; it cannot be combined with durable global Git access.
Aliases: sf login.
forge.auth.login.v1 — Sanitized authenticated identity, selected login storage, and Git credential mode; never either bearer.--json, --jsonl, --base-url, --username, --email, --storage, --git-scope, --expires, --yesExamples:
sf auth loginsf auth login --username alicesf auth login --storage filesf auth login --git-scope global --expires never --yesRemediation: Use ordinary login for least privilege, or review and explicitly run sf auth login --git-scope global --expires never --yes on a trusted durable machine.
sf auth bridge#Copy a protected Forge session to explicit sandbox file storage.
Copies only the protected host credential to ~/.smolforge/credentials.json for sandbox access; it does not change normal host storage. The file copy grants full Forge account access to a process that can read it. The command reports the copied session expiry when recorded. sf auth logout removes local copies and reports if protected-store cleanup cannot be confirmed, but does not remotely revoke an already-copied session.
forge.auth.bridge.v1 — Sanitized sandbox credential-file path and session-expiry metadata; never the bearer.--json, --jsonl, --base-urlExamples:
sf auth bridgeRemediation: Run sf auth login to create a protected host session, then retry sf auth bridge.
sf auth git-credential#Prepare repository-scoped credentials for Git.
Installs the Forge-only URL-scoped Git credential helper and prepares a seven-day repository credential. Pass owner/repo, or omit it only inside a checkout with exactly one unambiguous HTTPS Forge remote; multiple or mixed Forge remotes are rejected locally. An explicitly configured durable global credential satisfies this setup without minting another token. It does not expose the full Forge session, rewrite Git remotes, or replace unrelated Git credential helpers.
repo:read, repo:writeforge.auth.git-credential.v1 — Sanitized repository source, helper/configuration state, storage, and credential-expiry metadata; never the bearer.owner/repo?--json, --jsonl, --base-url, --storageExamples:
sf auth git-credential owner/reposf auth git-credentialsf auth git-credential owner/repo --storage file --jsonRemediation: Run sf auth login, then retry with sf auth git-credential owner/repo. In a local sandbox without protected storage, deliberately use --storage file.
sf auth logout#Remove this machine’s stored Forge credentials.
Revokes every repository-scoped or durable global Git credential minted by this CLI, removes the Forge-only Git helper, and deletes local Forge session copies from protected OS storage, ~/.smolforge/credentials.json, and any explicitly file-stored repository credentials in ~/.smolforge/git-credentials.json. It removes local copies but does not remotely revoke an already-copied Forge session; it reports an error if protected-store cleanup cannot be confirmed. If Git-token revocation fails, logout stops so it can be retried safely.
forge.auth.logout.v1 — Whether local session copies and CLI-managed Git credentials were revoked and removed.--json, --jsonl, --base-urlExamples:
sf auth logout --jsonRemediation: Retry sf auth logout while the session is still available. If it reports protected-store cleanup failure, restore that store and retry; any explicit credential file copy was still removed.
sf auth revoke#Revoke a personal access token.
Revokes a listed PAT using the current session credential.
forge.auth.revoke.v1 — Revoked credential identifier.token-id--json, --jsonl, --base-url, --yesExamples:
sf auth revoke pat_id --yesRemediation: List tokens in the Forge account before retrying.
sf whoami#Return the authenticated Forge identity.
A server-authoritative identity check.
forge.auth.whoami.v1 — Authenticated identity.--json, --jsonl, --base-urlExamples:
sf whoami --jsonRemediation: Run sf auth login.
sf scopes#Show the active credential scopes.
Returns only caller-visible authorization scope metadata.
forge.auth.scopes.v1 — Current auth type and scopes.--json, --jsonl, --base-urlExamples:
sf scopes --jsonRemediation: Mint a repository-scoped credential with the minimal required scopes.
sf git doctor#Diagnose Forge Smart HTTP repository access.
Checks local remote/ref agreement, repository-scoped authorization, and real ls-remote behavior. A clean canary push is explicit and never implicit.
repo:readforge.git.doctor.v1 — Scoped Git authorization and ref diagnostic.owner/repo?--json, --jsonl, --base-url, --canary-push, --yesExamples:
sf git doctor --jsonRemediation: Run sf auth login, then sf auth git-credential owner/repo, and retry.
sf actions list#List Actions runs.
Lists scoped runs with SHA, actor, conclusion, and linked Deploy delivery evidence. --branch selects one exact workflow trigger branch; a canonical refs/heads/... input is normalized to that branch name.
Aliases: sf actions runs.
actions:readforge.actions.list.v1 — Runs with delivery evidence.owner/repo?--json, --jsonl, --base-url, --limit, --status, --branchExamples:
sf actions list --jsonsf actions list owner/repo --branch codex/repo-rename-redirect --jsonRemediation: Use --branch with one exact branch, or sf actions inspect for a particular run.
sf actions inspect#Inspect an Action run and linked release receipt.
Includes jobs, steps, timings, cache evidence, logs summary, and Deploy delivery state.
Aliases: sf actions explain.
actions:readforge.actions.inspect.v1 — Action and release receipt evidence.owner/repo?, run-id--json, --jsonl, --base-urlExamples:
sf actions inspect owner/repo 42 --jsonRemediation: Use sf actions list to find an accessible run.
sf actions cancel#Cancel an Action run.
Explicitly cancels a cancellable run; no retry or deploy repair is implied.
actions:writeforge.actions.cancel.v1 — Cancelled run state.owner/repo, run-id--json, --jsonl, --base-url, --yesExamples:
sf actions cancel owner/repo 42 --yesRemediation: Inspect the run before cancelling.
sf agent profiles#List repository-agent execution profiles.
Shows live Instant and allowlisted Workspace availability, capabilities, and backend reasons for one repository.
agent:readforge.agent.profiles.v1 — Execution ladder and live availability.owner/repo--json, --jsonl, --base-urlExamples:
sf agent profiles owner/repo --jsonRemediation: Confirm repository access and inspect unavailable_reason before selecting a tier.
sf agent list#List durable repository-agent threads.
Lists private thread handles without returning another repository’s conversations.
agent:readforge.agent.list.v1 — Repository-scoped agent threads.owner/repo--json, --jsonl, --base-url, --limitExamples:
sf agent list owner/repo --jsonRemediation: Use sf agent create to start a thread.
sf agent create#Create or recover a durable repository-agent thread.
Creates a repository-scoped thread or idempotently returns the caller-selected thread handle.
agent:runforge.agent.create.v1 — Created or recovered thread.owner/repo--json, --jsonl, --base-url, --thread-idExamples:
sf agent create owner/repo --jsonRemediation: Keep the returned thread_id for later messages.
sf agent view#Inspect one durable repository-agent thread.
Returns messages, runs, approvals, artifacts, and immutable receipts for the selected thread.
agent:readforge.agent.view.v1 — Authoritative thread state and receipts.owner/repo, thread-id--json, --jsonl, --base-urlExamples:
sf agent view owner/repo agent_thread_0123456789abcdef0123456789abcdef --jsonRemediation: Use sf agent list to find the thread.
sf agent message#Message a repository agent at an explicit execution tier.
Creates a thread when needed, freezes the selected source ref, and submits Auto, Instant, or allowlisted Workspace work without changing thread identity.
agent:messageforge.agent.message.v1 — Accepted message, frozen run, thread handle, and events URL.owner/repo--json, --jsonl, --base-url, --message, --thread, --mode, --max-compute, --source-ref, --client-message-idExamples:
sf agent message owner/repo --message "Explain this module" --mode instant --jsonsf agent message owner/repo --thread agent_thread_0123456789abcdef0123456789abcdef --message "Implement and test it" --mode workspace --jsonRemediation: Inspect sf agent profiles; Workspace additionally requires agent:write, repository write permission, and an Alpha allowlist match.
sf agent events#Read normalized repository-agent events after a cursor.
Reads durable progress, approval, artifact, and terminal events without polling provider-private state.
agent:readforge.agent.events.v1 — Normalized durable event page.owner/repo, thread-id--json, --jsonl, --base-url, --after, --limitExamples:
sf agent events owner/repo agent_thread_0123456789abcdef0123456789abcdef --after 0 --jsonRemediation: Resume from the returned cursor.
sf agent cancel#Cancel one repository-agent run.
Requests cancellation for the exact thread/run pair; Workspace teardown and publication fencing remain server-owned.
agent:cancelforge.agent.cancel.v1 — Cancellation request and run state.owner/repo, thread-id, run-id--json, --jsonl, --base-url, --yesExamples:
sf agent cancel owner/repo agent_thread_0123456789abcdef0123456789abcdef agent_run_0123456789abcdef0123456789abcdef --yes --jsonRemediation: Inspect the thread receipt to confirm teardown.
sf agent approve#Resolve one repository-agent approval.
Resolves the exact approval inside its repository, thread, and run authority without broadening future actions.
agent:approveforge.agent.approve.v1 — Resolved approval and authoritative run state.owner/repo, thread-id, run-id, approval-id--json, --jsonl, --base-url, --decision, --note, --yesExamples:
sf agent approve owner/repo agent_thread_0123456789abcdef0123456789abcdef agent_run_0123456789abcdef0123456789abcdef agent_approval_0123456789abcdef0123456789abcdef --decision approve_once --yes --jsonRemediation: Refresh the thread before resolving a conflicting decision.
sf content create#Create an account or repository Content publication.
Create an account or repository Content publication. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentCreate.v1 — Create an account or repository Content publication..--json, --jsonl, --base-url, --repo, --org, --title, --description, --visibilityExamples:
sf content create --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content attach#Move an existing publication into a repository scope.
Move an existing publication into a repository scope. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentAttach.v1 — Move an existing publication into a repository scope..--json, --jsonl, --base-url, --repo, --slugExamples:
sf content attach --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content list#List an editorial publication and its draft documents.
List an editorial publication and its draft documents. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentList.v1 — List an editorial publication and its draft documents..--json, --jsonl, --base-urlExamples:
sf content list --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content get#Read one published Content document.
Read one published Content document. This operates on Forge Content documents and releases, never Git branches or application deployments.
forge.content.contentGet.v1 — Read one published Content document..--json, --jsonl, --base-urlExamples:
sf content get --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content draft#Create an immutable Content draft revision.
Create an immutable Content draft revision. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentDraft.v1 — Create an immutable Content draft revision..--json, --jsonl, --base-url, --slug, --title, --file, --metadata, --base-revision, --description, --collectionExamples:
sf content draft --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content draft pull#Fetch the selected Content draft for local or agent work.
Fetch the selected Content draft for local or agent work. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentDraftPull.v1 — Fetch the selected Content draft for local or agent work..--json, --jsonl, --base-urlExamples:
sf content draft pull --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content draft push#Push an immutable Content draft revision.
Push an immutable Content draft revision. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentDraft.v1 — Push an immutable Content draft revision..--json, --jsonl, --base-urlExamples:
sf content draft push --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content draft diff#Diff two immutable Content revisions.
Diff two immutable Content revisions. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentDraftDiff.v1 — Diff two immutable Content revisions..--json, --jsonl, --base-urlExamples:
sf content draft diff --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content draft preview#Preview the selected Content draft safely.
Preview the selected Content draft safely. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentDraftPreview.v1 — Preview the selected Content draft safely..--json, --jsonl, --base-urlExamples:
sf content draft preview --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content history#List immutable revisions for a Content document.
List immutable revisions for a Content document. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentHistory.v1 — List immutable revisions for a Content document..--json, --jsonl, --base-urlExamples:
sf content history --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content comments#List Content review threads.
List Content review threads. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentComments.v1 — List Content review threads..--json, --jsonl, --base-urlExamples:
sf content comments --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content comment add#Create a range, block, document, or screenshot review thread.
Create a range, block, document, or screenshot review thread. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:commentforge.content.contentCommentAdd.v1 — Create a range, block, document, or screenshot review thread..--json, --jsonl, --base-urlExamples:
sf content comment add --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content comment reply#Reply to a Content review thread.
Reply to a Content review thread. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:commentforge.content.contentCommentReply.v1 — Reply to a Content review thread..--json, --jsonl, --base-urlExamples:
sf content comment reply --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content comment resolve#Resolve a Content review thread.
Resolve a Content review thread. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:commentforge.content.contentCommentResolve.v1 — Resolve a Content review thread..--json, --jsonl, --base-urlExamples:
sf content comment resolve --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content comment assign#Assign a review thread to an explicitly granted agent.
Assign a review thread to an explicitly granted agent. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentCommentAssign.v1 — Assign a review thread to an explicitly granted agent..--json, --jsonl, --base-urlExamples:
sf content comment assign --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content publish#Atomically select a Content publication release.
Atomically select a Content publication release. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:publishforge.content.contentPublish.v1 — Atomically select a Content publication release..--json, --jsonl, --base-urlExamples:
sf content publish --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content release status#List Content publication releases.
List Content publication releases. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:readforge.content.contentReleaseStatus.v1 — List Content publication releases..--json, --jsonl, --base-urlExamples:
sf content release status --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content rollback#Move a publication pointer to a prior immutable release.
Move a publication pointer to a prior immutable release. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:publishforge.content.contentRollback.v1 — Move a publication pointer to a prior immutable release..--json, --jsonl, --base-urlExamples:
sf content rollback --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content grant#Grant a service principal a Content publication role.
Grant a service principal a Content publication role. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentGrant.v1 — Grant a service principal a Content publication role..--json, --jsonl, --base-urlExamples:
sf content grant --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content inspect#Inspect a Markdown file before Content import.
Inspect a Markdown file before Content import. This operates on Forge Content documents and releases, never Git branches or application deployments.
forge.content.contentInspect.v1 — Inspect a Markdown file before Content import..--json, --jsonl, --base-urlExamples:
sf content inspect --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf content import#Import one file or a Markdown/MDX directory as immutable Content drafts.
Import one file or a Markdown/MDX directory as immutable Content drafts. This operates on Forge Content documents and releases, never Git branches or application deployments.
content:writeforge.content.contentImport.v1 — Import one file or a Markdown/MDX directory as immutable Content drafts..--json, --jsonl, --base-url, --file, --dir, --base-revisionExamples:
sf content import --jsonRemediation: Inspect the publication state and retry with the current Content revision or release identity.
sf pr list#List pull requests.
Lists pull requests without requiring a browser.
repo:readforge.pr.list.v1 — Pull requests and pagination.owner/repo?--json, --jsonl, --base-url, --stateExamples:
sf pr list owner/repo --state open --jsonRemediation: Check the repository name and credential scope.
sf pr view#Inspect a pull request.
Returns pull request metadata, commits, and the exact unified diff.
repo:readforge.pr.view.v1 — Pull request metadata, commits, and diff.owner/repo, number--json, --jsonl, --base-urlExamples:
sf pr view owner/repo 7 --jsonRemediation: Use sf pr list to find an accessible pull request.
sf pr create#Create a pull request.
Creates a pull request from explicit source and target branches without opening a browser.
repo:writeforge.pr.create.v1 — Created pull request.owner/repo--json, --jsonl, --base-url, --head, --base, --title, --body, --yesExamples:
sf pr create owner/repo --head feature --base main --title "Add feature" --yesRemediation: Run sf pr list before retrying after an uncertain response.
sf deploy list#List generalized Deploy projects and releases.
Reads the authoritative generalized Deploy release ledger.
repo:readforge.deploy.list.v1 — Projects and current release evidence.owner/repo?--json, --jsonl, --base-urlExamples:
sf deploy list --jsonRemediation: Configure a Deploy project for the repository.
sf deploy status#Show a generalized Deploy release and production evidence.
Shows release, provider version, binding, endpoint, and activation evidence without treating an upload as live.
Aliases: sf deploy show.
repo:readforge.deploy.status.v1 — Release and production pointer evidence.owner/repo?--json, --jsonl, --base-url, --project, --release, --watchExamples:
sf deploy status --project project_id --jsonRemediation: Use sf deploy list.
sf deploy retry#Request an explicit generalized Deploy build.
Uses an idempotency key and only requests the current project head; it never replays an uncertain repository command.
repo:writeforge.deploy.retry.v1 — Release ID, source SHA, and replay status.owner/repo--json, --jsonl, --base-url, --project, --idempotency-key, --yesExamples:
sf deploy retry owner/repo --project id --idempotency-key repair-123 --yesRemediation: Use sf diagnose before a retry after repository commands have started.
sf deploy promote#Promote a verified release with current-pointer fencing.
Activates a selected generalized release only when expected current production state still matches.
repo:writeforge.deploy.promote.v1 — Activation receipt and provider evidence.owner/repo--json, --jsonl, --base-url, --project, --release, --expected-current, --yesExamples:
sf deploy promote owner/repo --project id --release id --expected-current deployment --yesRemediation: Refresh sf deploy status and retry with the new pointer.
sf deploy rollback#Restore a selected verified release with fencing.
Rolls production back only to a selected release and expected current pointer.
repo:writeforge.deploy.rollback.v1 — Rollback activation receipt.owner/repo--json, --jsonl, --base-url, --project, --release, --expected-current, --yesExamples:
sf deploy rollback owner/repo --project id --release id --expected-current deployment --yesRemediation: Refresh sf deploy status before retrying.
sf diagnose#Retrieve a sanitized release or ingest diagnostic.
Resolves a 32-character Git ingest request ID independently of the current checkout. Release and deployment diagnostics remain repository-scoped. Returns the authorized phase, retryability, affected SHA/release/run, and next safe action.
repo:readforge.diagnose.v1 — Sanitized caller-authorized diagnostic.operation-or-ingest-id--json, --jsonl, --base-url, --repo, --watch, --timeoutExamples:
sf diagnose ingest_id --watch --jsonsf diagnose release_id --repo owner/repo --jsonRemediation: Use the ID returned by release status, Git, Actions, or Deploy output.
sf release enqueue#Submit an exact feature SHA to the serialized production merge queue.
Validates with the workflow registered from base main, then advances main with a ref compare-and-swap. Each affected project is built independently from the merged main SHA.
repo:writeforge.release.enqueue.v1 — Merge request identity and queue state.sha--json, --jsonl, --base-url, --ref, --repo, --pr, --yesExamples:
sf release enqueue $SHA --ref codex/my-feature --repo swyx/forge --pr 5 --yes --jsonRemediation: Confirm the branch has an open ready pull request, or query sf release status.
sf release status#Read canonical merge or production-deployment state.
Returns a serialized merge request for repository readers, or per-project production deployments for site operators.
repo:readforge.release.status.v1 — Merge request or project deployment and receipt state.id?--json, --jsonl, --base-url, --repoExamples:
sf release status 6f35983d-9ab3-4f16-a65c-6da3781984c7 --repo swyx/forge --jsonsf release status --jsonRemediation: Use the request ID returned by enqueue and the same --repo value.
sf release watch#Watch one merge or project deployment until terminal.
Polls only the merge or production-deployment status API with bounded exponential backoff and performs no provider or workflow mutation.
repo:readforge.release.status.v1 — Terminal merge or production-deployment status.id--json, --jsonl, --base-url, --repo, --timeoutExamples:
sf release watch 6f35983d-9ab3-4f16-a65c-6da3781984c7 --repo swyx/forge --jsonRemediation: Run sf release status <id> --repo owner/name for the latest state.
sf deploy check#Validate a local forgeBuild.ts.
Statically validates the checked-in Forge Deploy configuration.
forge.deploy.check.v1 — Normalized local config validation.path?--json, --jsonl, --base-urlExamples:
sf deploy checksf deploy check --jsonRemediation: Fix the cited forgeBuild.ts constraint.
sf observe install#Install the local skill observability collector.
Installs the pinned macOS OTel Collector, a metadata-only Claude Code activation hook, local event export, and optional vendor-neutral fan-out.
skit:writeforge.observe.install.v1 — Collector, adapter, privacy, and destination status.--json, --jsonl, --base-url, --yes, --metadata-only, --forge, --otlp-endpoint, --local-file, --without-git-ai, --without-service, --collector-binary, --claude-settings, --launchd-plist, --homeExamples:
sf observe install --metadata-only --forge --yessf observe install --otlp-endpoint https://api.honeycomb.io --yesRemediation: Run sf observe doctor --json.
sf observe status#Status the local skill observability collector.
Status the local metadata-only OTel installation without deleting retained evidence.
forge.observe.status.v1 — Collector, adapter, privacy, and destination status.--json, --jsonl, --base-url, --yes, --metadata-only, --forge, --otlp-endpoint, --local-file, --without-git-ai, --without-service, --collector-binary, --claude-settings, --launchd-plist, --homeExamples:
sf observe status --jsonRemediation: Run sf observe doctor --json.
sf observe doctor#Doctor the local skill observability collector.
Doctor the local metadata-only OTel installation without deleting retained evidence.
forge.observe.doctor.v1 — Collector, adapter, privacy, and destination status.--json, --jsonl, --base-url, --yes, --metadata-only, --forge, --otlp-endpoint, --local-file, --without-git-ai, --without-service, --collector-binary, --claude-settings, --launchd-plist, --homeExamples:
sf observe doctor --jsonRemediation: Run sf observe doctor --json.
sf observe uninstall#Uninstall the local skill observability collector.
Uninstall the local metadata-only OTel installation without deleting retained evidence.
forge.observe.uninstall.v1 — Collector, adapter, privacy, and destination status.--json, --jsonl, --base-url, --yes, --metadata-only, --forge, --otlp-endpoint, --local-file, --without-git-ai, --without-service, --collector-binary, --claude-settings, --launchd-plist, --homeExamples:
sf observe uninstall --jsonRemediation: Run sf observe doctor --json.
sf add skit#Install a complete SKIT release.
Resolves a Forge ID, clone URL, direct URL/archive, or local path into the content-addressed library and atomically projects enabled children to supported agents. Standalone skit add and skit install use this same handler.
Aliases: sf skit install, sf skit add.
forge.skit.install.v1 — Exact installation and per-child state.source--json, --jsonl, --base-url, --version, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-rootExamples:
sf add skit owner/name --version 1.0.0skit add https://example.test/skills.gitRemediation: Run skit doctor and resolve conflicts explicitly.
sf skit init#Create a single-skill SKIT scaffold.
Create a single-skill SKIT scaffold.
forge.skit.init.v1 — SKIT package-management result.source-or-path?--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit initskit initRemediation: Run skit doctor --json.
sf skit validate#Validate bundle declarations, files, hashes, and static audit.
Validate bundle declarations, files, hashes, and static audit.
forge.skit.validate.v1 — SKIT package-management result.source-or-path?--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit validateskit validateRemediation: Run skit doctor --json.
sf skit publish#Publish the current valid draft as an immutable release.
Publish the current valid draft as an immutable release.
skit:writeforge.skit.publish.v1 — SKIT package-management result.source-or-path?--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit publishskit publishRemediation: Run skit doctor --json.
sf skit pull#Resolve and install a SKIT source.
Resolve and install a SKIT source.
forge.skit.pull.v1 — SKIT package-management result.source-or-path--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit pullskit pullRemediation: Run skit doctor --json.
sf skit enable#Enable and project one contained skill.
Enable and project one contained skill.
forge.skit.enable.v1 — SKIT package-management result.skill-or-path--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit enableskit enableRemediation: Run skit doctor --json.
sf skit disable#Disable one contained skill without altering its bundle.
Disable one contained skill without altering its bundle.
forge.skit.disable.v1 — SKIT package-management result.skill-or-path--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit disableskit disableRemediation: Run skit doctor --json.
sf skit update#Update one or all installed SKITs from recorded sources.
Update one or all installed SKITs from recorded sources.
forge.skit.update.v1 — SKIT package-management result.source-or-path?--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit updateskit updateRemediation: Run skit doctor --json.
sf skit remove#Remove clean managed projections and local desired state.
Remove clean managed projections and local desired state.
forge.skit.remove.v1 — SKIT package-management result.source-or-path--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit removeskit removeRemediation: Run skit doctor --json.
sf skit list#List Forge-managed local SKIT installations.
List Forge-managed local SKIT installations.
forge.skit.list.v1 — SKIT package-management result.--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit listskit listRemediation: Run skit doctor --json.
sf skit sync#Validate and three-way reconcile a bound editable draft.
Validate and three-way reconcile a bound editable draft.
forge.skit.sync.v1 — SKIT package-management result.source-or-path?--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit syncskit syncRemediation: Run skit doctor --json.
sf skit inventory#Rescan known agent roots without changing projections.
Rescan known agent roots without changing projections.
forge.skit.inventory.v1 — SKIT package-management result.--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit inventoryskit inventoryRemediation: Run skit doctor --json.
sf skit reconcile#Apply only safe non-conflicting desired-state changes.
Apply only safe non-conflicting desired-state changes.
forge.skit.reconcile.v1 — SKIT package-management result.--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit reconcileskit reconcileRemediation: Run skit doctor --json.
sf skit doctor#Diagnose local library, adapter, and projection state.
Diagnose local library, adapter, and projection state.
forge.skit.doctor.v1 — SKIT package-management result.--json, --jsonl, --base-url, --version, --revision, --agent, --home, --claude-root, --codex-root, --opencode-root, --devin-root, --applyExamples:
sf skit doctorskit doctorRemediation: Run skit doctor --json.
sf benchmark#Plan or run an exact-tree Forge/GitHub benchmark.
Uses a packaged fixture and refuses source drift. The executable transport matrix is read-only and creates only local temporary clones. Cold-push and build scenarios remain gated on server-issued ephemeral namespaces so this command cannot create permanent repositories, attach targets, or promote.
forge.benchmark.result.v1 — Exact fixture identity, scenario policy, provider samples, median, and p95.fixture--json, --jsonl, --base-url, --forge-url, --github-url, --sha, --samples, --executeExamples:
sf benchmark swyxkit --jsonsf benchmark swyxdotio --forge-url https://forge.smol.ai/owner/mirror.git --execute --samples 5 --jsonRemediation: Refresh the fixture SHA only after both remotes expose the same exact tree.
sf register#Register a Forge account.
Registers a Forge account and stores the resulting full-access session in protected OS storage by default. If protected storage is unavailable, the command fails closed; use --storage file only for an explicit local sandbox or coding-agent copy.
forge.auth.register.v1 — Sanitized registered identity and selected credential storage.--json, --jsonl, --base-url, --username, --email, --password, --invite-code, --storageExamples:
sf register --username NAME --email ADDRESS --invite-code CODEsf register --username NAME --email ADDRESS --storage fileRemediation: If protected storage is unavailable, deliberately make a sandbox-readable local copy with sf register --username NAME --email ADDRESS --storage file.
sf repo create#Create a repository.
Create a repository.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo createRemediation: Run sf help for the current arguments.
sf repo list#List repositories.
List repositories.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo listRemediation: Run sf help for the current arguments.
sf repo get#Get a repository.
Get a repository.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo getRemediation: Run sf help for the current arguments.
sf repo update#Update a repository.
Update a repository.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo updateRemediation: Run sf help for the current arguments.
sf repo star#Star a repository.
Star a repository.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo starRemediation: Run sf help for the current arguments.
sf repo unstar#Unstar a repository.
Unstar a repository.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo unstarRemediation: Run sf help for the current arguments.
sf repo import#Import repositories.
Import repositories.
repo:readforge.cli.response.v1 — Command response.Examples:
sf repo importRemediation: Run sf help for the current arguments.
sf clone-url#Print a clone URL.
Returns the canonical HTTPS clone URL for one Forge repository.
forge.clone-url.v1 — Canonical repository clone URL.owner/repo--json, --jsonl, --base-urlExamples:
sf clone-url owner/reposf clone-url owner/repo --jsonRemediation: Pass a repository in owner/repo form.
sf transcript upload#Upload an agent transcript.
Upload an agent transcript.
repo:readforge.cli.response.v1 — Command response.Examples:
sf transcript uploadRemediation: Run sf help for the current arguments.
sf hooks install#Install repository hooks.
Install repository hooks.
repo:readforge.cli.response.v1 — Command response.Examples:
sf hooks installRemediation: Run sf help for the current arguments.
sf hooks status#Inspect repository hooks.
Inspect repository hooks.
repo:readforge.cli.response.v1 — Command response.Examples:
sf hooks statusRemediation: Run sf help for the current arguments.
sf migrate#Inspect or migrate a local repository configuration.
Inspect or migrate a local repository configuration.
repo:readforge.cli.response.v1 — Command response.Examples:
sf migrateRemediation: Run sf help for the current arguments.
sf llms#Fetch llms.txt.
Fetch llms.txt.
repo:readforge.cli.response.v1 — Command response.Examples:
sf llmsRemediation: Run sf help for the current arguments.