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:** .. code-block:: bash 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:** .. code-block:: text $ 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: .. code-block:: bash 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:** .. code-block:: bash pocket markdown render [OPTIONS] FILE **Arguments:** * ``FILE`` - Path to the Markdown file (required) **Options:** * ``-w, --width INTEGER`` - Optional output width * ``--help`` - Show help **Example:** .. code-block:: bash 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: ``-1-file.md``) * ``-e, --exclude`` - Comma-separated exclusions **Examples:** .. code-block:: bash 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:** .. code-block:: bash 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