Commands Reference

Friendly, concrete tour of every Super Pocket CLI command (plus the stand-alone shortcuts when they exist).

Interactive Mode

When you run pocket without any arguments, Super Pocket launches an interactive mode with a guided menu. This is great for discovering features or when you don’t remember the exact command syntax.

Launch interactive mode:

pocket

The interactive mode offers:

  • Help - Display the main help menu

  • Project - Access project tools (to-file, readme, req-to-date, init)

  • Documents - Manage templates and cheatsheets (list, view, copy, init)

  • PDF - Convert files to PDF

  • Web - Web utilities (favicon, job-search)

  • README - Analyze or generate README files

  • XML - Convert custom tag syntax to XML

  • Exit - Quit the interactive mode (or press Q, q, exit, quit)

Each submenu guides you through the available options and prompts for required parameters. Perfect for beginners or occasional users who prefer a guided experience over memorizing CLI flags.

Example session:

$ pocket
[Logo appears]
help project documents pdf web readme xml exit/Q >>> project
[Project menu]
help to-file readme req-to-date init exit/Q >>> to-file
Project path [.]: ./my-app
Output file (optional): export.md
Exclude (comma-separated, optional): node_modules,dist
[Spinner: Exporting project...]
[Output displayed]
Press Enter to continue

Global Options

These options are available everywhere:

pocket [OPTIONS] COMMAND [ARGS]...
  • --version - Show version and exit

  • --help - Show help message and exit

Markdown Commands

Tools for rendering and working with Markdown.

pocket markdown render

Render a Markdown file in the terminal with nice formatting.

Usage:

pocket markdown render [OPTIONS] FILE

Arguments:

  • FILE - Path to the Markdown file (required)

Options:

  • -w, --width INTEGER - Optional output width

  • --help - Show help

Example:

pocket markdown render README.md -w 100

Standalone command: markd README.md

Project Commands

Everything about exporting, documenting, and scaffolding projects.

pocket project to-file

Export a project directory to a single Markdown file.

Usage: pocket project to-file [OPTIONS]

Options you’ll actually use:

  • -p, --path - Project root (default: .)

  • -o, --output - Output file (default: <project>-1-file.md)

  • -e, --exclude - Comma-separated exclusions

Examples:

pocket project to-file
pocket project to-file -p ./my-app -o export.md
pocket project to-file -e ".git,venv,node_modules"

Standalone command: proj2md -p . -o output.md

pocket project readme

Interactive wizard that inspects the repo and writes a polished README.md.

Usage: pocket project readme [OPTIONS]

  • -p, --path - Project directory (default: .)

  • -o, --output - Target README path (default: README.md)

Example: pocket project readme -p ../demo -o docs/README.md

What it does: detects languages/frameworks, asks a few questions, and writes a push-ready README.

pocket project req-to-date

Audits dependencies and prints current -> latest with colors.

Usage: pocket project req-to-date [PACKAGES...]

Accepts inline specs, comma lists, or files (requirements.txt / pyproject.toml).

Examples:

pocket project req-to-date requirements.txt
pocket project req-to-date click==8.1.7 rich>=13
pocket project req-to-date numpy==1.23,rich>=13 pyproject.toml

Standalone command: req-update requirements.txt

pocket project init

Scaffold a new project from built-in templates (great for demos or quick starts).

Usage: pocket project init [COMMAND] [OPTIONS]

Subcommands:

  • list – show available templates

  • show <template> – inspect one template

  • new <template> – generate a project (--quick to skip prompts, -p for output path)

Examples:

pocket project init list
pocket project init show fastapi-basic
pocket project init new fastapi-basic --quick -p ./demo-api

README Commands

Direct access to the README engine (same core as pocket project readme).

pocket readme analyze

Analyze a project and print what was detected.

pocket readme analyze -p .

Shows project name, language, framework (if any), and dependency count in a rich table.

pocket readme generate

Generate a README in one go, no Q&A.

pocket readme generate -p . -o README.md

Outputs a ready-to-edit README based on the detected stack.

Documents Commands

Manage AI agent templates and cheatsheets.

pocket documents list

List every template/cheatsheet (filter with -t templates or -t cheatsheets).

pocket documents view

Preview content in the terminal. Auto-detects type or specify -t template|cheatsheet.

pocket documents copy

Copy a template/cheatsheet to your project. Supports -o for destination and -f to overwrite.

pocket documents init

Bootstrap a directory with all templates (default: .AGENTS). Pass -o to choose another path.

PDF Commands

Convert Markdown/text to PDF.

pocket pdf convert

Usage: pocket pdf convert [OPTIONS] INPUT

  • -o, --output - Output PDF path (default: <input>.pdf)

Example: pocket pdf convert README.md -o README.pdf

Standalone command: conv2pdf README.md README.pdf

Web Commands

Small web helpers (requires super-pocket[web] extras).

pocket web favicon

Turn an image into a multi-size .ico.

pocket web favicon logo.png -o favicon.ico --sizes "64x64,32x32"

Standalone command: favicon logo.png -o favicon.ico

XML Command

Friendly XML builder for LLMs.

pocket xml

Convert tag:<content> syntax to pretty XML.

pocket xml "note:hello world"
pocket xml -f input.txt -o output.xml

If no text/file is provided, it prompts interactively. No standalone alias yet—call via pocket xml.

Command Cheat Sheet

Quick reference:

Command

Description

Standalone

pocket markdown render

Render markdown in terminal

markd

pocket project to-file

Export project to one Markdown

proj2md

pocket project readme

Interactive README wizard

N/A

pocket project req-to-date

Dependency audit

req-update

pocket project init

Scaffold from templates

N/A

pocket readme analyze|generate

Analyze or generate README directly

N/A

pocket documents list/view/copy/init

Manage templates & cheatsheets

N/A

pocket pdf convert

Convert to PDF

conv2pdf

pocket web favicon

Create favicons

favicon

pocket web job-search

Fetch job listings

N/A

pocket xml

Friendly syntax to XML

N/A