CLI & Scaffolding
Sistine provides command-line tools to streamline project creation and management.
bash
# Initialize an MVC project in the current directory
sistine init
# Initialize in a specific directory
sistine init my_project
# Run the server (default: main.py)
sistine run
# Run a specific file with auto-reload
sistine run app.py
# Build static HTML (exports to /dist)
sistine build main.py --out distProject Structure
Running sistine init will scaffold a production-ready MVC (Model-View-Controller) structure:
text
my_project/
├── main.py # App entry point & router
├── controllers/ # Business logic and @app.query endpoints
│ └── home_ctrl.py
├── views/ # UI components using el.* builder
│ ├── layout.py # Base HTML structure
│ └── home_view.py # Specific page views
├── models/ # Database/Data layer
└── assets/ # Static files (CSS, images, etc.)