Project
CLI

CLI

Generated command reference for the Project CLI.

Documentation track: current main source. This reference can be ahead of the latest published binary. Check project --version and the latest GitHub release before assuming a command is installed.

Flag details cover managed macOS, Linux, and WSL installations. The native Windows CLI delegates runtime commands to WSL and can expose a smaller guidance-only flag surface.

This page is generated from the same Cobra command tree used by the project binary.

Base Command

project
FlagTypeScopeDescription
-h, --helpboollocalhelp for project
-v, --versionboollocalversion for project

Commands

CommandAliasesDescription
adopt-Plan adoption of an existing project
approval-Manage cryptographic human approvals
chat-Coordinate with people and agents through Project Chat
codex-Start, inspect, continue, or attach to persistent Codex tasks
completion-Generate the autocompletion script for the specified shell
connect-Connect this machine to Project Space
connector-Set up Project Space machine connector links
createnewCreate and initialize a new project
deploy-Deploy this project to the VPS
disconnect-Disconnect this machine from Project Space
doctor-Check this machine's Project Space connection
help-Help about any command
init-Initialize a project template lock
module-Manage project template modules
prepare-Run trusted repository setup steps
run-Run a configured project script in the foreground
self-update-Check for and install a signed Project CLI release
serve-Run a project script and expose it on this Tailnet
status-Show this machine's Project Space connection
template-Manage the local project template snapshot
token-Manage the Project 1Password token
validate-Validate a project against its template
worktree-Prepare and validate isolated Codex worktrees

Command Reference

project adopt

Plan adoption of an existing project

project adopt [directory]
FlagTypeScopeDescription
--dry-runboollocalshow the adoption plan without writing changes
--formatstringlocaloutput format
-h, --helpboollocalhelp for adopt
--modulestringlocaladopt a template module by adding only missing files
--reasonstringlocalreason for a waiver
--waivestringlocaladd a waiver for a path pattern
-y, --yesboollocalapply the adoption action without prompting

project approval

Manage cryptographic human approvals

project approval
FlagTypeScopeDescription
-h, --helpboollocalhelp for approval

project approval enroll

Create an external trusted signer configuration with macOS authentication

project approval enroll
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for enroll
--policystringlocalrepository approval policy
--rootstringlocalrepository root
--trust-rootstringlocalexternal trusted signer configuration

project approval sign

Approve one scope using Secure Enclave authentication

project approval sign
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for sign
--policystringlocalrepository approval policy
--rootstringlocalrepository root
--scopestringlocalscope identifier to approve
--trust-rootstringlocalexternal trusted signer configuration

project approval status

Show approval state

project approval status
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for status
--policystringlocalrepository approval policy
--rootstringlocalrepository root
--trust-rootstringlocalexternal trusted signer configuration

project approval verify

Verify every required human approval

project approval verify
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for verify
--policystringlocalrepository approval policy
--rootstringlocalrepository root
--trust-rootstringlocalexternal trusted signer configuration

project chat

Coordinate with people and agents through Project Chat

project chat
FlagTypeScopeDescription
-h, --helpboollocalhelp for chat

project chat claim

Claim an available registry name for this Codex thread

project chat claim <registry-name>
FlagTypeScopeDescription
-h, --helpboollocalhelp for claim
--parent-threadstringlocalmain-agent thread ID (required for specialist names)

project chat names

List Project Chat registry names and availability

project chat names
FlagTypeScopeDescription
-h, --helpboollocalhelp for names

project chat read

Read unread messages from #general

project chat read
FlagTypeScopeDescription
-h, --helpboollocalhelp for read

project chat send

Send one message to #general

project chat send <message>
FlagTypeScopeDescription
-h, --helpboollocalhelp for send

project codex

Start, inspect, continue, or attach to persistent Codex tasks

project codex
FlagTypeScopeDescription
-h, --helpboollocalhelp for codex

project codex attach

Attach the Codex TUI to an existing persistent thread

project codex attach
FlagTypeScopeDescription
--codex-binarystringlocalexplicit Codex CLI binary path
--connectorstringlocalexact connector installation ID
-h, --helpboollocalhelp for attach
--machinestringlocalexact physical machine name
--machine-idstringlocalexact physical machine ID
--operation-idstringlocalstable idempotency key for safe retries
--threadstringlocalpersistent Codex thread ID

project codex read

Read a persistent Codex thread non-interactively

project codex read
FlagTypeScopeDescription
--connectorstringlocalexact connector installation ID
--formatstringlocaloutput format: json
-h, --helpboollocalhelp for read
--lastintlocalreturn only the last N turns
--machinestringlocalexact physical machine name
--machine-idstringlocalexact physical machine ID
--threadstringlocalpersistent Codex thread ID

project codex send

Send a non-interactive turn to a persistent Codex thread

project codex send
FlagTypeScopeDescription
--connectorstringlocalexact connector installation ID
--formatstringlocaloutput format: json or ndjson
-h, --helpboollocalhelp for send
--machinestringlocalexact physical machine name
--machine-idstringlocalexact physical machine ID
--messagestringlocalturn prompt, or - to read from standard input
--no-waitboollocalreturn as soon as the turn is accepted
--operation-idstringlocalstable idempotency key for safe retries
--prompt-filestringlocalread the turn prompt from a regular file
--threadstringlocalpersistent Codex thread ID
--waitboollocalwait for the turn to complete or require interaction

project codex start

Start a persistent Codex task from a GitHub issue

project codex start
FlagTypeScopeDescription
--connectorstringlocalexact connector installation ID
--dry-runboollocalresolve the exact target without starting a task
--formatstringlocaloutput format: text or json
-h, --helpboollocalhelp for start
--hereboollocaluse the physical machine connected by this CLI
--issueintlocalGitHub issue number
--machinestringlocalexact physical machine name
--machine-idstringlocalexact physical machine ID
--operation-idstringlocalstable idempotency key for safe retries
--repositorystringlocalexact GitHub owner/name or repository ID

project completion

Generate the autocompletion script for the specified shell

project completion
FlagTypeScopeDescription
-h, --helpboollocalhelp for completion

project completion bash

Generate the autocompletion script for bash

project completion bash
FlagTypeScopeDescription
-h, --helpboollocalhelp for bash
--no-descriptionsboollocaldisable completion descriptions

project completion fish

Generate the autocompletion script for fish

project completion fish
FlagTypeScopeDescription
-h, --helpboollocalhelp for fish
--no-descriptionsboollocaldisable completion descriptions

project completion powershell

Generate the autocompletion script for powershell

project completion powershell
FlagTypeScopeDescription
-h, --helpboollocalhelp for powershell
--no-descriptionsboollocaldisable completion descriptions

project completion zsh

Generate the autocompletion script for zsh

project completion zsh
FlagTypeScopeDescription
-h, --helpboollocalhelp for zsh
--no-descriptionsboollocaldisable completion descriptions

project connect

Connect this machine to Project Space

project connect
FlagTypeScopeDescription
-h, --helpboollocalhelp for connect
--jsonboollocalprint machine-readable output
--namestringlocalmachine name shown in Project Space
--no-openboollocalprint the approval URL without opening a browser

project connector

Set up Project Space machine connector links

project connector
FlagTypeScopeDescription
-h, --helpboollocalhelp for connector

project connector connect

Add or update one Project Space connector hub

project connector connect <name> <url>
FlagTypeScopeDescription
--configstringlocalconnector config file path
--disabledboollocalwrite the hub but keep it disabled
-h, --helpboollocalhelp for connect
--jsonboollocalprint machine-readable output
--token-envstringlocalenvironment variable that contains the connector registration token

project connector install

Install and start the machine connector service

