CLI reference
Reference for the Phasor command-line interface. Commands are grouped by task. phasor help names every command, and phasor help VERB gives one command's arguments and an example.
Command conventions
- Help.
phasor helpdescribes the most used commands in a line each and names the rest.phasor help VERBgives a command's arguments and an example. - Output. The commands read most often, such as
status,adopt,land,checkandnext, print plain text. The others print indented JSON.--jsonprints any result as JSON on one line, and commands run withPHASOR_AGENTset print JSON. - Identifiers. Ids are printed as their first 12 hexadecimal characters. Where an id is expected, a prefix of 6 or more characters that identifies one record is accepted.
- Project.
-C FOLDER, or--repo FOLDER, names the project. Without it, Phasor uses the nearest project at or above the current folder. - Exit status.
0on success.1when Phasor refused or stopped the operation, as when a rule forbids it or a check fails during a landing.2for invalid input, an I/O error, or another repository that could not be reached. - Refusals carry a code, as in
phasor: refused (HB3): ..., that scripts can match.
identity new | Create an identity: this machine's key, and spare keys if requested |
|---|---|
identity show | Show the identity a command would act as, and its keys |
init | Start a project in the current folder. Files at its root become intent |
clone | Copy a project into a new folder, from a folder, an https:// URL or a bundle |
import | Import a Git commit, as a new project or as a draft on an existing one |
status | Summarize the project: open intent, threads waiting on you, unlanded changes, and the head |
where | Print the project's paths: root, work folder, record and memory |
outline | List each intent file with its Markdown headings and the threads open on it |
|---|---|
show | Print an intent file, one section of it, an earlier version, a thread, a record or a memory entry |
adopt | Adopt edited intent, with optional context |
reopen | Reopen resolved intent without changing its text |
reset | Restore an intent file to an earlier version |
code-ignore | Mark intent files that nothing is built for, or clear the mark |
next | List the work to do next, in a fixed order. --load includes each item's context |
|---|---|
check | Run checks on the work in the folder, on a named draft, on a recorded resolution, or on the current landed state |
land | Record work: the changed files, the intent covered, the rationale and the check results |
draft | Manage named drafts: unlanded work held apart from the work folder |
revert | Undo one landed resolution and keep the work that landed after it |
ignore | Add or remove paths that Phasor never records, such as build output |
clean | List build output, or delete it |
discuss open | Open a thread that references what it concerns |
|---|---|
discuss post | Post to a thread, and optionally set its state |
discuss list | List the threads that are not concluded. --all includes the concluded ones |
remember | Write or delete a rule or a note |
memory | List the rules and notes, with their tags |
annotate | Attach a note to an existing version or record |
audit | Follow an intent file forward to its landings, files and check results |
|---|---|
trace | Follow a file back through its versions to the resolutions and intent behind them |
walk | List the project's steps in order, or one file's versions |
rerun | Run a recorded result's check again on its exact tree, and compare outcomes |
bisect | Find the first step at which a check fails |
verify | Verify the record's integrity: every signature, the hash chain and the stored content |
sync | Exchange landed work with another of your lanes |
|---|---|
lanes | List the lanes on this machine and which are finished. Reclaim or remove finished ones |
offer | Offer this project's records to a project that another owner holds |
follow | Take the new steps of the project this one was cloned from |
bundle | Write the project's records to one file, for transfer |
link | Reference another Phasor project, pinned at a step |
credential | Store the authorization value for a project reached by an https:// URL |
tag | Name a step, the head by default, as a release |
|---|---|
release-notes | Print a release's notes, generated from the record |
export | Write the history as Git commits, or one step's files as a folder or an archive |
mcp | Serve Phasor's tools to an agent over MCP: see Agent integration |
|---|---|
bootstrap | Print the standard agent instructions |