{"id":18265835,"url":"https://github.com/mbianchidev/cli-cheatsheet","last_synced_at":"2026-02-07T20:02:39.084Z","repository":{"id":182175520,"uuid":"450276401","full_name":"mbianchidev/cli-cheatsheet","owner":"mbianchidev","description":"A cheatsheet for various CLIs","archived":false,"fork":false,"pushed_at":"2025-05-21T16:55:15.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T17:50:12.676Z","etag":null,"topics":["aws","bash","cli","docker","kubernetes","maven","powershell","terraform"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbianchidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-20T22:22:50.000Z","updated_at":"2025-05-21T16:55:18.000Z","dependencies_parsed_at":"2023-07-19T01:48:34.873Z","dependency_job_id":"507eadc0-bbb5-4c9c-bcd8-4baf1c5a30ea","html_url":"https://github.com/mbianchidev/cli-cheatsheet","commit_stats":null,"previous_names":["mbianchidev/cli-cheatsheet"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mbianchidev/cli-cheatsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbianchidev%2Fcli-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbianchidev%2Fcli-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbianchidev%2Fcli-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbianchidev%2Fcli-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbianchidev","download_url":"https://codeload.github.com/mbianchidev/cli-cheatsheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbianchidev%2Fcli-cheatsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29206827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","bash","cli","docker","kubernetes","maven","powershell","terraform"],"created_at":"2024-11-05T11:20:04.688Z","updated_at":"2026-02-07T20:02:39.079Z","avatar_url":"https://github.com/mbianchidev.png","language":"Shell","readme":"# CLI CHEATSHEET\n\n**Interactive terminal command reference** with a retro-futuristic CRT aesthetic. Find, copy, and execute commands instantly.\n\n🌐 **[Live Demo](https://mbianchidev.github.io/cli-cheatsheet/)** | 📦 Zero Dependencies | ⚡ Instant Load\n\n---\n\n## 🚀 Quick Start\n\nGet running in under 60 seconds:\n\n### Option 1: Open Locally (Fastest)\n\n```bash\n# Clone and open\ngit clone https://github.com/mbianchidev/cli-cheatsheet.git\ncd cli-cheatsheet\nopen index.html          # macOS\nxdg-open index.html      # Linux\nstart index.html         # Windows\n```\n\nThat's it! The site works completely offline.\n\n### Option 2: Local Server\n\n```bash\n# Python 3\npython3 -m http.server 8000\n\n# Python 2\npython -m SimpleHTTPServer 8000\n\n# Node.js\nnpx http-server\n\n# Then visit: http://localhost:8000\n```\n\n### Option 3: GitHub Pages (Automatic)\n\nThe site automatically deploys to GitHub Pages on push to main branch via GitHub Actions.\n\n---\n\n## ✨ Features\n\n| Feature | Description |\n|---------|-------------|\n| **🔍 Live Search** | Filter commands as you type |\n| **📋 Quick Copy** | One-click clipboard copy |\n| **🎨 CRT Aesthetic** | Retro terminal with scanlines and phosphor glow |\n| **⚡ Zero Build** | Pure HTML/CSS/JS, no dependencies |\n| **⌨️ Keyboard Shortcuts** | `Ctrl+K` to search, `Esc` to clear |\n| **📱 Responsive** | Works on all screen sizes |\n| **🌈 8 Categories** | Docker, K8s, Linux, Git, AWS, Helm, Maven, Flutter |\n\n---\n\n## 📝 Adding Commands\n\nAll commands are stored in `terminal-db.json`. The structure is straightforward:\n\n### Edit Existing Category\n\n```json\n{\n  \"systems\": {\n    \"docker\": {\n      \"name\": \"Docker\",\n      \"glyph\": \"🐳\",\n      \"entries\": [\n        [\"command here\", \"description of what it does\"],\n        [\"docker ps\", \"display running containers\"],\n        [\"your new command\", \"your description\"]\n      ]\n    }\n  }\n}\n```\n\n### Add New Category\n\n```json\n{\n  \"systems\": {\n    \"mynewcategory\": {\n      \"name\": \"My Tool\",\n      \"glyph\": \"🔧\",\n      \"entries\": [\n        [\"mytool --help\", \"show help information\"],\n        [\"mytool run\", \"execute the tool\"]\n      ]\n    }\n  }\n}\n```\n\n### Data Format\n\nEach category contains:\n\n- **`name`**: Display name shown in UI\n- **`glyph`**: Emoji icon for visual identification  \n- **`entries`**: Array of `[command, description]` pairs\n\n---\n\n## 🎨 Customization\n\n### Change Color Scheme\n\nEdit CSS variables in `index.html`:\n\n```css\n:root {\n    --phosphor: #39ff14;  /* Main terminal green */\n    --screen: #0d0208;    /* Background */\n    --amber: #ffba08;     /* Secondary color */\n    --cyan: #00f5ff;      /* Highlight color */\n    --purple: #b537f2;    /* Accent */\n}\n```\n\n### Modify Typography\n\nChange the Google Fonts import:\n\n```html\n@import url('https://fonts.googleapis.com/css2?family=YourFont\u0026display=swap');\n```\n\nUpdate font family:\n\n```css\nbody {\n    font-family: 'YourFont', monospace;\n}\n```\n\n### Disable CRT Effects\n\nRemove the scanlines and vignette:\n\n```css\n.monitor::before { display: none; }  /* Remove scanlines */\n.monitor::after { display: none; }   /* Remove vignette */\n```\n\n---\n\n## 🛠️ Project Structure\n\n```\ncli-cheatsheet/\n├── index.html              # Main web interface\n├── terminal-db.json        # Command database\n├── README.md               # Documentation\n│\n├── docker.sh               # Original Docker commands\n├── kubernetes.sh           # Original Kubernetes commands\n├── linux.sh                # Original Linux commands\n├── git.sh                  # Original Git commands\n├── aws.sh                  # Original AWS commands\n├── helm.sh                 # Original Helm commands\n├── maven.sh                # Original Maven commands\n└── flutter.sh              # Original Flutter commands\n```\n\n---\n\n## ⌨️ Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Ctrl+K` / `Cmd+K` | Focus search field |\n| `Esc` | Clear search |\n| `Tab` | Navigate between buttons |\n| `Enter` | Activate focused button |\n\n---\n\n## 🤝 Contributing\n\n### How to Contribute\n\n1. **Fork** this repository\n2. **Create** a feature branch: `git checkout -b add-new-commands`\n3. **Edit** `terminal-db.json` with your additions\n4. **Test** locally by opening `index.html`\n5. **Commit**: `git commit -m \"Add XYZ commands\"`\n6. **Push**: `git push origin add-new-commands`\n7. **Submit** a Pull Request\n\n### Adding Commands\n\nEach command is a simple two-element array in `terminal-db.json`:\n\n```json\n[\"the command to run\", \"brief description of what it does\"]\n```\n\n**Example:**\n\n```json\n{\n  \"systems\": {\n    \"docker\": {\n      \"name\": \"Docker\",\n      \"glyph\": \"🐳\",\n      \"entries\": [\n        [\"docker ps\", \"display running containers\"],\n        [\"docker images\", \"list all images\"],\n        [\"YOUR NEW COMMAND HERE\", \"what it does\"]\n      ]\n    }\n  }\n}\n```\n\n### Description Best Practices\n\n- Keep descriptions under 60 characters\n- Start with a verb (e.g., \"display\", \"create\", \"remove\")\n- Be specific about what the command does\n- Don't include punctuation at the end\n- Use present tense\n\n**Good:** `\"list all running containers\"`  \n**Bad:** `\"Lists all running containers.\"` (has punctuation)\n\n### Command Patterns\n\n**Placeholders:** Use `\u003cangle-brackets\u003e` for required values, `[square-brackets]` for optional:\n```json\n[\"docker exec -it \u003ccontainer\u003e bash\", \"open shell in container\"]\n[\"git log [--oneline]\", \"view commit history\"]\n```\n\n**Piped Commands:** Include pipes when essential:\n```json\n[\"ps aux | grep \u003cprocess\u003e\", \"find specific process\"]\n```\n\n### Testing Your Changes\n\nBefore submitting:\n\n1. Validate JSON syntax:\n   ```bash\n   python3 -m json.tool terminal-db.json\n   ```\n\n2. Open `index.html` and verify:\n   - Commands appear in correct category\n   - Descriptions are clear\n   - Copy functionality works\n   - No visual glitches\n\n### Contribution Guidelines\n\n✅ **DO:**\n- Add practical, commonly-used commands\n- Keep descriptions concise (under 60 characters)\n- Test commands before submitting\n- Follow the existing JSON format\n- Include examples for complex commands\n\n❌ **DON'T:**\n- Add deprecated or obsolete commands\n- Include dangerous commands without clear warnings\n- Submit commands that require extensive setup\n- Break the JSON structure\n\n---\n\n## 📊 Current Stats\n\n**Total Commands**: 143  \n**Categories**: 8  \n**Lines of Code**: ~600  \n**Dependencies**: 0  \n**Build Time**: 0ms  \n**Total Size**: ~50KB  \n**Load Time**: \u003c100ms\n\n---\n\n## 🎯 Philosophy \u0026 Architecture\n\nThis project embraces:\n\n- **Simplicity**: No build tools, no frameworks, just HTML/CSS/JS\n- **Speed**: Instant load, instant search, instant copy\n- **Aesthetics**: Retro-futuristic terminal design that's actually functional\n- **Accessibility**: Keyboard navigation and screen reader friendly\n- **Maintainability**: Single JSON file for all command data\n\n### Technical Architecture\n\n**Data Model:**\n- JSON-based storage (`terminal-db.json`)\n- Flat structure: systems → entries array\n- Each entry: [command, description]\n\n**Application Logic:**\n- Single object (`Terminal`) manages all state\n- Event-driven architecture\n- DOM manipulation via vanilla JavaScript\n- No virtual DOM, no reactivity framework\n\n**Design System:**\n- Custom CSS with CSS variables\n- Retro phosphor green (#39ff14) primary color\n- CRT effects: scanlines, vignette, glow\n- Monospace fonts: Cutive Mono + Orbitron\n- Brutalist layout with heavy borders\n\n### Why These Choices?\n\n**Why No Framework?**\n- Faster loading (no bundle to download)\n- Easier maintenance (no dependencies to update)\n- Lower barrier to contribution\n- Demonstrates vanilla JS capabilities\n\n**Why JSON Over YAML?**\n- Native JavaScript support\n- Easier to validate\n- Simpler parsing\n- No external libraries needed\n\n**Why Retro CRT Design?**\n- Distinctive and memorable\n- Fits terminal/CLI theme perfectly\n- Appeals to developer nostalgia\n- Makes the tool stand out\n\n---\n\n## 🐛 Troubleshooting\n\n### Commands not loading?\n\nCheck browser console for errors. Ensure `terminal-db.json` is valid JSON:\n\n```bash\npython3 -m json.tool terminal-db.json\n```\n\n### Styling broken?\n\nClear browser cache and hard reload:\n- **Chrome/Edge**: `Ctrl+Shift+R` (Windows/Linux) or `Cmd+Shift+R` (Mac)\n- **Firefox**: `Ctrl+F5` (Windows/Linux) or `Cmd+Shift+R` (Mac)\n\n### Copy not working?\n\nModern browsers require HTTPS for clipboard API. Use localhost or deploy to GitHub Pages.\n\n### Page doesn't load?\n- Make sure `index.html` and `terminal-db.json` are in the same directory\n- Try opening in a different browser\n- Check browser console for errors (F12)\n\n### JSON errors?\nValidate your JSON:\n```bash\npython3 -m json.tool terminal-db.json\n```\n\n---\n\n## 🔧 Deployment \u0026 Maintenance\n\n### Deployment Options\n\n1. **LOCAL** - Just open index.html in any browser\n2. **LOCAL SERVER** - `python3 -m http.server 8000` → http://localhost:8000\n3. **GITHUB PAGES** - Automatic deployment via GitHub Actions (see `.github/workflows/`)\n4. **ANY HOST** - Upload index.html + terminal-db.json to any static hosting\n\n### Browser Compatibility\n\n- Chrome/Edge: ✅ Full support\n- Firefox: ✅ Full support\n- Safari: ✅ Full support\n- Mobile browsers: ✅ Responsive design\n\nMinimum requirements: ES6, Clipboard API, CSS Grid, Flexbox\n\n### Performance Metrics\n\n- **Load Time**: \u003c100ms on fast connection\n- **Search Performance**: Instant (client-side filtering)\n- **Copy Operation**: \u003c50ms\n- **Memory Usage**: \u003c5MB\n- **Bundle Size**: 28KB total (uncompressed)\n\n### Maintenance\n\nThe project is designed for minimal maintenance:\n\n1. **Adding Commands**: Edit JSON file, no code changes needed\n2. **Styling**: CSS variables make theme changes easy\n3. **No Dependencies**: No security updates or breaking changes\n4. **Static Hosting**: Works on any web server or CDN\n\n---\n\n## 📜 Original Scripts\n\nThe original `.sh` and `.bat` files remain in the repository root. These are the source materials that inspired the interactive web interface.\n\n---\n\n## 🔗 Links\n\n- **Repository**: [github.com/mbianchidev/cli-cheatsheet](https://github.com/mbianchidev/cli-cheatsheet)\n- **Issues**: [Report bugs](https://github.com/mbianchidev/cli-cheatsheet/issues)\n- **Discussions**: [Join the conversation](https://github.com/mbianchidev/cli-cheatsheet/discussions)\n\n---\n\n## 📄 License\n\nThis project is provided as-is without warranty. The original author takes no responsibility for command execution or outcomes. Always understand commands before running them, especially those requiring elevated privileges.\n\n---\n\n## 🙏 Acknowledgments\n\n**Created by**: [mbianchidev](https://github.com/mbianchidev)\n\n**Design Inspiration**: Vintage CRT terminals, phosphor monitors, and 80s sci-fi aesthetics\n\n**Typography**: Cutive Mono (Google Fonts), Orbitron (Google Fonts)\n\n---\n\n**Built with**: Pure HTML, CSS, and JavaScript  \n**External Dependencies**: None  \n**Framework**: None  \n**Bundler**: None  \n\nJust open `index.html` and start copying commands. 🚀\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbianchidev%2Fcli-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbianchidev%2Fcli-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbianchidev%2Fcli-cheatsheet/lists"}