project connector install
FlagTypeScopeDescription
--binarystringlocalconnector binary to install
--configstringlocalconnector config file path
--dev-urlstringlocallocal development Project Space hub URL
-h, --helpboollocalhelp for install
--install-dirstringlocaldirectory for the installed connector
--jsonboollocalprint machine-readable output
--no-devboollocalonly configure the remote Project Space hub
--prod-urlstringlocalremote Project Space hub URL
--service-namestringlocalconnector service name shown in Project Space
--token-envstringlocalenvironment variable that contains the connector registration token
--token-filestringlocalprivate file used by the service to load the registration token

project connector run

Run the authenticated Project Space connector

project connector run
FlagTypeScopeDescription
-h, --helpboollocalhelp for run

project connector setup

Configure this machine connector for prod and local Project Space hubs

project connector setup
FlagTypeScopeDescription
--configstringlocalconnector config file path
--dev-urlstringlocallocal development Project Space hub URL
-h, --helpboollocalhelp for setup
--jsonboollocalprint machine-readable output
--no-devboollocalonly configure the remote Project Space hub
--prod-urlstringlocalremote Project Space hub URL
--token-envstringlocalenvironment variable that contains the connector registration token

project connector source

Run an isolated development connector from source

project connector source
FlagTypeScopeDescription
-h, --helpboollocalhelp for source

project connector source connect

Pair the isolated source development connector

project connector source connect
FlagTypeScopeDescription
-h, --helpboollocalhelp for connect
--jsonboollocalprint machine-readable output
--namestringlocaldisplay name shown in Project Space
--no-openboollocalprint the approval URL without opening a browser
--rootstringlocaltrusted Project Space source checkout

project connector source run

Run the paired development connector from source

project connector source run
FlagTypeScopeDescription
-h, --helpboollocalhelp for run
--rootstringlocaltrusted Project Space source checkout

project connector source status

Show the isolated development connector status

project connector source status
FlagTypeScopeDescription
-h, --helpboollocalhelp for status
--jsonboollocalprint machine-readable output

project connector status

Show configured Project Space connector hubs

project connector status
FlagTypeScopeDescription
--configstringlocalconnector config file path
-h, --helpboollocalhelp for status
--jsonboollocalprint machine-readable output

project create

Create and initialize a new project

project create [directory]

Aliases: new

FlagTypeScopeDescription
--commitstringlocaltemplate commit or label
--forceboollocalreplace an existing .project/template.lock.yaml
--githubboollocalcreate a private GitHub repository and push the project
--github-visibilitystringlocalGitHub repository visibility
--global-tmpboollocalcreate a global tmp project in /tmp and install default modules
-h, --helpboollocalhelp for create
--local-tmpboollocalcreate a local tmp project in ./tmp and install default modules
--templatestringlocaltemplate repository
--template-pathstringlocaltemplate path
--tmpboollocalcreate a local tmp project in ./tmp and install default modules
--versionstringlocaltemplate version

project deploy

Deploy this project to the VPS

project deploy [directory]
FlagTypeScopeDescription
--api-domainstringlocalproject API domain
--branchstringlocalgit branch to deploy
--commitstringlocalfull Git commit SHA to deploy
--domainstringlocalproject domain
--dry-runboollocalprint planned remote actions without changing the VPS
--emailstringlocalTraefik ACME email
--envstringlocaldeployment environment: prod or beta
--formatstringlocaloutput format
-h, --helpboollocalhelp for deploy
--hoststringlocalSSH host
--lock-timeoutdurationlocalmaximum time to wait for the remote deployment lock
--pathstringlocalremote project directory

project deploy status

Inspect deployment status without changing the VPS

