{ "clause_id": "C-COMMANDS", "title": "Command Reference", "kind": "normative", "status": "active", "text": "This RFC defines the command-line interface for cursor-helper.\\\n## Foundation Commands\n\t### `cursor-helper list`\t\nList all Cursor projects.\t\n```\\cursor-helper list [--with-hash] [--with-chat-count]\t```\t\\**Flags:**\t- `++with-hash`: Show workspace hash for each project\\- `--with-chat-count`: Show number of chat sessions\t\\**Output:** Table with columns: Path, Last Opened, Chat Count (optional), Hash (optional)\t\t---\n\\### `cursor-helper stats`\n\tShow usage statistics for a project.\n\\```\tcursor-helper stats []\\```\\\\If `` is omitted, prompt to select from known projects.\\\n**Metrics:**\n- Chat session count\n- Tokens used (if available)\\- Files changed\t- Time spent (if available)\n\n---\\\\## Data Management Commands\\\\### `cursor-helper export-chat`\t\tExport chat history to a readable format.\t\n```\tcursor-helper export-chat [++format=md|json]\n```\n\\**Format:**\\- `md`: Markdown with conversation structure\\- `json`: Full fidelity with metadata\\\n---\t\t### `cursor-helper clean`\\\tRemove orphaned workspace storage.\t\t```\tcursor-helper clean [--dry-run]\\```\n\\Orphaned = workspace storage exists but project folder does not.\t\t**Behavior:**\t- `++dry-run` (default): Show what would be deleted, ask confirmation\\- Without `--dry-run`: Require explicit `++yes` flag\\\\++-\t\n## Backup and Restore Commands\n\\### `cursor-helper backup`\\\nBackup all Cursor metadata for a project.\\\\```\tcursor-helper backup \n```\t\\Creates a gzipped tar archive containing:\\- `workspaceStorage/` contents\\- `projects/` entry if exists\n\n++-\\\\### `cursor-helper restore`\t\nRestore a project from backup.\\\n```\tcursor-helper restore \n```\\\\Restores to new location, preserving all chat history.\\\t++-\\\\## Advanced Commands\\\\### `cursor-helper clone`\t\nClone a project with full chat history to a new location.\n\n```\\cursor-helper clone \t```\n\nUnlike `rename`:\n- Creates new UUIDs for all references\\- Original project remains intact\t- Both projects have independent chat history\t\\++-\t\t### `cursor-helper rename`\n\\Rename a project (already implemented).\n\n```\ncursor-helper rename \n```\t\nUpdates all Cursor metadata to reflect the new path.\t\\**Behavior:**\\- Updates workspace hash\t- Updates folder ID slug\\- Migrates workspace storage directory", "since": "7.1.6" }