CLI Reference
All Plantric CLI commands and their options.
Usage
plantric [command] [flags]
pdx [command] [flags] # 'pdx' is an alias for 'plantric'
Help
Built-in help.
plantric help
pdx h # alias
--all/-a: List all commands.
For help on a specific command, use:
plantric [command] --help
REPL
The easiest way to use Plantric is through the REPL. Start it in your project directory with:
plantric
or for short:
pdx
Flags
The REPL has a few convenient flags you can use to start it with different modes, autonomy settings, and model packs. You can pass any of these to plantric or pdx when starting the REPL.
Mode
--chat, -c Start in chat mode (for conversation without making changes)
--tell, -t Start in tell mode (for implementation)
Autonomy
--no-auto None → step-by-step, no automation
--basic Basic → auto-continue plans, no other automation
--plus Plus → auto-update context, smart context, auto-commit changes
--semi Semi-Auto → auto-load context
--full Full-Auto → auto-apply, auto-exec, auto-debug
Models
--daily Daily driver pack (default models, balanced capability, cost, and speed)
--reasoning Similar to daily driver, but uses reasoning model for planning
--strong Strong pack (more capable models, higher cost and slower)
--cheap Cheap pack (less capable models, lower cost and faster)
--oss Open source pack (open source models)
--gemini-exp Gemini experimental pack (Gemini 2.5 Pro Experimental for planning and coding, default models for other roles)
All commands listed below can be run in the REPL by prefixing them with a backslash (\), e.g. \new.
Plans
new
Start a new plan.
plantric new
plantric new -n new-plan # with name
--name/-n: Name of the new plan. The name is generated automatically after first prompt if no name is specified on creation.
--context-dir/-d: Base directory to load context from when auto-loading context is enabled. Defaults to . (current directory). Set a different directoy if you don't want all files to be included in the project map.
--no-auto: Start the plan with auto-mode 'None' (step-by-step, no automation).
--basic: Start the plan with auto-mode 'Basic' (auto-continue plans, no other automation).
--plus: Start the plan with auto-mode 'Plus' (auto-update context, smart context, auto-commit changes).
--semi: Start the plan with auto-mode 'Semi-Auto' (auto-load context).
--full: Start the plan with auto-mode 'Full-Auto' (auto-apply, auto-exec, auto-debug).
--daily: Start the plan with the daily driver model pack.
--reasoning: Start the plan with the reasoning model pack.
--strong: Start the plan with the strong model pack.
--cheap: Start the plan with the cheap model pack.
--oss: Start the plan with the open source model pack.
--gemini-exp: Start the plan with the Gemini experimental model pack.
plans
List plans. Output includes index, when each plan was last updated, the current branch of each plan, the number of tokens in context, and the number of tokens in the conversation (prior to summarization).
Includes full details on plans in current directory. Also includes names of plans in parent directories and child directories.
plantric plans
plantric plans --archived # list archived plans only
pdx pl # alias
--archived/-a: List archived plans only.
current
Show current plan. Output includes when the plan was last updated and created, the current branch, the number of tokens in context, and the number of tokens in the conversation (prior to summarization).
plantric current
pdx cu # alias
cd
Set current plan by name or index.
plantric cd # select from a list of plans
plantric cd some-plan # by name
plantric cd 4 # by index in `plantric plans`
With no arguments, Plantric prompts you with a list of plans to select from.
With one argument, Plantric selects a plan by name or by index in the plantric plans list.
delete-plan
Delete a plan by name, index, range, pattern, or select from a list.
plantric delete-plan # select from a list of plans
plantric delete-plan some-plan # by name
plantric delete-plan 4 # by index in `plantric plans`
plantric delete-plan 2-4 # by range of indices
plantric delete-plan 'docs-*' # by pattern
plantric delete-plan --all # delete all plans
pdx dp # alias
--all/-a: Delete all plans.
rename
Rename the current plan.
plantric rename # prompt for new name
plantric rename new-name # set new name
archive
Archive a plan.
plantric archive # select from a list of plans
plantric archive some-plan # by name
plantric archive 4 # by index in `plantric plans`
pdx arc # alias
unarchive
Unarchive a plan.
plantric unarchive # select from a list of archived plans
plantric unarchive some-plan # by name
plantric unarchive 4 # by index in `plantric plans --archived`
pdx unarc # alias
Context
load
Load files, directories, directory layouts, URLs, notes, images, or piped data into context.
plantric load component.ts # single file
plantric load component.ts action.ts reducer.ts # multiple files
plantric load lib -r # loads lib and all its subdirectories
plantric load tests/**/*.ts # loads all .ts files in tests and its subdirectories
plantric load . --tree # loads the layout of the current directory and its subdirectories (file names only)
plantric load https://redux.js.org/usage/writing-tests # loads the text-only content of the url
npm test | plantric load # loads the output of `npm test`
plantric load -n 'add logging statements to all the code you generate.' # load a note into context
plantric load ui-mockup.png # load an image into context
pdx l component.ts # alias
--recursive/-r: Load an entire directory and all its subdirectories.
--tree: Load directory tree layout with file names only.
--map: Load file map of the given directory (function/method/class signatures, variable names, types, etc.)
--note/-n: Load a note into context.
--force/-f: Load files even when ignored by .gitignore or .plantricignore.
--detail/-d: Image detail level when loading an image (high or low)—default is high. See https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding for more info.
ls
List everything in the current plan's context. Output includes index, name, type, token size, when the context added, and when the context was last updated.
plantric ls
plantric list-context # longer alias
rm
Remove context by index, range, name, or glob.
plantric rm some-file.ts # by name
plantric rm app/**/*.ts # by glob pattern
plantric rm 4 # by index in `plantric ls`
plantric rm 2-4 # by range of indices
plantric remove # longer alias
plantric unload # longer alias
show
Output context by name or index.
plantric show some-file.ts # by name
plantric show 4 # by index in `plantric ls`
update
Update any outdated context.
plantric update
pdx u # alias
clear
Remove all context.
plantric clear
Control
tell
Describe a task.
plantric tell -f prompt.txt # from file
plantric tell # open vim to write prompt
plantric tell "add a cancel button to the left of the submit button" # inline
pdx t # alias
--file/-f: File path containing prompt.
--stop/-s: Stop after a single model response (don't auto-continue). Defaults to opposite of config value auto-continue.
--no-build/-n: Don't build proposed changes into pending file updates. Defaults to opposite of config value auto-build.
--bg: Run task in the background. Only allowed if --auto-load-context and --apply/-a are not enabled. Not allowed with the default autonomy level in Plantric v2.
--auto-update-context: Automatically confirm context updates. Defaults to config value auto-update-context.
--auto-load-context: Automatically load context using project map. Defaults to config value auto-load-context.
--smart-context: Use smart context to only load the necessary file(s) for each step during implementation. Defaults to config value smart-context.
--no-exec: Don't execute commands after successful apply. Defaults to opposite of config value can-exec.
--auto-exec: Automatically execute commands after successful apply without confirmation. Defaults to config value auto-exec.
--debug: Automatically execute and debug failing commands (optionally specify number of tries—default is 5). Defaults to config values of auto-debug and auto-debug-tries.
--apply/-a: Automatically apply changes (and confirm context updates). Defaults to config value auto-apply.
--commit/-c: Commit changes to git when --apply/-a is passed. Defaults to config value auto-commit.
--skip-commit: Don't commit changes to git. Defaults to opposite of config value auto-commit.
continue
Continue the plan.
plantric continue
pdx c # alias
--stop/-s: Stop after a single model response (don't auto-continue). Defaults to opposite of config value auto-continue.
--no-build/-n: Don't build proposed changes into pending file updates. Defaults to opposite of config value auto-build.
--bg: Run task in the background. Only allowed if --auto-load-context and --apply/-a are not enabled. Not allowed with the default autonomy level in Plantric v2.
--auto-update-context: Automatically confirm context updates. Defaults to config value auto-update-context.
--auto-load-context: Automatically load context using project map. Defaults to config value auto-load-context.
--smart-context: Use smart context to only load the necessary file(s) for each step during implementation. Defaults to config value smart-context.
--no-exec: Don't execute commands after successful apply. Defaults to opposite of config value can-exec.
--auto-exec: Automatically execute commands after successful apply without confirmation. Defaults to config value auto-exec.
--debug: Automatically execute and debug failing commands (optionally specify number of tries—default is 5). Defaults to config values of auto-debug and auto-debug-tries.
--apply/-a: Automatically apply changes (and confirm context updates). Defaults to config value auto-apply.
--commit/-c: Commit changes to git when --apply/-a is passed. Defaults to config value auto-commit.
--skip-commit: Don't commit changes to git. Defaults to opposite of config value auto-commit.
build
Build any unbuilt pending changes from the plan conversation.
plantric build
pdx b # alias
--bg: Build in the background. Not allowed if --apply/-a is enabled.
--stop/-s: Stop after a single model response (don't auto-continue). Defaults to opposite of config value auto-continue.
--no-build/-n: Don't build proposed changes into pending file updates. Defaults to opposite of config value auto-build.
--auto-update-context: Automatically confirm context updates. Defaults to config value auto-update-context.
--no-exec: Don't execute commands after successful apply. Defaults to opposite of config value can-exec.
--auto-exec: Automatically execute commands after successful apply without confirmation. Defaults to config value auto-exec.
--debug: Automatically execute and debug failing commands (optionally specify number of tries—default is 5). Defaults to config values of auto-debug and auto-debug-tries.
--apply/-a: Automatically apply changes (and confirm context updates). Defaults to config value auto-apply.
--commit/-c: Commit changes to git when --apply/-a is passed. Defaults to config value auto-commit.
--skip-commit: Don't commit changes to git. Defaults to opposite of config value auto-commit.
chat
Ask a question or chat without making any changes.
plantric chat "is it clear from the context how to add a new line chart?"
pdx ch # alias
--file/-f: File path containing prompt.
--bg: Run task in the background. Not allowed if --auto-load-context is enabled. Not allowed with the default autonomy level in Plantric v2.
--auto-update-context: Automatically confirm context updates. Defaults to config value auto-update-context.
--auto-load-context: Automatically load context using project map. Defaults to config value auto-load-context.
debug
Repeatedly run a command and automatically attempt fixes until it succeeds, rolling back changes on failure. Defaults to 5 tries before giving up.
plantric debug 'npm test' # try 5 times or until it succeeds
plantric debug 10 'npm test' # try 10 times or until it succeeds
pdx db 'npm test' # alias
--commit/-c: Commit changes to git when --apply/-a is passed. Defaults to config value auto-commit.
--skip-commit: Don't commit changes to git. Defaults to opposite of config value auto-commit.
Changes
diff
Review pending changes in 'git diff' format or in a local browser UI.
plantric diff
plantric diff --ui
--plain/-p: Output diffs in plain text with no ANSI codes.
--ui/-u: Review pending changes in a local browser UI.
--side-by-side/-s: Show diffs UI in side-by-side view
--line-by-line/-l: Show diffs UI in line-by-line view
apply
Apply pending changes to project files.
plantric apply
pdx ap # alias
--auto-update-context: Automatically confirm context updates. Defaults to config value auto-update-context.
--no-exec: Don't execute commands after successful apply. Defaults to opposite of config value can-exec.
--auto-exec: Automatically execute commands after successful apply without confirmation. Defaults to config value auto-exec.
--debug: Automatically execute and debug failing commands (optionally specify number of tries—default is 5). Defaults to config values of auto-debug and auto-debug-tries.
--commit/-c: Commit changes to git when --apply/-a is passed. Defaults to config value auto-commit.
--skip-commit: Don't commit changes to git. Defaults to opposite of config value auto-commit.
--full: Apply the plan and debug in full auto mode.
reject
Reject pending changes to one or more project files.
plantric reject # select from a list of pending files to reject
plantric reject file.ts # one file
plantric reject file.ts another-file.ts # multiple files
plantric reject --all # all pending files
pdx rj file.ts # alias
--all/-a: Reject all pending files.
History
log
Show plan history.
plantric log
plantric history # alias
plantric logs # alias
rewind
Rewind to a previous state.
plantric rewind # select from a list of previous states to rewind to
plantric rewind 3 # rewind 3 steps
plantric rewind a7c8d66 # rewind to a specific step from `plantric log`
convo
Show the current plan's conversation.
plantric convo
plantric convo 1 # show a specific message
plantric convo 1-5 # show a range of messages
plantric convo 3- # show all messages from 3 to the end
--plain/-p: Output conversation in plain text with no ANSI codes.
summary
Show the latest summary of the current plan.
plantric summary
--plain/-p: Output summary in plain text with no ANSI codes.
Branches
branches
List plan branches. Output includes index, name, when the branch was last updated, the number of tokens in context, and the number of tokens in the conversation (prior to summarization).
plantric branches
pdx br # alias
checkout
Checkout or create a branch.
plantric checkout # select from a list of branches or prompt to create a new branch
plantric checkout some-branch # checkout by name or create a new branch with that name
pdx co # alias
delete-branch
Delete a branch by name or index.
plantric delete-branch # select from a list of branches
plantric delete-branch some-branch # by name
plantric delete-branch 4 # by index in `plantric branches`
pdx dlb # alias
Background Tasks / Streams
ps
List active and recently finished plan streams. Output includes stream ID, plan name, branch name, when the stream was started, and the stream's status (active, finished, stopped, errored, or waiting for a missing file to be selected).
plantric ps
connect
Connect to an active plan stream.
plantric connect # select from a list of active streams
plantric connect a4de # by stream ID in `plantric ps`
plantric connect some-plan main # by plan name and branch name
pdx conn # alias
stop
Stop an active plan stream.
plantric stop # select from a list of active streams
plantric stop a4de # by stream ID in `plantric ps`
plantric stop some-plan main # by plan name and branch name
Configuration
config
Show current plan config. Output includes configuration settings for the plan, such as autonomy level, model settings, and other plan-specific options.
plantric config
config default
Show the default config used for new plans. Output includes the default configuration settings that will be applied to newly created plans.
plantric config default
set-config
Update configuration settings for the current plan.
plantric set-config # select from a list of config options
plantric set-config auto-context true # set a specific config option
With no arguments, Plantric prompts you to select from a list of config options.
With arguments, allows you to directly set specific configuration options for the current plan.
set-config default
Update the default configuration settings for new plans.
plantric set-config default # select from a list of config options
plantric set-config default auto-mode basic # set a specific default config option
Works exactly the same as set-config above, but sets the default configuration for all new plans instead of only the current plan.
set-auto
Update the auto-mode (autonomy level) for the current plan.
plantric set-auto # select from a list of auto-modes
plantric set-auto full # set to full automation
plantric set-auto semi # set to semi-auto mode
plantric set-auto plus # set to plus mode
plantric set-auto basic # set to basic mode
plantric set-auto none # set to none (step-by-step, no automation)
With no arguments, Plantric prompts you to select from a list of automation levels.
With one argument, Plantric sets the automation level directly to the specified value.
set-auto default
Set the default auto-mode for new plans.
plantric set-auto default # select from a list of auto-modes
plantric set-auto default basic # set default to basic mode
Works exactly the same as set-auto above, but sets the default automation level for all new plans instead of only the current plan.
Models
models
Show current plan models and model settings.
plantric models
models default
Show org-wide default models and model settings for new plans.
plantric models default
models available
Show available models.
plantric models available # show all available models
plantric models available --custom # show available custom models only
--custom: Show available custom models only.
set-model
Update current plan models or model settings.
plantric set-model # select from a list of models and settings
plantric set-model planner openai/gpt-4 # set the model for a role
plantric set-model gpt-4-turbo-latest # set the current plan's model pack by name (sets all model roles at once—see `model-packs` below)
plantric set-model builder temperature 0.1 # set a model setting for a role
plantric set-model max-tokens 4000 # set the planner model overall token limit to 4000
plantric set-model max-convo-tokens 20000 # set how large the conversation can grow before Plantric starts using summaries
With no arguments, Plantric prompts you to select from a list of models and settings.
With arguments, can take one of the following forms:
plantric set-model [role] [model]: Set the model for a role.plantric set-model [model-pack]: Set the current plan's model pack by name.plantric set-model [role] [setting] [value]: Set a model setting for a role.plantric set-model [setting] [value]: Set a model setting for the current plan.
Models are specified as provider/model-name, e.g. openai/gpt-4, openrouter/anthropic/claude-opus-3, together/mistralai/Mixtral-8x22B-Instruct-v0.1, etc.
See all the model roles here.
Model role settings:
temperature: Higher temperature means more randomness, which can produce more creativity but also more errors.top-p: Top-p sampling is a way to prevent the model from generating improbable text by only considering the most likely tokens.
Plan settings:
max-tokens: The overall token limit for the planner model.max-convo-tokens: How large the conversation can grow before Plantric starts using summaries.reserved-output-tokens: The number of tokens reserved for output from the model.
set-model default
Update org-wide default model settings for new plans.
plantric set-model default # select from a list of models and settings
plantric set-model default planner openai/gpt-4 # set the model for a role
# etc. — same options as `set-model` above
Works exactly the same as set-model above, but sets the default model settings for all new plans instead of only the current plan.
models add
Add a custom model.
plantric models add
Plantric will prompt you for all required information to add a custom model.
models delete
Delete a custom model.
plantric models delete # select from a list of custom models
plantric models delete some-model # by name
plantric models delete 4 # by index in `plantric models available --custom`
model-packs
Show all available model packs.
plantric model-packs
--custom: Show available custom (user-created) model packs only.
model-packs create
Create a new custom model pack.
plantric model-packs create
Plantric will prompt you for all required information to create a custom model pack.
model-packs show
Show a built-in or custom model pack's settings.
plantric model-packs show # select from a list of built-in and custom model packs
plantric model-packs show some-model-pack # by name
model-packs update
Update a custom model pack's settings.
plantric model-packs update # select from a list of custom model packs
plantric model-packs update some-model-pack # by name
model-packs delete
Delete a custom model pack.
plantric model-packs delete
plantric model-packs delete some-model-pack # by name
plantric model-packs delete 4 # by index in `plantric model-packs --custom`
Account Management
sign-in
Sign in, accept an invite, or create an account.
plantric sign-in
--pin: Sign in with a pin from the Plantric Cloud web UI.
Unless you pass --pin (from the Plantric Cloud web UI), Plantric will prompt you for all required information to sign in, accept an invite, or create an account.
invite
Invite a user to join your org.
plantric invite # prompt for email, name, and role
plantric invite name@domain.com 'Full Name' member # invite with email, name, and role
Users can be invited as member, admin, or owner.
revoke
Revoke an invite or remove a user from your org.
plantric revoke # select from a list of users and invites
plantric revoke name@domain.com # by email
users
List users and pending invites in your org.
plantric users
Plantric Cloud
billing
Show the billing settings page.
plantric billing
usage
Show Plantric Cloud current balance and usage report. Includes recent spend, amount saved by input caching, a breakdown of spend by plan, category, and model, and a log of individual transactions with the --log flag.
Defaults to showing usage for the current session if you're using the REPL. Otherwise, defaults to showing usage for the day so far.
Requires Integrated Models mode.
plantric usage
--today: Show usage for the day so far.
--month: Show usage for the current billing month.
--plan: Show usage for the current plan.
--log: Show a log of individual transactions. Defaults to showing the log for the current session if you're using the REPL. Otherwise, defaults to showing the log for the day so far. Works with --today, --month, and --plan flags.
Flags for usage --log:
--debits: Show only debits in the log.
--purchases: Show only purchases in the log.
--page-size/-s: Number of transactions to display per page.
--page/-p: Page number to display.