project deploy status [directory]
FlagTypeScopeDescription
--all-envsboollocalinspect all configured environments
--api-domainstringlocalproject API domain
--branchstringlocalgit branch to deploy
--commitstringlocalfull Git commit SHA to deploy
--domainstringlocalproject domain
--emailstringlocalTraefik ACME email
--envstringlocaldeployment environment: prod or beta
--formatstringlocaloutput format
-h, --helpboollocalhelp for status
--hoststringlocalSSH host
--lock-timeoutdurationlocalmaximum time to wait for the remote deployment lock
--pathstringlocalremote project directory

project disconnect

Disconnect this machine from Project Space

project disconnect
FlagTypeScopeDescription
-h, --helpboollocalhelp for disconnect
--jsonboollocalprint machine-readable output

project doctor

Check this machine's Project Space connection

project doctor
FlagTypeScopeDescription
--fixboollocalcreate missing project directories
-h, --helpboollocalhelp for doctor
--jsonboollocalprint machine-readable output

project help

Help about any command

project help [command]
FlagTypeScopeDescription
-h, --helpboollocalhelp for help

project init

Initialize a project template lock

project init [directory]
FlagTypeScopeDescription
--commitstringlocaltemplate commit or label
--forceboollocalreplace an existing .project/template.lock.yaml
-h, --helpboollocalhelp for init
--templatestringlocaltemplate repository
--template-pathstringlocaltemplate path
--versionstringlocaltemplate version

project module

Manage project template modules

project module
FlagTypeScopeDescription
-h, --helpboollocalhelp for module

project module add

Add a project template module

project module add <module> [directory]

Aliases: install

FlagTypeScopeDescription
--dry-runboollocalshow the module add plan without writing changes
--forceboollocalallow module add to overwrite existing project files
--formatstringlocaloutput format
-h, --helpboollocalhelp for add
-y, --yesboollocalapply the module add plan without prompting

project module list

List project template modules

