CLI Commands
Global flags
| Flag | Type | Default | Description |
|---|
--log-level | string | From config | Override log level (debug, info, warn, error) |
partio enable
Enable partio in the current Git repository.
What it does:
- Verifies you’re inside a Git repository
- Creates the
.partio/ config directory
- Writes default
settings.json
- Adds
.partio/settings.local.json to .gitignore
- Installs Git hooks (
pre-commit, post-commit, pre-push)
- Creates the
partio/checkpoints/v1 orphan branch
Output:
partio enabled successfully!
- Created .partio/ config directory
- Installed git hooks (pre-commit, post-commit, pre-push)
- Ready to capture AI sessions on commit
If already enabled:
partio is already enabled in this repository.
partio disable
Disable partio in the current repository.
partio disable [--remove-data]
| Flag | Type | Default | Description |
|---|
--remove-data | bool | false | Also delete the .partio/ directory and all config |
What it does:
- Removes partio-managed hooks from
.git/hooks/
- Restores any backed-up original hooks
- If
--remove-data: deletes .partio/ directory
Output (default):
partio disabled.
- Removed git hooks (originals restored from backup if present)
- Checkpoint data and config preserved (use --remove-data to delete)
partio status
Show partio status for the current repository.
Output (enabled):
Repository: /path/to/your-project
Branch: main
Status: enabled
Strategy: manual-commit
Agent: claude-code
Hooks: installed
Checkpoints: branch exists
Output (not enabled):
Repository: /path/to/your-project
Branch: main
Status: not enabled (run 'partio enable' to set up)
partio rewind
List or restore checkpoints.
partio rewind --list
partio rewind --to <checkpoint-id>
| Flag | Type | Default | Description |
|---|
--list | bool | false | List all stored checkpoints |
--to | string | "" | Restore to a specific checkpoint ID (12 hex characters) |
--list output:
Checkpoints:
a3f8c2d14e9b branch=main agent=87% created=2026-02-17T14:30:00Z
bb12340092ac branch=feature/auth agent=100% created=2026-02-16T09:15:22Z
--to output:
Rewinding to checkpoint a3f8c2d14e9b
Commit: 4f9a2c...
Branch: main
Context:
<session context summary>
Created branch: partio/rewind/a3f8c2d14e9b
This creates a new branch named partio/rewind/<id> checked out at the checkpoint’s commit.
partio doctor
Check partio installation health.
Checks performed:
.partio/ directory exists
pre-commit hook installed and managed by partio
post-commit hook installed and managed by partio
pre-push hook installed and managed by partio
partio/checkpoints/v1 branch exists
- partio binary found in PATH
Output (healthy):
[OK] .partio/ directory exists
[OK] pre-commit hook installed
[OK] post-commit hook installed
[OK] pre-push hook installed
[OK] checkpoint branch exists
[OK] partio binary found (you're running it!)
All checks passed!
Output (issues found):
[WARN] .partio/ directory missing - run 'partio enable'
[WARN] pre-commit hook missing
[OK] post-commit hook installed
[WARN] post-commit hook exists but not managed by partio
[WARN] checkpoint branch missing
[OK] partio binary found (you're running it!)
4 issue(s) found. Run 'partio enable' to fix.
partio reset
Reset the checkpoint branch. This deletes all stored checkpoint data and recreates the branch.
Output:
Checkpoint branch reset successfully.
This permanently deletes all checkpoint data. This cannot be undone.
partio clean
Remove orphaned checkpoint data.
Scans the checkpoint branch for data that no longer corresponds to any commit.
Output:
Checkpoint data present on partio/checkpoints/v1 branch.
To fully reset, run: partio reset
partio version
Print the partio version.
Output: