Skip to content

CLI Overview

[view as markdown]

The fp CLI is the primary interface for agent-native issue tracking. All commands work locally and are designed to be used by both humans and AI agents.

CommandDescription
fp initRegister the project, scaffold .fp/, and prompt to add agent-specific instructions
fp init --agent claudeSame as fp init, and write FP_CLAUDE.md / ensure CLAUDE.md @-includes it
fp init --agent standardSame as fp init, and write FP_AGENTS.md / ensure AGENTS.md @-includes it
fp init --agent codexAlias for --agent standard
fp init --agent skipSame as fp init; explicit choice to add no extra agent files
fp agent setup claudeAdd/refresh FP_CLAUDE.md and the CLAUDE.md include in an already-initialized project
fp agent setup standardAdd/refresh FP_AGENTS.md and the AGENTS.md include in an already-initialized project
fp agent setup codexAlias for fp agent setup standard
CommandDescription
fp project listList all registered projects with details
fp project move --from <old-path>Update a project’s repo path after you moved or renamed the folder
fp project gc [--force]Report orphaned storage, duplicate entries, and entries whose storage directory is missing; --force removes them
fp project update --prefix <PREFIX> --alias <ALIAS>Change the local project prefix or machine-local alias
fp project unregister [target] [--delete-storage] [--yes]Remove a project from the local registry. Data is kept unless you pass --delete-storage

fp project unregister with no target uses the project at or above the current directory. A target can be a repo path, a project name (as shown by fp project list), a storage directory name, or a project alias. After you unregister a project and keep its data, run fp init --prefix <PREFIX> in the repo to register it again with the same data. If the project had an alias, then run fp project update --alias <ALIAS>, because fp init does not set aliases. A project that you moved with fp project move keeps the storage directory name from its old path, so fp init does not reuse that data. When no other registry entry uses the kept data, fp project gc does not find it either: delete the directory yourself, or unregister with --delete-storage.

CommandDescription
fp project linkLink the local project to a remote project and write .fp/remote.toml
fp project sync [issue-id]Synchronize local issues with the linked remote project
fp project clone [project-id]Clone a remote fp project locally
fp project remoteShow the effective remote project identity and its sources
fp project remote stampWrite .fp/remote.toml for an already-linked project
fp project unlinkRemove the local link; remote data is not deleted

Use these commands to link local fp data to a remote project. For CI and cloud agents, follow Cloud Agents to use the REST API without a local fp store. Local fp usage does not require FP_REMOTE or FP_TOKEN.

CommandDescription
fp guide planPrint the planning skill primer
fp guide implementPrint the implementation skill primer
fp guide brainstormPrint the brainstorm-authoring primer (alias: bs)
fp guide extensionPrint the extension-authoring primer (aliases: extensions, ext)
fp guide <skill> --references <name>Print companion reference material (e.g. fp guide brainstorm --references mermaid)
CommandDescription
fp issue create --title "..."Create a new issue
fp issue create --title "..." --parent IDCreate a sub-issue
fp issue create --title "..." --property labels=frontend,backendCreate with extension fields
fp issue listList all issues
fp issue list --status todoFilter by status
fp issue show IDShow issue details and comments
fp issue update --status STATUS IDUpdate issue status
fp issue update --property labels=frontend IDUpdate extension fields
CommandDescription
fp treeView the full issue hierarchy
fp context IDLoad full issue context (for agents)
fp comment ID "message"Add a comment to an issue
fp comment update COMMENT_ID "text"Edit an existing comment (alias edit)
fp comment delete COMMENT_IDSoft-delete a comment

See Brainstorms for the full guide.

CommandDescription
fp bs create <file.md> [--title "..."] [--format json]Create a brainstorm from a markdown file
fp bs list [--deleted] [--format json]List brainstorms
fp bs show ID [--with-comments] [--resolved] [--version N] [--desktop]Dump brainstorm markdown to stdout
fp bs open IDOpen a brainstorm in the Mac desktop app
fp bs update ID <file.md> [--title "..."]Update with new markdown (creates a new version)
fp bs delete IDSoft-delete a brainstorm
fp bs versions ID [--format json]List version history
fp bs comments ID [--format json]List comments on a brainstorm
fp bs comments add ID "text"Add a comment (prints a ::comment-ref{} snippet)
fp bs comments resolve ID COMMENT_IDResolve a comment thread
fp bs comments delete ID COMMENT_IDSoft-delete a comment

fp brainstorm and fp bs are interchangeable; fp bs comments also accepts the alias fp bs comment. Short ID prefixes are accepted anywhere an ID is required.

Issues have three statuses:

StatusMeaning
todoPlanned, not yet started
in-progressActively being worked on
doneCompleted

Issues support priority levels: low, medium, high, critical.

Terminal window
fp issue create --title "Fix critical bug" --priority high

Every command supports --help:

Terminal window
fp --help
fp issue --help
fp issue create --help