project module list [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format
-h, --helpboollocalhelp for list

project module remove

Remove a project template module

project module remove <module> [directory]
FlagTypeScopeDescription
--dry-runboollocalshow the module remove plan without writing changes
--formatstringlocaloutput format
-h, --helpboollocalhelp for remove
-y, --yesboollocalapply the module remove plan without prompting

project module show

Show details for a project template module

project module show <module> [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format
-h, --helpboollocalhelp for show

project prepare

Run trusted repository setup steps

project prepare [directory]
FlagTypeScopeDescription
--expect-commitstringlocalrequire this exact repository commit before setup
--expect-declaration-digeststringlocalrequire this exact setup declaration digest before setup
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for prepare
--jsonboollocalprint machine-readable JSON output
--stepstringlocalstable setup step ID (default: all steps in declaration order)

project prepare status

Inspect trusted repository setup

project prepare status [directory]
FlagTypeScopeDescription
--expect-commitstringlocalrequire this exact repository commit before setup
--expect-declaration-digeststringlocalrequire this exact setup declaration digest before setup
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for status
--jsonboollocalprint machine-readable JSON output
--stepstringlocalstable setup step ID (default: all steps in declaration order)

project run

Run a configured project script in the foreground

project run <script> [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for run
--jsonboollocalprint machine-readable JSON output

project self-update

Check for and install a signed Project CLI release

project self-update
FlagTypeScopeDescription
--checkboollocalcheck the signed approved release without changing files
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for self-update
-y, --yesboollocalinstall the verified update without prompting

project serve

Run a project script and expose it on this Tailnet

project serve [script] [directory]
FlagTypeScopeDescription
--allowed-hoststringArraylocalexplicit Vite host allowed to reach this session (repeatable)
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for serve
--jsonboollocalprint machine-readable JSON output

project serve list

List trusted development servers configured by a repository

project serve list [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for list
--jsonboollocalprint machine-readable JSON output

project serve reconcile

Check managed project servers and clean stale sessions

project serve reconcile
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for reconcile
--jsonboollocalprint machine-readable JSON output

project serve status

Inspect a managed project server

project serve status [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for status
--jsonboollocalprint machine-readable JSON output
--scriptstringlocalconfigured script name

project serve stop

Stop one managed project server

project serve stop [directory]
FlagTypeScopeDescription
--formatstringlocaloutput format: pretty or json
-h, --helpboollocalhelp for stop
--jsonboollocalprint machine-readable JSON output
--scriptstringlocalconfigured script name

project status

Show this machine's Project Space connection

project status
FlagTypeScopeDescription
-h, --helpboollocalhelp for status
--jsonboollocalprint machine-readable output

project template

Manage the local project template snapshot

project template
FlagTypeScopeDescription
-h, --helpboollocalhelp for template

project template lint

Validate a template checkout

project template lint
FlagTypeScopeDescription
--formatstringlocaloutput format
-h, --helpboollocalhelp for lint
--template-pathstringlocaltemplate checkout path

project template smoke

Generate a tmp project and run template smoke checks

project template smoke
FlagTypeScopeDescription
--commitstringlocaltemplate commit or label
--containerboollocalbuild generated project containers
--global-tmpboollocalcreate the generated project under /tmp
-h, --helpboollocalhelp for smoke
--namestringlocaltmp project name prefix
--skip-checksboollocalskip dependency, secrets, check, and build commands
--skip-secrets-doctorboollocalskip bun run secrets:doctor
--templatestringlocaltemplate repository
--template-pathstringlocaltemplate path
--versionstringlocaltemplate version

project template sync

Sync the local template snapshot

project template sync [directory]
FlagTypeScopeDescription
--dry-runboollocalshow the template sync plan without writing changes
--formatstringlocaloutput format
-h, --helpboollocalhelp for sync
--template-pathstringlocaltemplate source path

project template update

Update a project from its template

project template update [directory]
FlagTypeScopeDescription
--dry-runboollocalshow the template update plan without writing changes
--formatstringlocaloutput format
-h, --helpboollocalhelp for update
--template-pathstringlocaltemplate source path
-y, --yesboollocalapply the template update without prompting

project token

Manage the Project 1Password token

project token
FlagTypeScopeDescription
-h, --helpboollocalhelp for token

project token create

Create the Project 1Password service account token

project token create
FlagTypeScopeDescription
--dry-runboollocalshow what would happen without creating a token
--expires-instringlocalcreate a temporary token with a 1Password expiry, for example 24h
-h, --helpboollocalhelp for create
--jsonboollocalprint machine-readable output
-y, --yesboollocalcreate the token without prompting

project validate

Validate a project against its template

project validate [directory|file]
FlagTypeScopeDescription
--color-scopestringlocalcolor scope
--dry-runboollocalshow the quarantine plan without writing changes
--formatstringlocaloutput format
-h, --helpboollocalhelp for validate
--quarantineboollocalmove not_allowed validation violations into .project/quarantine
--status-color-onlyboollocalcolor only the status text
--viewstringlocalpretty output view
-y, --yesboollocalapply the quarantine plan without prompting

project worktree

Prepare and validate isolated Codex worktrees

project worktree
FlagTypeScopeDescription
-h, --helpboollocalhelp for worktree

project worktree check

Validate that the current Codex thread owns this isolated worktree

project worktree check
FlagTypeScopeDescription
--formatstringlocaloutput format: text or json
-h, --helpboollocalhelp for check

project worktree materialize

Materialize a server-approved GitHub branch in the Project-managed worktree root

project worktree materialize
FlagTypeScopeDescription
--branchstringlocalserver-approved exact branch identity
--commitstringlocalserver-approved exact commit
--formatstringlocaloutput format: json
-h, --helpboollocalhelp for materialize
--repositorystringlocalserver-approved GitHub owner/name

project worktree prepare

Prepare the worktree owned by the current Codex thread

project worktree prepare [task-name]
FlagTypeScopeDescription
--formatstringlocaloutput format: text or json
-h, --helpboollocalhelp for prepare
--issueintlocalprepare a worktree for an existing open GitHub issue

Guides

On this page