Skip to content

CLI Overview

The Xtarterize CLI provides commands to detect, apply, and maintain conformance configuration for JavaScript/TypeScript projects.

CommandDescription
xtarterize initFull conformance setup — detect, plan, apply
xtarterize syncUpdate existing configs to latest templates
xtarterize diffShow pending changes without applying
xtarterize checkAudit current conformance status
xtarterize add <task-id>Apply a single conformance task
xtarterize restore <file>Restore a file from backup
xtarterize listList all available tasks with status

Full conformance setup. Detects your project stack, shows a plan, and applies changes.

Terminal window
npx xtarterize init

Update existing project configs to match the latest conformance templates. Only shows tasks with patch or conflict status.

Terminal window
npx xtarterize sync
npx xtarterize sync --dry-run
npx xtarterize sync --yes

Show what sync would change, without applying anything. Read-only.

Terminal window
npx xtarterize diff

Audit which tasks are conformant and which need attention.

Terminal window
npx xtarterize check

Output shows:

IconStatusMeaning
skipConformant — no action needed
~patchNeeds update — will be patched
newMissing entirely — will be created
conflictIncompatible config — needs manual resolution

Apply a single conformance task.

Terminal window
npx xtarterize add lint/biome
npx xtarterize add ci/release
npx xtarterize add codegen/plop

Restore a file from a previous backup.

Terminal window
npx xtarterize restore tsconfig.json
npx xtarterize restore biome.json

List all registered tasks grouped by category, with current status.

Terminal window
npx xtarterize list

Each task reports one of four statuses:

StatusMeaning
newFile/config doesn’t exist yet
patchFile exists but needs additions/updates
skipAlready conformant, nothing to do
conflictExisting config is incompatible; requires decision

Before any file is modified, Xtarterize creates a backup in .xtarterize/backups/. You can restore any file using the restore command.

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 →