orionis-installer creates applications from a selectable Orionis stack, with
Python 3.14.x, a project-local .venv and uv.lock. Its Python
module is orionis_installer and its executable is orionis.
The installer depends on CLI and configuration libraries. Orionis, database
drivers, cloud SDKs and Faker belong to the generated application's environment.
The English wizard groups application metadata and services into clear stages,
with descriptive stack choices, arrow-key navigation, visible defaults and immediate
validation. A constellation identity, responsive plan cards, a live installation
timeline and a status-aware completion panel guide the whole experience. Narrow
terminals and plain logs are supported; NO_COLOR and --no-color disable colors.
Install uv and Git. Python 3.14 or newer runs the installer; uv selects stable Python 3.14.x for the application and can obtain it according to its download and network policies.
When this distribution is available on your package index:
uvx --from orionis-installer orionis new
uvx --from orionis-installer orionis new blog
uvx --python 3.14 --from orionis-installer orionis new
uv tool install --python 3.14 orionis-installer
orionis new blog
orionis --help
orionis --versionuvx --python 3.14 selects the installer's interpreter. The application has an
independent environment. The framework can also provide an orionis executable;
invoke the installer through uvx --from orionis-installer orionis ... and use
Reactor through the application's Python. Do not overwrite existing executables
with force flags.
For a local build:
uv build
uvx --python 3.14 --from ./dist/orionis_installer-0.2.0-py3-none-any.whl orionis --version
uvx --python 3.14 --from ./dist/orionis_installer-0.2.0-py3-none-any.whl orionis new blogAfter checking prerequisites, the wizard requests:
- Application stack: Blank (
blank_1.x, the default) or SSR (ssr_1.x). - Application name, defaulting to
orionis-app;new blogsupplies it directly. - Description, defaulting to
A modern application built with Orionis Framework. - Optional author name and email.
- File storage drivers and, for
all, the default disk. - Database drivers and, for
all, the default connection. - Confirmation of the absolute destination, Python target, extras, stack and source branch.
Explicit options skip their corresponding questions. After installation, the
wizard asks about Git initialization (Yes), database migrations (No),
and Visual Studio Code (Yes), in that order. Ctrl+C cancels with exit code 130.
Without a TTY, use --no-interaction; help and version remain available.
Names use 1–100 ASCII letters, digits, dots, hyphens and underscores, with
alphanumeric endpoints. Path separators, traversal, controls and reserved
Windows names are rejected. Author names and descriptions support Unicode;
--path supports spaces and Unicode. Invalid names are diagnosed without silent
normalization. An existing destination is always rejected, even when empty.
orionis new blog --no-interaction
orionis new blog --stack Blank --no-interaction --migrate
orionis new portal --stack SSR --no-interaction --migrate
orionis new blog --no-interaction --git --no-migrate --no-open
orionis new analytics --no-interaction --storage s3 --database redshift
orionis new team --no-interaction --storage all --database all
orionis new blog --no-interaction --path "./Project with spaces" --author-name "Jane Doe" --author-email jane@example.comDefaults are the Blank stack, orionis-app, the description above, no author, local storage and
SQLite. Aggregate driver selections default to local storage and SQLite unless
specified otherwise. Git, migrations and the editor are skipped unless their
positive flags are provided. This mode never requests credentials.
--version, --no-color and --verbose are global options. --no-color and
--verbose also work after new. Other options belong to new:
| Option | Behavior |
|---|---|
new [NAME] |
Application name and default folder name. |
--stack blank|ssr |
Select the catalog repository and branch; names are case-insensitive. Defaults to Blank. |
--path PATH |
Final project location; its parent must exist. |
--description TEXT |
Application description. |
--author-name TEXT, --author-email TEXT |
Optional author metadata; empty values omit a field. |
--storage local|s3|azure|gcs|all |
File storage drivers to install. |
--default-storage local|s3|azure|gcs |
Active disk with all; defaults to local. |
--database sqlite|mysql|pgsql|oracle|sqlserver|redshift|all |
Database drivers to install. |
--default-database sqlite|mysql|pgsql|oracle|sqlserver|redshift |
Active connection with all; defaults to SQLite. |
--git / --no-git |
Initialize Git or skip it. |
--migrate / --no-migrate |
Run pending schema migrations or skip them. |
--open / --no-open |
Open Visual Studio Code or skip it. |
--no-interaction |
Apply safe defaults without reading input. |
--no-color |
Disable colors; also respects NO_COLOR, including an empty value. |
--verbose |
Show plan diagnostics without raw subprocess output or secrets. |
A default driver must be concrete. Without all, it can only repeat the selected
driver. There is no destructive --force option.
Edit the centralized STACKS dictionary in src/orionis_installer/models.py to
set the project and branch for each stack. The wizard derives its choices and
descriptions from this catalog; CLI selection, download and review all resolve
the same entry.
STACKS = {
Stack.BLANK: SkeletonSource(
repository="https://github.com/orionis-framework/skeleton",
branch="blank_1.x",
label="Blank",
description="A minimal foundation for building your application from scratch.",
),
Stack.SSR: SkeletonSource(
repository="https://github.com/orionis-framework/skeleton",
branch="ssr_1.x",
label="SSR",
description="A starting point for applications with server-side rendering.",
),
}To add a stack, add its machine value to Stack and its source to STACKS.
Sources use credential-free HTTPS repository URLs and explicit branch names.
Only the selected branch is cloned; a missing branch fails without falling back.
The installer does not create an .orionis-install.json metadata file in the
application. Stack selection chooses a source: application features come from
that branch.
| Storage selection | Orionis extra |
|---|---|
local |
None |
s3 |
s3 |
azure |
azure |
gcs |
gcs |
all |
storage |
| Database selection | Orionis extra |
|---|---|
sqlite |
None |
mysql |
mysql |
pgsql |
pgsql |
oracle |
oracle |
sqlserver |
sqlserver |
redshift |
redshift |
all |
database |
Every application includes factories. Extras are sorted and deduplicated:
local + SQLite uses factories; S3 + Redshift uses factories,redshift,s3; both
aggregate selections use database,factories,storage. Aggregate extras install
drivers while migrations use one concrete connection. Installing an SDK creates
no buckets, accounts, permissions or infrastructure.
The installer preserves TOML comments, valid dependency groups, the application's
version and the skeleton's Orionis requirement. The application remains
unpackaged through tool.uv.package = false. .env.example is preferred;
env.example is supported. Only verified configuration keys are changed, and the
example remains intact. External connections and cloud storage require subsequent
credential configuration.
APP_KEY is generated by the framework using the project interpreter, without
--force; existing keys are preserved. --migrate executes reactor migrate
through that same interpreter after verifying the selected connection. SQLite
works immediately; external databases require complete connection settings.
Schema migrations run independently of seeders. To populate initial data, review
the application's seeders and credentials, then invoke reactor migrate --seed
manually from the generated project.
The installer clones the catalog's selected repository and branch into a sibling staging
area, validates its checked-out branch and revision and removes only that clone's
.git. It configures files before publication and then runs one main
uv sync --python 3.14 at the final location. .venv is never moved from staging.
Python, the installed Orionis distribution, extras, lockfile, APP_KEY and effective
configuration are checked before reporting success.
Failures before publication clean only owned staging files. Failures after
publication preserve the project and report recovery steps. The operation is not
fully atomic across files, dependencies and database changes. An inherited uv
workspace or custom UV_CONFIG_FILE is rejected to protect isolation; use uv's
conventional configuration or documented environment variables for network,
index and download policies.
| Exit code | Meaning |
|---|---|
0 |
Application ready; requested operations completed or skipped, or confirmation declined. |
1 |
Critical download, configuration, publication or installation failure. |
2 |
Invalid arguments, missing prerequisites or an incompatible contract. |
3 |
Project created, but a requested post-install operation failed. |
130 |
User cancellation or end of input. |
Git runs only git init. It creates no commit, remote or push. Git and editor
failures preserve the project; independent post-install operations still run
unless cancelled. A failed migration may have changed data: inspect the database
before retrying. No automatic rollback or migrate:fresh is performed.
For a preserved project, review its configuration before recovering:
cd blog
uv sync --python 3.14
uv run python -B reactor key:generateStart a ready application:
cd blog
uv run python -B reactor serveApply pending schema migrations:
uv run python -B reactor migrateAfter reviewing the connection and securing the seeders, populate initial data:
uv run python -B reactor migrate --seeduv sync --locked --python 3.14
uv run --no-sync ruff check .
uv run --no-sync ruff format --check .
uv run --no-sync mypy
uv run --no-sync pytest --cov=orionis_installer --cov-report=term-missing
uv build
uv run --no-sync python scripts/verify_distribution.pyNormal tests use controlled terminal input, disposable processes and explicit fixtures. Offline integration uses a local Git repository with simulated uv and framework responses; it does not require Orionis or a network connection. The distribution verification script installs the wheel into a clean temporary environment and creates a disposable application through real uvx.
Enable the real smoke test explicitly. It uses the official skeleton, uv and a disposable SQLite databases for both stacks, through the installer's migration path, without executing seeders:
ORIONIS_REAL_SMOKE=1 uv run --no-sync pytest -m smoke -v$env:ORIONIS_REAL_SMOKE = '1'
uv run --no-sync pytest -m smoke -v
Remove-Item Env:ORIONIS_REAL_SMOKECI checks Python 3.14 on Ubuntu, Windows and macOS, including lint, formatting, types, tests, build and the clean-wheel entry point. Runtime checks on an individual machine do not verify the other platforms or external cloud/database services. CI does not publish the package.
Follow the English, typed documentation style of Orionis commands and configuration entities. Use concise triple-double-quoted NumPy docstrings for every function and method, including private helpers and callbacks. Start with an imperative sentence; include relevant Parameters, Returns, Yields and Raises sections, without an Examples section. Ruff enforces the NumPy convention and D401; an AST-based test checks documentation coverage for nested and private functions as well.
Source lives in src/orionis_installer; unit and integration tests live in
tests; distribution verification lives in scripts. Message catalogs remain centralized in messages.py and
ui/messages.py. Dependency constraints are declared in pyproject.toml
and development resolutions in uv.lock. License: MIT.
Update the version in pyproject.toml and src/orionis_installer/__init__.py
together before a release. Configure PyPI authentication through
UV_PUBLISH_TOKEN or another supported uv authentication method.
Run the root release script from PowerShell:
.\release.ps1The script requires main and an origin remote. It reads the manifest version,
cleans old builds, synchronizes Python 3.14, builds wheel/sdist, publishes to PyPI,
stages all changes, commits the release and pushes main. Versions with a major
component of at least 1 also create and push v<version> after checking for tag
conflicts. Successful releases clean generated builds. Failures stop the remaining
steps and retain artifacts for inspection or retry; completed uploads and Git
operations are not rolled back.