Apps
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
This file covers the apps command family.
Commands
nomatron apps listnomatron apps createnomatron apps readnomatron apps updatenomatron apps deletenomatron apps plannomatron apps applynomatron apps destroy-jobsnomatron apps stack deploynomatron apps stack promotenomatron apps stack reviewnomatron apps stack batchesnomatron apps networks listnomatron apps networks createnomatron apps networks readnomatron apps networks updatenomatron apps networks delete
When To Use Them
- Use these commands when managing deployable applications inside an organization.
- Use them when binding a repo, cluster, and deployment trigger settings together.
- App
--repo-urlis required and acts as the default repository for jobs that do not set their own repository override.
How To Use Them
List apps in an organization:
nomatron apps list --organization acmeRead an app:
nomatron apps read --organization acme --slug apiExamples
Create an app:
nomatron apps create \
--organization acme \
--name API \
--slug api \
--repo-url https://github.com/acme/api \
--cluster-id cluster-uuid \
--ref mainUpdate how an app’s deployments are triggered:
nomatron apps update --organization acme --slug api --trigger-mode branch_commit --ref mainDeploy from matching Git tags instead of branch commits:
nomatron apps update \
--organization acme \
--slug api \
--trigger-mode tag \
--tag-pattern-type semver--tag-pattern-type is one of semver, prefix, suffix, or custom_regex; set --tag-pattern for every type except semver.
Delete an app:
nomatron apps delete --organization acme --slug apiPlan And Apply Several Jobs
Queue plans for several app jobs at once. New plans can only target the app’s first environment (the one with the lowest priority). Use apps stack promote to move releases on to later environments. In these examples the first environment is dev:
nomatron apps plan --organization acme --slug api --environment dev --allnomatron apps plan --organization acme --slug api --environment dev --jobs web,worker --ref mainPlanning a later environment fails with new stack deployments can only target the first environment; use promote stack for later environments.
Queue applies the same way. apps apply applies the latest approved (or approval-not-required) plan for each selected job in the environment you name:
nomatron apps apply --organization acme --slug api --environment dev --jobs web,worker--environment is required for plan and apply. Use --all to target every app job, or --jobs with comma-separated app job slugs. --ref and --commit-sha override the Git source. Applies start with the jobs in the first priority group; later groups follow in priority order.
Destroy An App’s Live Jobs
Create a destroy plan for every deployed Nomad job in the app:
nomatron apps destroy-jobs --organization acme --slug apiApplying the plan stops and purges the live Nomad jobs. The Nomatron app and job configuration stays, so you can redeploy later. The command asks you to type destroy to confirm; add --yes in automation. See Operations
for how destroy plans are approved and applied.
App Stacks
An app stack is all of an app’s jobs (or the ones you choose) moving through the app’s environments together. Each stack command creates or reviews one plan per job.
| Command | What it does |
|---|---|
apps stack deploy | Queues plans in the first environment. This is the same as apps plan, except --environment is optional and defaults to the first environment. |
apps stack promote | For each job, plans the latest successful release in the next environment of its promotion path. |
apps stack review | Approves or rejects the latest pending plan for every job in one environment. |
apps stack batches | Lists earlier stack batches and the state of each job in them. |
Deploy the whole stack to the first environment:
nomatron apps stack deploy --organization acme --slug apiAdd --jobs web,worker to limit the jobs (the default is every job), and --ref or --commit-sha to override the Git source.
Approve the pending plans in that environment:
nomatron apps stack review --organization acme --slug api --decision approve --comment "Release 2026-11"--environment defaults to the first environment. Jobs with nothing waiting show no_pending_plan. Service accounts cannot approve; a user who is an organisation member must record the decision. After approval, apply the plans with apps apply (or in the UI).
Promote to the next environment:
nomatron apps stack promote --organization acme --slug apiPromotion uses each job’s latest successful release and works out the next environment itself, so --environment, --ref and --commit-sha have no effect. It fails if a job has no successful release, has no next environment, or if the selected jobs do not share one promotion path.
List recent batches:
nomatron apps stack batches --organization acme --slug api --limit 20App Networks
apps networks manages an app’s Docker networks, which jobs bind to for app-scoped networking. App networks are part of Application Networking
(early access) and need Host Agents on the app’s cluster.
nomatron apps networks create --organization acme --app api --name backend --mode private --job-slugs web,worker
nomatron apps networks list --organization acme --app api
nomatron apps networks read --organization acme --app api --network-id <NETWORK_ID>
nomatron apps networks delete --organization acme --app api --network-id <NETWORK_ID> --yes| Flag | Used by | Meaning |
|---|---|---|
--app | all | App slug (required). |
--network-id | read, update, delete | Network ID (required). |
--name | create, update | Network name (required). |
--slug | create, update | Optional slug; defaults to a slug of the name. |
--mode | create, update | private (default), internal or existing. |
--addressing | create, update | automatic (default) or custom. |
--cidr | create, update | Network range; required with --addressing custom. |
--existing-name | create, update | Docker network name; required with --mode existing. |
--job-slugs | create, update | App jobs to bind, comma-separated. |
--yes | delete | Confirm the delete. |
Known issue in v0.1.7:
apps networks updateresets any setting you leave out: mode becomesprivate, addressing becomesautomaticand all jobs are unbound. Always pass the network’s current--name,--mode,--addressing,--cidror--existing-name, and the full--job-slugslist. See App Networks for the workaround.