CLI Reference

Command reference generated from the Flywheel Usage spec.

Inspect, organize, and operate Flywheel research graphs from the command line.

Command catalog

This reference is generated from flywheel --usage-spec and contains 138 command pages.

Setup Commands

CommandSummary
flywheel completionGenerate a shell completion script from the public Flywheel Usage spec
flywheel completion bashGenerate a bash shell completion script
flywheel completion fishGenerate a fish shell completion script
flywheel completion installInstall a generated shell completion script to a user-level location
flywheel completion nuGenerate a nu shell completion script
flywheel completion nushellGenerate a nushell shell completion script
flywheel completion powershellGenerate a powershell shell completion script
flywheel completion uninstallRemove Flywheel-managed shell completion files and profile blocks
flywheel completion zshGenerate a zsh shell completion script
flywheel helpShow Flywheel CLI help.
flywheel setupSet up Flywheel for your AI coding host
flywheel uninstallRemove Flywheel MCP entries and bundled skills from selected hosts
flywheel versionPrint the Flywheel CLI version.

Auth Commands

CommandSummary
flywheel auth:keychain:clearRemove an API key from the OS keychain for a profile.
flywheel auth:keychain:setStore an API key in the OS keychain for a profile. Reads the key from stdin.
flywheel auth:loginBootstrap API key auth through RFC 8628 device authorization flow.
flywheel auth:statusShow authentication status for the current client context.

Profile Commands

CommandSummary
flywheel profile:listList configured CLI profiles (local only).
flywheel profile:setCreate or update a CLI profile (local only; never stores plaintext keys).
flywheel profile:showShow a profile definition (local only).
flywheel profile:unsetDelete a CLI profile (local only).

Nodes & Graph Commands

CommandSummary
flywheel campaign:snapshotResolve campaign root snapshot for a node.
flywheel graph:getRead the graph projection for navigation and topology workflows.
flywheel nodes:add-parentAdd a parent-child edge (mirrors POST /nodes/{node_id}/parents/add).
flywheel nodes:branchCreate a child branch from a node.
flywheel nodes:childrenPage direct visible children for one node.
flywheel nodes:commitCommit staged changes to an existing node.
flywheel nodes:commit-newCreate and commit a new node in one request.
flywheel nodes:createCreate a minimal node (title only) and emit graph-change event.
flywheel nodes:deleteDelete a node by identifier. Requires --yes.
flywheel nodes:delete-bulkDelete multiple node subtrees. Requires --yes.
flywheel nodes:filesList files attached to a node.
flywheel nodes:getFetch one node by identifier. Use relationship paging commands for complete direct-neighbor traversal.
flywheel nodes:listList nodes with optional filters.
flywheel nodes:mergeMerge multiple nodes into one resolved node.
flywheel nodes:parentsPage direct visible parents for one node.
flywheel nodes:remove-parentRemove a parent-child edge.
flywheel nodes:render:ancestryRender ancestry (roots-ward lineage) for a node.
flywheel nodes:render:summaryRender a compact summary of a node subtree.
flywheel nodes:render:treeRender a bounded tree projection for a node.
flywheel nodes:resolve-slugResolve a slug to a node ID.
flywheel nodes:sharing:getGet sharing (access policy) for a node.
flywheel nodes:sharing:setReplace sharing (access policy) for a node.
flywheel nodes:sharing:set-bulkApply one sharing policy to multiple nodes.
flywheel nodes:sharing:summariesRead access summaries for multiple nodes in one batch.
flywheel nodes:stage:lease:acquireAcquire an edit lease for an existing node.
flywheel nodes:stage:lease:heartbeatHeartbeat an active node stage lease.
flywheel nodes:stage:lease:releaseRelease a node stage lease.
flywheel remote-artifacts:refreshForce refresh a public HTTPS JSON Remote Artifact for a node.
flywheel remote-artifacts:resolveResolve a public HTTPS JSON Remote Artifact for a node.
flywheel tags:assignAssign or clear tags on a node (atomic replace).
flywheel tags:createCreate a reusable tag on a graph root.
flywheel tags:deleteDelete a tag definition from the graph.
flywheel tags:updateUpdate a tag definition.

Artifacts & Files Commands

CommandSummary
flywheel artifacts:deleteDelete an artifact from a node.
flywheel artifacts:delete-bulkDelete multiple artifacts from one node.
flywheel artifacts:getFetch one artifact metadata record.
flywheel artifacts:listList artifacts for a node.
flywheel artifacts:note:setAdd, update, or clear an artifact note.
flywheel artifacts:uploadOne-shot upload: prepare + PUT + finalize from a single invocation.
flywheel artifacts:upload:finalizeFinalize prepared artifact uploads and attach artifacts.
flywheel artifacts:upload:prepareCreate upload batch with signed per-item upload tickets.
flywheel files:listList all your files across nodes.

Hooks Commands

