Complete documentation for Cook CLI - The Swiss Army Knife for Developers.
# Install dependencies
pip install -r requirements.txt
# Initialize a new project
cook init
# Run your project
cook run serve
# Create a template from your project
cook mold create
# Use a template to start a new project
cook bake username/@category/template-name| Command | Description | Documentation |
|---|---|---|
cook init |
Initialize a new Cook project | π View Docs |
cook run |
Run command groups | π View Docs |
cook bake |
Use a template to create a project | π View Docs |
cook version |
Show version information | π View Docs |
| Command | Description | Documentation |
|---|---|---|
cook auth |
Authentication and user management | π View Docs |
| Command | Description | Documentation |
|---|---|---|
cook mold |
Template management (create, upload, manage) | π View Docs |
| Command | Description | Documentation |
|---|---|---|
cook cmd |
Local command execution and management | π View Docs |
cook sys |
System-level command management | π View Docs |
| Command | Description | Documentation |
|---|---|---|
cook tool |
Development tools and utilities | π View Docs |
# 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# Create a new directory for your project
mkdir my-awesome-project
cd my-awesome-project
# Initialize Cook configuration
cook initTo use template management features:
# Login to your Cook account
cook auth login
# Check authentication status
cook auth now# Run your development server
cook run serve
# Create a template from your project
cook mold create
# Use someone else's template
cook bake alice/@web/react-starter- Create reusable project templates
- Share templates with the community
- Download and use templates to bootstrap new projects
- Version control and update templates
- Define project-specific command groups
- Create system-wide commands for global use
- Hot reload functionality for development
- Verbose execution with detailed logging
- Secure login with connection keys
- Personal template storage and management
- Access control for private templates
- Lines of code counter with smart filtering
- Directory tree visualization
- License generator for open source projects
- HTTP status code reference tool
{
"name": "my-project",
"author": "username",
"stir": true,
"cmd": {
"serve": ["npm run dev"],
"build": ["npm run build"],
"clean": ["rm -rf node_modules"]
},
"template": {
"name": "my-template",
"category": "web",
"version": "1.0.0",
"stack": ["react", "typescript"],
"github": "https://github.com/user/repo"
}
}{
"watch": {
"directory": ".",
"patterns": ["**/*.js", "**/*.ts"],
"ignore": ["node_modules", ".git", "dist"]
}
}# Option 1: Use an existing template
cook bake username/@category/template-name
cd my-new-project
npm install
cook run serve
# Option 2: Initialize from scratch
mkdir my-project && cd my-project
cook init
# Set up your project files
cook run serve# Develop your project
cook init
# ... build your awesome project ...
# Create a template
cook mold create
# Share your template ID with others
# They can use: cook bake yourusername/@category/template-name# Add local command groups
cook cmd add
# Add system-wide commands
cook sys add
# Run commands with hot reload
cook run serve --hot
# Run with verbose output
cook run build --verbose# Analyze your codebase
cook tool loc
# Visualize project structure
cook tool tree
# Generate a license
cook tool licence
# Look up HTTP status codes
cook tool status 404- Include comprehensive documentation in your templates
- Use meaningful category names (@web, @mobile, @backend)
- Keep templates focused on specific use cases
- Include example configuration and setup instructions
- Use descriptive names for command groups
- Group related commands together
- Include cleanup commands for development artifacts
- Test commands in different environments
- Use hot reload for development workflows
- Configure watch patterns to avoid unnecessary restarts
- Exclude build outputs and dependencies from watching
- Combine with verbose mode for debugging
- Create shortcuts for frequently used operations
- Use descriptive names and descriptions
- Include error handling in complex command sequences
- Test system commands across different projects
Authentication Problems:
# Check authentication status
cook auth now
# Re-login if needed
cook auth logout
cook auth loginTemplate Issues:
# Verify template exists
cook mold list
# Check template details
cook mold show
# Ensure you're logged in for private templates
cook auth loginCommand Execution Problems:
# List available command groups
cook cmd list
# Run with verbose output for debugging
cook run serve --verbose
# Check your cook.config.json syntax- Use
--helpwith any command for detailed usage information - Check command-specific documentation in this guide
- Verify your
cook.config.jsonsyntax and structure - Ensure you have proper authentication for template operations
Cook CLI is open source and welcomes contributions:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests and documentation
- Submit a pull request
Cook CLI is licensed under the MIT License. See the LICENSE file for details.
Need help? Check the individual command documentation or open an issue on GitHub.