A powerful CLI tool for modern developers β template management, command automation, and development utilities unified.
Streamline your workflow, standardize your projects, and automate repetitive tasks with ease.
- Installation Guide - Complete installation instructions for all platforms
- Building Guide - Build standalone executables with PyInstaller
- Full Documentation - Comprehensive guide and command reference
- cook init - Initialize a new project with interactive setup
- cook bake - Download and use templates to bootstrap projects
- cook run - Execute command groups with hot reload support
- cook auth - Authentication and user management
- cook mold - Template creation, management, and sharing
- cook cmd - Local command group management
- cook sys - System-wide command automation
- cook tool - Development utilities and tools
- cook version - Version information and diagnostics
- Python 3.7 or higher
- Git
# Clone the repository
git clone https://github.com/TheAlphaOnes/cook-cli.git
cd cook-cli
# Install dependencies
pip install -r requirements.txt
# Run Cook CLI
python3 main.py --help# Install PyInstaller
pip install pyinstaller
# Build executable
pyinstaller cook.spec --clean
# Run the built executable
./dist/cook/cook --helpπ View Complete Installation Guide - Includes platform-specific instructions, Docker setup, and troubleshooting.
Create, share, and reuse project templates with online sync.
# Create a template from your project
cook mold create
# Use a template to start a new project
cook bake username/@category/template-name
# List available templates
cook mold listDefine command groups in your project and run them with one command.
# Define in cook.config.json
{
"cmd": {
"dev": ["npm install", "npm run dev"],
"deploy": ["npm run build", "deploy.sh"]
},
"watch": {
"patterns": ["**/*.js", "**/*.ts", "**/*.css"],
"ignore": ["node_modules", "dist"]
}
}
# Run with hot reload
cook run dev --hot
# Quick access
cook run deployCreate global commands that work across all projects and directories.
# Add a system command
cook sys add
# Run it from anywhere
cook sys run
# Manage your system commands
cook sys list
cook sys update
cook sys removeBuilt-in utilities for common development tasks and project analysis.
# Count lines of code with smart filtering
cook tool loc
# Visualize directory structure
cook tool tree
# Generate open-source licenses
cook tool licence
# HTTP status code reference
cook tool status 404Secure authentication to sync templates and user data.
# Login to your account
cook auth login
# Check authentication status
cook auth now
# Logout
cook auth logout# Use a template to bootstrap your project
cook bake developer/@web/react-vite-starter
# Navigate to the created project
cd my-react-app
# Install dependencies and start development
npm install
cook run serve# Add to cook.config.json
{
"cmd": {
"start": [
"docker-compose up -d",
"npm install",
"npm run dev"
]
}
}
# Run with one command
cook run start --hot# Add a global command once
cook sys add
# Name: cleanup
# Description: Clean up development environment
# Commands: docker system prune -f
# npm cache clean --force
# Use it from any directory
cook sys run cleanup| Command | Description |
|---|---|
cook init |
Initialize a new project |
cook bake <template> |
Use a template |
cook run <group> |
Run command group |
cook version |
Show version info |
| Command | Description |
|---|---|
cook mold create |
Create template |
cook mold use |
Use template |
cook mold list |
List templates |
cook mold show |
Show template details |
cook mold update |
Update template |
| Command | Description |
|---|---|
cook cmd list |
List local command groups |
cook cmd run <group> |
Run local command groups |
cook cmd add |
Add new command group |
cook cmd update |
Update command group |
| Command | Description |
|---|---|
cook sys add |
Add global system command |
cook sys run |
Run system command |
cook sys list |
List system commands |
cook sys update |
Update system command |
cook sys remove |
Remove system command |
| Command | Description |
|---|---|
cook tool loc |
Count lines of code with filtering |
cook tool tree |
Show directory tree structure |
cook tool licence |
Generate project licenses |
cook tool status |
HTTP status code reference |
| Command | Description |
|---|---|
cook auth login |
Login to account |
cook auth logout |
Logout |
cook auth now |
Show auth status |
$ cook mold create
π¦ Creating template from: /home/developer/projects/my-app
How would you like to select the directory?
> Choose from list
Enter directory path manually
Template name: my-awesome-template
Enter template category: web
Description: My awesome React template with TypeScript
Tech stack (Enter empty line to finish):
1 $ : react
2 $ : typescript
3 $ : vite
4 $ :
GitHub repository: https://github.com/developer/my-awesome-template
Version: 1.0.0
π¦ Packing template...
β
Template packed: my-awesome-template.tar.zst (2.3 MB)
π€ Uploading template...
ββββββββββββββββββββββββββββββββ 100% 2.3/2.3 MB
β
Upload successful!
β
Template created successfully!
Template ID: developer/@web/my-awesome-template
$ cook run serve --hot
β
Starting hot reload for group: serve
β Watching directory: .
β Ignoring: node_modules, .git, dist
β Executing: npm run dev
β Command succeeded: npm run dev
VITE v4.4.5 ready in 432 ms
β Local: http://localhost:5173/
ποΈ Watching for changes...
π File changed: src/App.tsx
β Restarting processes...
β Executing: npm run dev
β Command succeeded: npm run dev
ποΈ Watching for changes...
$ cook sys add
Enter command name: server
Enter description (optional): Quick HTTP server
Enter commands (one per line, empty line to finish):
Command 1: python -m http.server 8000
Command 2:
β Added system command: server
$ cook sys run
Select system command to run:
> server β Quick HTTP server
Running system command: server
Description: Quick HTTP server
β Executing: python -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
-
π¦ Code Templates with Online Sync Create and reuse full project templates. Sync them via our public hub.
-
βοΈ Sys & Local Custom Commands Automate your routine commands per project or system-wide.
-
π License Generator Generate open-source licenses for your projects instantly.
-
π Lines of Code Counter Analyze your project code stats, respecting
.gitignore. -
π² Directory Tree Viewer Visually explore your folder structure in the terminal.
-
π Hot Reload & Cleanup Instantly apply config changes and clean unused files.
cook
βββ init # Initialize new project
βββ bake <template> # Use a template
βββ run <group> # Run command groups
βββ version # Show version info
βββ auth # Authentication
β βββ login # Login to account
β βββ logout # Logout
β βββ now # Show auth status
βββ mold # Template management
β βββ create # Create template
β βββ use # Use template
β βββ list # List templates
β βββ show # Show template details
β βββ update # Update template
βββ cmd # Local command management
β βββ list # List command groups
β βββ run # Run command group
β βββ add # Add command group
β βββ update # Update command group
βββ sys # System command management
β βββ add # Add system command
β βββ run # Run system command
β βββ list # List system commands
β βββ update # Update system command
β βββ remove # Remove system command
βββ tool # Development tools
βββ loc # Lines of code counter
βββ tree # Directory tree viewer
βββ licence # License generator
βββ status # HTTP status codesHereβs a sample project config using Cook:
{
"name": "my-awesome-project",
"author": "developer",
"stir": true,
"cmd": {
"serve": [
"npm install",
"npm run dev"
],
"build": [
"rm -rf dist",
"npm run build"
],
"test": [
"npm run test:unit",
"npm run test:e2e"
],
"deploy": [
"npm run build",
"docker build -t my-app .",
"docker push my-app:latest"
]
},
"template": {
"name": "react-typescript-starter",
"category": "web",
"version": "2.1.0",
"stack": [
"react",
"typescript",
"vite",
"tailwindcss",
"vitest"
],
"github": "https://github.com/developer/react-typescript-starter",
"date": "2024-01-15"
}
}Cook CLI Ecosystem
βββ π§ Core CLI Tool
β βββ Handles all local automation, commands, and templates
βββ βοΈ Public Platform (hub)
β βββ Online template/snippet repo
βββ π MCP Server (Soon..)
βββ Discoverable services, shared workflows, and plugins
- Solo Developers - Manage multiple projects with consistent workflows
- Development Teams - Standardize project setups and automation
- Open Source Contributors - Create reusable project templates
- DevOps Engineers - Automate deployment and maintenance tasks
- Students & Educators - Quick project bootstrapping and learning
- Anyone who values efficiency and automation β‘
Cook CLI is actively developed with exciting features planned:
- π Plugin System - Extend Cook with custom functionality
- βοΈ Cloud Sync - Sync configurations across devices
- π€ AI Integration - Smart template suggestions and code generation
- π Analytics - Project insights and productivity metrics
- π Web Dashboard - Manage templates and commands online
Contributing: We welcome contributions! Check out our GitHub repository to get involved.
Licensed under the MIT License.
Made with β€οΈ for lazy devs by TheAlphaOnes