CommandSummary
flywheel hooks:createCreate a new hook on an owner node.
flywheel hooks:deleteDelete a hook from an owner node.
flywheel hooks:listList hooks configured for an owner node.
flywheel hooks:runs:listList hook runs for an owner node.
flywheel hooks:secrets:createCreate a hook secret.
flywheel hooks:secrets:deleteDelete one hook secret.
flywheel hooks:secrets:listList hook secret metadata for an owner node.
flywheel hooks:secrets:updateRotate one hook secret value.
flywheel hooks:set-enabledEnable or disable an existing hook.
flywheel hooks:updateUpdate mutable hook fields for an existing hook.

Compute & Executions Commands

CommandSummary
flywheel compute:acquireAcquire managed compute for a node; with --wait, wait for usable SSH connection material.
flywheel compute:budgetsList budget grants visible for a node context.
flywheel compute:connectionGet SSH connection material for a usable lease.
flywheel compute:fundingRead grant-scoped funding context before compute acquire.
flywheel compute:optionsList allowed compute catalog options for a node.
flywheel compute:releaseRelease one active compute lease (async; use --wait to block).
flywheel compute:release-allRelease all active leases in current scope (pass --force for account scope).
flywheel compute:statusReturn compute lease status.
flywheel executions:launchStart an execution for a node.
flywheel executions:listList executions for a node.
flywheel executions:terminateStop an execution for a node.

Approvals & Budgets Commands

CommandSummary
flywheel approval-sessions:expireExpire an approval session.
flywheel approval-sessions:heartbeatCreate or refresh a compute approval session.
flywheel approval-sessions:listList approval sessions.
flywheel campaign-budgets:createCreate a campaign compute budget grant.
flywheel campaign-budgets:listList campaign compute budgets for a root.
flywheel campaign-budgets:revokeRevoke a campaign budget grant.
flywheel campaign-budgets:updateUpdate a campaign budget.

Export & Import Commands

CommandSummary
flywheel export:historyExport node history as JSONL.
flywheel export:subgraphExport a subgraph snapshot.
flywheel export:summaryGenerate a markdown summary export.
flywheel export:summary:pdfRender summary as PDF; requires --out.
flywheel export:summary:render-pdfRender caller-provided markdown as PDF; requires --out.
flywheel export:summary:streamStream summary generation as NDJSON events.
flywheel import:subgraphImport graph JSON into new node records.

Updates & Resources Commands

CommandSummary
flywheel blobs:getDownload a raw blob by storage key.
flywheel machines:listList your managed compute leases.
flywheel updates:hideHide a specific announcement.
flywheel updates:hide-all-activeHide all currently active announcements.
flywheel updates:listList in-app announcements relevant to your account.
flywheel updates:unhideRestore a previously hidden announcement.

Account & Credits Commands

CommandSummary
flywheel account:detachDetach a linked alias account (requires confirm="DETACH"). Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:emails:addAdd an email alias to your account. Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:emails:removeRemove an email alias from your account. Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:emails:set-primarySet your primary email address. Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:getView account snapshot and linked identities.
flywheel account:mergeExecute an account merge (requires confirm="MERGE"). Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:merge:previewPreview what an account merge will do. Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel account:merge:proofMint a merge proof token from a source session token. Requires a browser session; API-key callers receive session_auth_required with /app?settings=user.
flywheel credits:balanceView credit balance and totals.
flywheel credits:billing-portalOpen the Stripe billing portal for the current user and return browser_flow_required JSON with url, opened, and next_action.
flywheel credits:purchaseCreate a Stripe checkout session for a one-time purchase and return browser_flow_required JSON with url, opened, and next_action.
flywheel credits:referralView your referral code and status.
flywheel credits:referral:claimClaim referral rewards using a code.
flywheel credits:subscribeCreate a Stripe checkout session for a subscription and return browser_flow_required JSON with url, opened, and next_action.
flywheel credits:subscriptionView your subscription status.
flywheel credits:transactionsView paginated credit transactions.
flywheel credits:usageFeature-based usage breakdown over a window.

Integrations Commands

CommandSummary
flywheel github:disconnectDisconnect GitHub from your account.
flywheel github:linkStart the GitHub App install/link browser flow.
flywheel github:refresh-reposRefresh the list of accessible repositories.
flywheel github:statusCheck GitHub connection status.
flywheel integrations:huggingface:removeRemove your Hugging Face credential.
flywheel integrations:huggingface:setStore a Hugging Face access token.
flywheel integrations:statusCheck integration connection status (W&B, Hugging Face).
flywheel integrations:wandb:removeRemove your W&B credential.
flywheel integrations:wandb:setStore a Weights & Biases API key.

API Keys Commands

CommandSummary
flywheel api-keys:createCreate a new API key and return the raw material once.
flywheel api-keys:deleteDelete an API key (refuses to delete the active one unless --allow-self).
flywheel api-keys:listList your API keys.
flywheel api-keys:rotateRotate an API key (refuses to rotate the active one unless --allow-self).

Other Commands

CommandSummary
flywheel compute-grants:listList compute grants available to the user.
flywheel compute-grants:request-approvalRequest compute-grant approval. POSTs to the consolidated server endpoint which owns the heartbeat/grants/credits/campaign-budgets/status fan-out.
flywheel feedback:createSubmit bounded feedback to the Flywheel team.
flywheel updateUpdate the local Flywheel CLI package and setup artifacts