CLI Overview
CLI Overview
Section titled “CLI Overview”The Xtarterize CLI provides commands to detect, apply, and maintain conformance configuration for JavaScript/TypeScript projects.
Available Commands
Section titled “Available Commands”| Command | Description |
|---|---|
xtarterize init | Full conformance setup — detect, plan, apply |
xtarterize sync | Update existing configs to latest templates |
xtarterize diff | Show pending changes without applying |
xtarterize check | Audit current conformance status |
xtarterize add <task-id> | Apply a single conformance task |
xtarterize restore <file> | Restore a file from backup |
xtarterize list | List all available tasks with status |
Full conformance setup. Detects your project stack, shows a plan, and applies changes.
npx xtarterize initnpx xtarterize init --dry-runnpx xtarterize init --yesnpx xtarterize init --skip lint/oxlintnpx xtarterize init --only lint/biome,ts/incrementalUpdate existing project configs to match the latest conformance templates. Only shows tasks with patch or conflict status.
npx xtarterize syncnpx xtarterize sync --dry-runnpx xtarterize sync --yesShow what sync would change, without applying anything. Read-only.
npx xtarterize diffAudit which tasks are conformant and which need attention.
npx xtarterize checkOutput shows:
| Icon | Status | Meaning |
|---|---|---|
| ✔ | skip | Conformant — no action needed |
| ~ | patch | Needs update — will be patched |
| ✗ | new | Missing entirely — will be created |
| ⚠ | conflict | Incompatible config — needs manual resolution |
Apply a single conformance task.
npx xtarterize add lint/biomenpx xtarterize add ci/releasenpx xtarterize add codegen/ploprestore
Section titled “restore”Restore a file from a previous backup.
npx xtarterize restore tsconfig.jsonnpx xtarterize restore biome.jsonList all registered tasks grouped by category, with current status.
npx xtarterize listTask Status Values
Section titled “Task Status Values”Each task reports one of four statuses:
| Status | Meaning |
|---|---|
new | File/config doesn’t exist yet |
patch | File exists but needs additions/updates |
skip | Already conformant, nothing to do |
conflict | Existing config is incompatible; requires decision |
Backup System
Section titled “Backup System”Before any file is modified, Xtarterize creates a backup in .xtarterize/backups/. You can restore any file using the restore command.
Command Relationships
Section titled “Command Relationships”flowchart TD
A[init] -->|first run| B[check]
A -->|preview| C[diff]
B -->|find patches| D[sync]
D -->|preview| C
A -->|add one| E[add]
A -->|undo| F[restore]
B -->|view all| G[list]
style A fill:#6366f1,color:#fff
style D fill:#f59e0b,color:#fff
style E fill:#22c55e,color:#fff
Explore conformance tasks →