Scaffold a Full-Stack Project
Section titled “Scaffold a Full-Stack Project”oridecon new project my-app --template full -d ./workspacecd ./workspace/my-appls src/my_app/The full template includes application.yaml, app.py, modules structure, tests, and pyproject.toml.
Create a New Extension Package
Section titled “Create a New Extension Package”oridecon new package my-feature -d ./extensionscd ./extensions/oridecon-my-featureuv syncuv run pytestScaffolds oridecon-my-feature/ with pyproject.toml, src/oridecon/my_feature/, di/provider.py, and a unit test scaffold.
List All Available Generators
Section titled “List All Available Generators”oridecon gen listGenerators are contributed by installed packages. Each entry shows the generator name and description.
Generate a Model, Service, and Controller
Section titled “Generate a Model, Service, and Controller”oridecon gen model Productoridecon gen service ProductServiceoridecon gen repository ProductRepositoryoridecon gen controller ProductControllerGenerated files are placed in the project’s src/ tree, following framework conventions.
Run Database Migrations
Section titled “Run Database Migrations”oridecon db init # create initial migrationoridecon db migrate -m "add email field"oridecon db upgrade # apply pendingoridecon db rollback # revert lastoridecon db status # check stateoridecon db list # show historyRequires oridecon-sql to be installed in the project.
Inspect the Runtime
Section titled “Inspect the Runtime”oridecon inspect providers # list DI providersoridecon inspect routes # show HTTP routesoridecon inspect health # run health checksoridecon inspect container # show container bindingsStart an Interactive Shell
Section titled “Start an Interactive Shell”oridecon shell # REPL with app contextoridecon shell --ipython # use IPython if availableoridecon shell --no-app # plain Python REPLThe context-loaded shell provides app, container, config, db, cache, and events.
Run Project Checks as a Pre-Commit Gate
Section titled “Run Project Checks as a Pre-Commit Gate”oridecon test # run pytestoridecon lint # run rufforidecon project typecheck # run mypyoridecon project run-all # all checks- Use
--jsonflag on any command for machine-readable output - Generators create files relative to the project root; run from the project directory
- Migration files are timestamped and stored in the project’s migrations directory
- The dev server and run command auto-discover
create_app(); usemodule:attrsyntax to override