Skip to content

taggor init

Create a component project (in the folder Taggor keeps for your workspace, unless you give one; that needs you signed in), or add a component to the project you are in.

Usage
npx taggor init [<dir>] [options]
Argument What it does Default
[<dir>] Directory of the project (default: the project you are in, else ~/.taggor/projects/<workspace>; use . for here, which needs no sign-in). -
--component <value> Tag of the component to create (with a hyphen, like finance-simulator). -
--yes Accepted for scripts: init never asks anything. -
--force Overwrite files that already exist (they are listed). -
--agent <value> Also install the agent files for claude, codex, cursor or all (the same as taggor agent install). -

Also takes the common options: --workspace, --json, --no-input.

Examples
npx taggor init
npx taggor init . --component price-card --agent claude

Exit codes: 0 ok, 1 generic, 2 usage, 5 conflict. What each code means.