cnos onboard
cnos onboard
cnos onboard helps migrate existing config sources into CNOS without forcing an immediate app-code rewrite.
Auto-discover dotenv files
cnos onboardBy default CNOS scans the repo root for .env, .env.<profile>, and .env.*.example files.
It copies those files into CNOS source storage and prints the proposed value.* mappings.
Explicit source formats
cnos onboard --env .env.productioncnos onboard --yaml config/app.ymlcnos onboard --json config/settings.jsoncnos onboard --toml config/app.tomlcnos onboard --config config/app.ymlMaterialize values
Interactive mode prompts before writing values.
For automation:
cnos onboard --env .env.production --materializecnos onboard --yaml config/db.yml --source-onlyNon-interactive shells default to --source-only unless --materialize is passed explicitly.
Prefix imports
cnos onboard --yaml config/db.yml --prefix db --materializeThis maps:
host->value.db.hostport->value.db.port
Workspace-aware behavior
- Regular mode imports into the implicit
baselayer. - Workspace mode imports into the selected workspace.
- If no workspace is specified in workspace mode, CNOS defaults to
basewhen it exists.
Example:
cnos onboard --workspace api --env .env.api --materialize