CLI Commands¶
Vyte provides a powerful command-line interface with several commands to help you manage your API projects.
Overview¶
Global Options¶
--version- Show version and exit--help- Show help message and exit
Commands¶
create¶
Create a new API project with interactive prompts or command-line options.
Interactive Mode (Recommended)¶
This launches an interactive wizard that guides you through:
- 📝 Project Name - Choose a valid Python package name
- 🎯 Framework - Select Flask-Restx, FastAPI, or Django-Rest
- 🗄️ ORM - Choose SQLAlchemy, TortoiseORM, Peewee, or Django ORM
- 💾 Database - Select PostgreSQL, MySQL, or SQLite
- 🔐 Authentication - Enable JWT authentication (recommended)
- 🐳 Docker - Include Docker configuration (recommended)
Non-Interactive Mode¶
Create a project with all options specified:
vyte create \
--no-interactive \
--name my-api \
--framework FastAPI \
--orm SQLAlchemy \
--database PostgreSQL \
--auth \
--docker
Options¶
--name TEXT- Project name (required in non-interactive mode)--framework [Flask-Restx|FastAPI|Django-Rest]- Web framework to use--orm [SQLAlchemy|TortoiseORM|Peewee|Django]- ORM to use--database [PostgreSQL|MySQL|SQLite]- Database type--auth / --no-auth- Include JWT authentication (default: yes)--docker / --no-docker- Include Docker configuration (default: yes)--no-interactive- Skip interactive prompts--help- Show help for this command
Examples¶
FastAPI with SQLAlchemy and PostgreSQL:
Flask-Restx with Peewee and SQLite (no Docker):
list¶
List all available framework, ORM, and database combinations.
Shows a table with all compatible combinations and their support status.
Output Example¶
╭─────────────────┬──────────────┬────────────┬────────────╮
│ Framework │ ORM │ Database │ Status │
├─────────────────┼──────────────┼────────────┼────────────┤
│ Flask-Restx │ SQLAlchemy │ PostgreSQL │ ✓ Stable │
│ Flask-Restx │ SQLAlchemy │ MySQL │ ✓ Stable │
│ Flask-Restx │ SQLAlchemy │ SQLite │ ✓ Stable │
│ Flask-Restx │ Peewee │ SQLite │ ✓ Stable │
│ FastAPI │ SQLAlchemy │ PostgreSQL │ ✓ Stable │
│ FastAPI │ TortoiseORM │ PostgreSQL │ ✓ Stable │
╰─────────────────┴──────────────┴────────────┴────────────╯
info¶
Display detailed information about a specific framework or ORM.
Options¶
--framework TEXT- Get info about a framework--orm TEXT- Get info about an ORM--help- Show help for this command
Examples¶
Get FastAPI information:
Get SQLAlchemy information:
Output Example¶
╭─────────────────── FastAPI Information ───────────────────╮
│ │
│ Type: Modern async web framework │
│ Version: 0.104+ │
│ Async: Yes │
│ Documentation: https://fastapi.tiangolo.com/ │
│ │
│ Features: │
│ • High performance (based on Starlette and Pydantic) │
│ • Automatic API documentation │
│ • Type hints everywhere │
│ • Async/await support │
│ • Dependency injection │
│ │
│ Compatible ORMs: SQLAlchemy, TortoiseORM │
│ │
╰───────────────────────────────────────────────────────────╯
deps¶
Show dependencies for a specific framework, ORM, and database combination.
Options¶
--framework TEXT- Framework (required)--orm TEXT- ORM (required)--database TEXT- Database (required)--help- Show help for this command
Example¶
Output Example¶
╭─────────────── Dependencies ───────────────╮
│ │
│ Core Dependencies: 8 │
│ Dev Dependencies: 12 │
│ Total Size: ~45 MB │
│ │
│ 📦 Core: │
│ • fastapi>=0.104.0 │
│ • sqlalchemy>=2.0.0 │
│ • psycopg2-binary>=2.9.9 │
│ • pydantic>=2.5.0 │
│ • uvicorn[standard]>=0.24.0 │
│ • python-jose[cryptography]>=3.3.0 │
│ • passlib[bcrypt]>=1.7.4 │
│ • python-multipart>=0.0.6 │
│ │
│ 🔧 Dev: │
│ • pytest>=7.4.3 │
│ • pytest-asyncio>=0.21.0 │
│ • httpx>=0.25.0 │
│ • pytest-cov>=4.1.0 │
│ ... │
│ │
╰────────────────────────────────────────────╯
Tips & Best Practices¶
🎯 Use Interactive Mode First¶
If you're new to Vyte, start with the interactive mode:
It will guide you through all options and show you compatible combinations.
📋 Check Compatibility First¶
Before creating a project, check available combinations:
🔍 Learn About Options¶
Get detailed information about frameworks and ORMs:
🚀 Save Time with Flags¶
Once you know your preferred stack, use flags for speed:
🐳 Always Include Docker¶
Docker makes deployment and development easier:
🔐 Enable Auth for Production¶
JWT authentication is production-ready:
Next Steps¶
- Configuration Guide - Customize generated projects
- Integration Guide - Connect with your tools
- Development Setup - Set up for contributing