Skip to content

7h3v01d/cli_menu_designer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CLI Menu Designer

A beautiful, modern web-based designer for Python argparse CLIs
Create professional command-line interfaces visually — with live preview, AI assistance, and instant code generation.

snapshot

✨ Features

  • Live Terminal Preview — See exactly how your CLI --help will look
  • Real-time Python Code Generation — Ready-to-run argparse code
  • JSON Schema Export — For documentation or further processing
  • Visual Argument Builder — Flags, options, positionals, and subcommands
  • AI Assistant (Claude) — Auto-generate descriptions and help text
  • Import Existing Code — Paste your current argparse script and edit visually
  • Shareable Sessions — Save and share your design via URL
  • Auto-save — Your work is saved automatically in the browser
  • Modern Cyberpunk / Terminal Aesthetic — Built with JetBrains Mono

🚀 How to Use

  1. Open the tool

    • Just open cli_menu_designer.html in any modern browser (Chrome, Edge, Firefox recommended)
  2. Design your CLI

    • Set program name and description
    • Add arguments using the visual editor
    • Choose types: Flag (--verbose), Option (--input FILE), Positional, or Subcommand
    • Use AI buttons to generate help text or descriptions
  3. Preview & Export

    • Switch between Terminal, Python Code, and JSON tabs
    • Copy or download the generated code

📁 Project Files

CLI-Menu-Designer/
├── cli_menu_designer.html     # Main single-file application
├── requirements.txt
├── README.md
└── (optional) screenshot.png

🛠️ Tech Stack

  • HTML5 + CSS3 (custom dark terminal theme)
  • Vanilla JavaScript (no frameworks)
  • JetBrains Mono font for that authentic developer feel
  • LocalStorage for auto-saving
  • Base64 URL encoding for shareable links

🎯 Use Cases

  • Quickly prototype new CLI tools
  • Teach argparse to students
  • Refactor messy existing CLIs
  • Generate consistent help text across tools
  • Create documentation-ready argument schemas

📋 Example

Create a tool like this in minutes:

mycli --input data.csv --format json --verbose process

The designer will generate clean, production-ready argparse code for you.

⚡ Tips

  • Use the AI buttons for smart suggestions
  • Drag the terminal width slider to test different console sizes
  • Import existing scripts via the Import .py button
  • Share your design by clicking Share — the full config is embedded in the URL

Contribution Policy

Feedback, bug reports, and suggestions are welcome.

You may submit:

  • Issues
  • Design feedback
  • Pull requests for review

However:

  • Contributions do not grant any license or ownership rights
  • The author retains full discretion over acceptance and future use
  • Contributors receive no rights to reuse, redistribute, or derive from this code

License

This project is not open-source.

It is licensed under a private evaluation-only license. See LICENSE.txt for full terms.

About

Generates Python argparse CLI code through a web-based visual designer with live preview and AI assistance.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages