@triplehost/cli
v0.4.2
Published
CLI for Triple: Production, drafts, structured data; optional vault on triple.host
Readme
Triple
A modern way to safely backup and store codebases.
{ Production Code + Infinite Drafts + Structured Data }Website: triple.host
How it works: WORLD.md (also bundled here)
Agents: triple agent or AgentWelcome.md
Every command ends with a receipt: triple: ok|refused|error <op> … (exit 0 / 2 / 1).
Get started
npm install -g @triplehost/cli
triple login
cd ~/Desktop/MyProject
triple new| Command | What it does |
| --- | --- |
| npm install -g @triplehost/cli | Install the tool |
| triple login | Sign in with email. One-time code. |
| triple login --browser | Open triple.host; CLI waits. (Agent-friendly.) |
| triple login --email [email protected] | Send code; wait for paste. (Agent-friendly.) |
| triple new | Run in your project folder. Creates a .triple sidecar. That folder is Production. |
Drafts
triple draft
# edit the draft folder beside Production
triple makeprod draft-a
triple undo| Command | What it does |
| --- | --- |
| triple draft | Next draft beside Production. Letter is automatic. |
| triple makeprod draft-a | Turns that draft into Production. Previous Production is stored for rollback if needed. |
| triple undo | Undo the last local step. Use again to go further. |
Also: triple drafts, triple rename draft-a name, triple discard draft-a (never Production).
Run draft commands from the Production folder.
Structured data
Drop files into .triple/structured/ (txt, md, json, …). No special layout required — they become an indexed part of the Triple.
triple reconcile # refresh index (+ keep drafts lined up with Production)
triple watch # do that automatically when folders changeRemote vault (triple.host)
triple backup
triple releases
triple rollback
triple list
triple clone myproject ~/Desktop/MyProject-copy| Command | What it does |
| --- | --- |
| triple backup | Save to your vault (new current release; last 10 kept) |
| triple releases | List release history |
| triple rollback [at] | Make a previous release current (vault only — not your disk) |
| triple clone | Get current release onto disk (empty path) |
| triple clone … --replace-local | Replace this folder with the current release (explicit human approval) |
Local undo and vault rollback are separate. Backup refuses when the vault is newer unless a human passes --replace-vault.
Credentials: ~/.config/triple/credentials.json
Building this tool
cd triple_cli
npm install
npm link
npm publish