ankra application
Connect application source repositories to Ankra for analysis, packaging, and deployment.ankra application add
Add an application by reading a local Git checkout. The command detects the GitHub repository from the selected remote, uses the remote’s default branch when available, and falls back to the current branch. It selects an available GitHub credential automatically when the choice is unambiguous. Without--registry-url the application publishes to the organisation’s own
Ankra registry project, and the command says so on success. Pass it to publish
to a container image registry you already operate instead. Declare it here
rather than afterwards: the setup job generates the build workflow from the
declaration the application is created with, so a registry added later leaves
a workflow that logs in with the wrong one - which is also why, when other
applications in the organisation publish somewhere else, this command names
those registries before the analysis finishes.
ankra application ai-config
Read, set, or reset which AI lanes run on this application’s repository (pull request review, demo URL, and the rest), on which model, and within what limits. An application follows the organisation’s defaults until an override is set here.ankra application ai-config clear
Reset the application to the organisation’s AI defaultsankra application ai-config get
Show the application’s effective AI lane configurationankra application ai-config set
Replace the application’s AI lane configuration with a JSON document. Start from the current one: ‘ankra application ai-config get <id> -o json’, edit it, and pass the file back with--file (or ’-’ to read stdin).
ankra application alerts
List, create, change and delete the alerts of one application. An application alert watches one environment of the application and has one condition on the application’s own metrics. It also shows under ‘ankra alerts rules’, where you can turn it off and on. An organisation alert rule that watches one of the environment’s clusters is listed here too, but it is changed under ‘ankra alerts rules’. Examplesankra application alerts create
Create an alert on one environment of an application. An environment with nothing running on it yet is accepted, so you can set an alert before the first deploy. It reads unknown until something runs there. The platform refuses the alert when the organisation has no alert destination yet, or when the application already has 50 alerts. The alert fires when the metric reads above the threshold for--hold-minutes minutes in a row (1 to 60). The metrics are the ones the
application’s charts draw for the environment:
--send-to takes 1 to 5 alert destination ids, comma-separated or repeated.
‘ankra alerts destinations list’ shows them. --severity is critical, warning
or info.
ankra application alerts delete
Delete one of an application’s own alerts, with its rule. The alert stops telling anyone, and it cannot be undone. The command names the alert and asks before it deletes it;--yes skips the question. To stop an
alert for a while and keep it, turn it off with ‘ankra alerts rules disable
<alert-id>’ instead.
ankra application alerts list
List an application’s alerts and what each one is doing now. The application’s own alerts come first, oldest first, at most 100. With--environment the list holds the alerts on that environment and the
organisation alert rules that watch one of its clusters.
STATE is what the platform reports for each alert:
ankra application alerts update
Change one of an application’s own alerts. Pass only what changes. The command reads the alert first and keeps every field you leave out. The alert’s id is in ‘ankra application alerts list’. An organisation alert rule is changed under ‘ankra alerts rules’ instead, and so is turning an alert off or on. The alert fires when the metric reads above the threshold for--hold-minutes minutes in a row (1 to 60). The metrics are the ones the
application’s charts draw for the environment:
--send-to takes 1 to 5 alert destination ids, comma-separated or repeated.
‘ankra alerts destinations list’ shows them. --severity is critical, warning
or info.
--send-to replaces the whole list of destinations.
ankra application auto-deploy
Inspect and set whether pushes to the tracked branch deploy themselves. With auto-deploy on, a build Ankra observes on the application’s tracked branch is rolled out to its deployments unattended. With it off, a push still builds - it just waits for an explicit ‘ankra application deploy’. This switch is application-wide. Which branches each environment follows, and whether pushes deploy to that environment, is ‘ankra application environments set’.ankra application auto-deploy get
Show whether auto-deploy is on, and the newest build seen on the tracked branch. The newest observed build comes back with the switch so you can tell an auto-deploy that is off from one that is on but has had nothing to pick up.ankra application auto-deploy set
Turn auto-deploy on or off.--enabled is required and must be given explicitly: turning unattended
deployment on and turning it off are both deliberate acts, and neither is a
safe default to infer from a bare ‘set’.
ankra application auto-fix-builds
Inspect and set whether Ankra runs its fix-build lane when a build of the application’s tracked branch fails: deterministic repairs first, then an agent that opens a pull request. It is on by default and bounded to one run per application per day; the switch exists to opt out, and is read fresh on every failed build.ankra application auto-fix-builds get
Show the settingankra application auto-fix-builds set
Turn it on or off.--enabled must be given explicitly: on and off are both
deliberate acts, and neither is a safe default to infer from a bare ‘set’.
ankra application autonomy
Inspect and set who runs an application: for each of its environments, in each area (keep_it_up, ship_changes, keep_it_safe, keep_costs_down, keep_it_current, fix_my_code), whether you run it, you and Ankra run it together, or Ankra runs it. ‘pause’ stops Ankra’s autonomous actions for the application without changing any level; ‘resume’ lifts it. The organisation-wide stop is ‘ankra ai autonomy’.ankra application autonomy actions
List what Ankra did on its own across every application, newest first (at most 20): auto-remediation runs on an application’s placements, Cost Autopilot actions the autopilot approved itself, and build fixes the automatic lane sent. Each action names its applications, the setting that allowed it and whether it can be undone. A source with more actions than it returned, or one that could not be read, is named.ankra application autonomy get
Show the effective level of every environment and the areas that differ from it. -o json carries the whole answer: the rule that decided each area, the limits, the stored layers a ‘set’ starts from, and the application-wide gate.ankra application autonomy pause
Pause what Ankra does unasked for this application. From the next dispatch auto-remediation does not act on its namespaces and Cost Autopilot does not file or run changes on its clusters; a remediation run already acting there stops before its next mutating step. Chat and read-only investigation keep working. ‘ankra application autonomy resume’ lifts it.ankra application autonomy pause-status
Show whether a person paused Ankra’s autonomous actions for the application, who did and why.ankra application autonomy resume
Lift the application’s pause, so what Ankra does unasked on its placements runs again under the application’s own autonomy setting.ankra application autonomy set
Store the application’s own “who runs it” layer, or with--environment one
environment’s, which applies over the application’s.
The platform stores a layer whole. This command starts from the layer that is
stored and changes only what you name, as flags or as the level, areas and
limits members of -f (YAML or JSON, - reads stdin), and sends the layer it
read along as the expected state: if someone changed it in between, the
platform answers 409 and nothing is written.
Anyone who may write the application may set anything within what the
organisation allows; asking for more needs an organisation admin. Confirms
first; --yes skips the prompt.
ankra application backup
Back up one of an application’s deployments now. The capture is dispatched by the platform, so the command answers with the restore point in ‘creating’ and the run that will seal it. With--wait it
follows that run to completion.
The deployment is named by the cluster it runs on; Ankra resolves which stack
that is, and the restore point it takes is the same artifact
‘ankra cluster stacks restore-points list’ shows for that stack.
ankra application backups
Show an application’s backup protection, deployment by deployment. One row per cluster the application is deployed to: whether that deployment carries a database, whether its data is protected, when it was last backed up and when it is next scheduled, and what its backups keep: since when it is backed up, how long backups are kept, and how many are kept now with the oldest of them. -o json and -o yaml print the platform’s answer as it was sent, the ‘keeping’ block of each deployment included. The verdict has three values and none of them is a boolean: ‘unknown’ means Ankra could not establish whether this deployment is protected, which is not the same answer as ‘unprotected’.ankra application branch-files
List the tracked files on the setup branchankra application branches
List the application repository branchesankra application build
Build an application’s image on Ankra’s builders. Ankra clones the commit, resolves a recipe for it (the repository’s own Dockerfile, else a generated one, else buildpacks), builds it, and pushes the image to the registry the application publishes to - without the repository’s CI running at all. The routes answer 404 for organisations without the platform_builds feature flag, which is off by default while the lane rolls out. Ask Ankra support to enable it for your organisation.ankra application build get
Show one platform build. A failed build carries an error_class saying whose failure it was. build_failed is the repository’s - the recipe did not build - and is the one worth reading the error_message for. clone_auth and recipe_missing are the application’s configuration. push_failed, timeout and capacity are Ankra’s, and are already visible to Ankra without anyone reporting them. build_unknown is Ankra’s too, but not visible the same way: the build ran and failed in a way the builder could not classify, and its error_message - the end of the build’s output - is the only copy of that output, so include it when reporting the failure.ankra application build list
List the application’s platform builds, newest firstankra application build request
Show a queued build request and the build it became. ‘start’ answers with a request id before there is a build to read: the build row is created when the scheduler claims the request. This is how a caller follows the gap - status is pending until it is claimed, and build_id names the build from that point on.ankra application build start
Queue a build of the application’s image.--commit is required and must be a full 40- or 64-character commit sha. An
abbreviation is refused rather than resolved: the queue deduplicates on the
string it is given, so a full sha and its own prefix would be two keys for one
commit and build it twice.
The queue converges on the commit while a request is live. Asking twice joins
one build, and the answer’s already_requested reports that it did.
With --wait the command follows the request through to the finished build and
exits non-zero if the build failed, so a pipeline step can be exactly “build
this commit, and fail if it does not build”.
ankra application chart-versions
List an application’s published chart versionsankra application code-security
Show source code security findingsankra application container-security
Show container image vulnerability findingsankra application cost-estimate
Price a proposed change to an application as the monthly change to its cost, before making it.--change names the kind:
--cluster and --namespace name the deployment, or for new_environment and
database the cluster the workload would run on. A change that cannot be priced
says why instead of answering zero.
ankra application credential
Inspect and re-bind the GitHub credential an application’s repository calls ride on. An application is bound to one GitHub credential of the organisation; its App installation must reach the repository for builds, deploys and Actions secrets to work. Move an application onto another credential when its installation lost - or never had - access to the repository.ankra application credential get
Show the GitHub credential an application is bound toankra application credential set
Re-bind an application to another GitHub credential of the organisation. The credential must exist. Whether its App installation reaches the repository is reported in the answer (resolved / message) rather than refused, since a re-bind is usually how an application gets off an installation that cannot.ankra application data-migration
Follow the runs that move an application’s data off the vendors it used - a database, an object store - into services on its cluster, and roll one back. A run copies the data, makes every vendor source read-only, switches the application’s environment to the in-cluster services in one change, and keeps the vendor sources read-only for a rollback window. Inside that window, ‘ankra application data-migration rollback’ puts the previous environment back and makes the vendor sources writable again. Ankra never deletes data at a vendor: once the window has closed, the run hands you the teardown checklist.ankra application data-migration get
Show one data migration run step by stepankra application data-migration list
List an application’s data migration runsankra application data-migration rollback
Roll a data migration back: the application’s environment goes back to what it was before the cutover, and every vendor source the run made read-only is made writable again. Nothing is deleted at the vendor or in the cluster. A rollback is possible from the moment the cutover starts until the rollback window closes. The platform records the request and carries it out on its next pass; follow it with ‘ankra application data-migration get’. It is refused before the cutover (nothing at a vendor changed yet), after the window closed, for a finished run, and while a rollback is already requested or running. Requires permission to deploy applications on the run’s cluster.ankra application database-backup
Set the application’s database backup default: whether a deployment of it that carries a database is protected without anyone asking. ‘ankra application backups’ reads it, as database_backup, beside each deployment’s protection. Needs backups.manage.ankra application database-backup set
Turn it on or off.--enabled must be given explicitly: on and off are both
deliberate acts, and neither is a safe default to infer from a bare ‘set’.
ankra application delete
Delete an applicationankra application demo
Deploy, inspect, and stop short-lived demo workspaces for a branch or pull request of an application.ankra application demo build
Check whether a branch has a demo-ready container imageankra application demo config
Read or update the application’s saved demo defaultsankra application demo config get
Show the saved demo defaults (env, database, migration command, extensions)ankra application demo config rotate-password
Mint a new shared password for every demo of the application that launches behind Ankra’s edge password guard. The password is printed exactly once: Ankra keeps only its bcrypt hash and never shows it again. Running demos keep the previous password until their next redeploy (a pull request push redeploys its preview). Turn protection on first with ‘demo config set--protected’.
ankra application demo config set
Update the application’s saved demo defaults. The command fetches the current configuration first and applies only the flags you set:--env
entries override by name, everything else is carried forward.
ankra application demo deploy
Deploy a short-lived demo workspace for a branch or pull request. All flags are optional; only the flags you set are sent, so the backend applies its own defaults for the rest. A monorepo demo runs every recorded component as its own pod by default.--component narrows that to the components you name, and the per-component
override flags (--component-tag, --component-port, --component-path) tune
one component each. Because selection and overrides ride the same request
field, an override may only name a component that --component selects: to
tune one component of a full launch, list them all.
ankra application demo detail
Show a demo workspace’s record, its components, provisioning steps, and failure detail. The default rendering summarises the demo; -o json or -o yaml emit the full payload, including the resource inventory and the Kubernetes events behind a stalled step.ankra application demo fix
Dispatch the AI pre-setup mission for a failed demoankra application demo fix-build
Fix a branch that has no demo-ready container image. This is what to run when ‘demo build’ reports that no image exists for a branch. Ankra applies its own deterministic fixes first (publish-readiness auto-fix, failed-run rerun, failed-setup retry) and, when those cannot produce an image, dispatches a one-shot mission agent that investigates the repository and opens a pull request with the fix. The answer points at the dispatched mission rather than carrying its result, so follow the agent run it names.ankra application demo list
List the application’s active demo workspaces, one row each, with the components every demo runs. -o json or -o yaml emit the full payload, including the TTL policy and the staging cluster’s status.ankra application demo logs
Fetch a bounded tail of the demo container’s logs. One-shot: the command returns after the fetch instead of following the stream. A multi-component demo runs one pod per component, and without a selector the backend reads whichever pod it finds first.--component picks the pod
belonging to that component; --pod addresses one by name (from
ankra application demo detail) when a component has more than one.
ankra application demo stop
Stop and tear down a demo workspaceankra application deploy
Deploy a packaged application to a target cluster.--cluster takes the cluster’s name, as ankra cluster list shows it, or its ID.
Use --set key=value (repeatable) to pass deploy inputs declared by the
application’s chart. A value set this way stays the deployment’s own: a later
change to its default in .ankra/ankra.yaml does not reach it.
--reset <input> (repeatable) hands an input back to the repository: the
deployment stops keeping its own value and follows the default in
.ankra/ankra.yaml from this deploy on, the same as “Use repository default” on
the deploy form. ankra application deployments shows which inputs a deployment
keeps as its own (source override). An input cannot be set and reset in one
deploy, and the platform refuses an input that has no default.
Without --set image_tag=<tag> the platform deploys the newest build it
recorded. When it has no tag recorded for that build, the command deploys the
newest published build of the tracked branch instead (or the newest image in
the application’s registry) and says on stderr which tag it chose.
--environment names the environment the deployment belongs to.
--follow-branches gives that environment a branch rule from the start, so
pushes to matching branches deploy to it: for example main for production and
develop for development. It needs --environment.
ankra application deployments
List an application’s cluster deploymentsankra application env-secrets
Manage the environment secrets an application’s manifests read. The keys come from the application’s generated manifests. Setting a value stores it; it is sealed into a running deployment only when you apply it, so a set followed by no apply changes nothing about the workload. Values never travel outbound: ‘list’ reports which keys exist and whether each has a value, never the value itself.ankra application env-secrets apply
Seal the stored environment secrets into the running deployments. Re-seals the values Ankra already holds into every deployment of the application and rolls the workloads that read them. It sends nothing: the values applied are the ones already stored. The endpoint answers 409 when the request does not apply to this application’s state - nothing set, not deployed yet, tearing down, or a deployment that cannot be sealed - and the reason is reported as the error message.ankra application env-secrets delete
Clear the stored value of one environment secret. The key stays declared by the application’s manifests; only the value Ankra holds for it is removed. Deployments already running keep the value that was sealed into them until the next apply.ankra application env-secrets list
List the environment secret keys an application needs, and their state. Reports the keys the application’s generated manifests declare and whether each one has a stored value. The values themselves are never returned.ankra application env-secrets set
Store the value of one environment secret. Pass the value with--value, pipe it on stdin, or omit both to be prompted for
it without echo. Prefer stdin or the prompt: a --value on the command line is
recorded in your shell history and, on a shared host, in the process table.
Storing a value does not reach a running workload. Run ‘env-secrets apply’ to
seal the stored values into the application’s deployments and roll them.
ankra application environments
List an application’s environments and the branches each one follows. FOLLOWS shows the environment’s branch rule, ‘<branch> (tracked)’ when it has no rule and follows the application’s tracked branch, or ‘manual’ when pushes do not deploy to it. A branch rule is a list of glob patterns, as in a CI ‘branches’ filter: ’*’ matches within one path segment, ’**’ also crosses ’/’, ‘!pattern’ removes what earlier patterns matched, the last match wins, and a list that starts with ’!’ means every branch except those. An environment without a rule follows the application’s tracked branch.ankra application environments set
Set the branches an environment follows, or whether pushes deploy to it. The environment is named by its name (case-insensitive) or its id, as listed by ‘ankra application environments’.--branches (or --follow) sets the rule and
turns deploying on push on for the environment, since a rule on an environment
that does not deploy pushes would never deploy anything; add --disable to save
the rule with pushes still off. --clear (or --none, or --branches "") removes
the rule so the environment follows the tracked branch again and keeps its
switch as it is. --enable or --disable alone turns deploying on push on or off.
Changing a rule never deploys by itself: the next push to a matching branch
does.
A branch rule is a list of glob patterns, as in a CI ‘branches’ filter:
’*’ matches within one path segment, ’**’ also crosses ’/’, ‘!pattern’
removes what earlier patterns matched, the last match wins, and a list that
starts with ’!’ means every branch except those. An environment without a
rule follows the application’s tracked branch.
ankra application files
Commit changes to the application’s setup pull request. Each--file maps a repository path to a local file whose contents are
uploaded. Use --delete to remove a tracked path.
ankra application get
Show an application’s detailankra application import
Import an application from a source that has no Git repository of its own. Ankra converts what you give it, creates a GitHub repository for it, commits the result and registers the application, so the same setup pull request, build and deploy lane that follows every registration takes over.ankra application import claude-design
Turn a Claude Design export into a deployable application. <path> is what you exported from claude.ai/design: a directory holding the artboards (<Name>.dc.html), canvas.json and images, a zip of them, a single artboard, or a saved canvas page (.html). Ankra converts the artboards into a static site, creates a GitHub repository under the credential’s account (or--owner), commits the site with a Dockerfile, and registers the application.
Artboards that depend on the Claude Design runtime - template holes, sc-for,
sc-if, dc-import or a data-dc-script - are kept as authored and reported as
warnings; they may not render as they did on the canvas.
Running the same import again is safe: the repository keeps a provenance
record, and an unchanged export registers without a second commit.
The lane ships behind the claude_design_import organisation feature flag,
which is off by default while it rolls out: the platform answers 404 for
organisations without it, and this command says so. Ask Ankra support to
enable it for your organisation.
ankra application installations
List an application’s installation intentsankra application jobs
List an application’s platform jobsankra application launch-plan
Show the Launch Plan Ankra resolved for an application from an analysed commit: for each external service its lock-in tier, the default choice and the alternatives; where each environment variable’s value comes from; the migration step, port and exposure; and the decisions only a person can make. The plan is resolved for the latest analysed commit unless--commit names one,
and for the target Ankra picks unless --cluster names one. --backup-vault and
--data-migration-choice select the data move the plan describes; without them
the plan keeps every vendor and moves nothing. The command only reads: the
runs themselves are ‘ankra application data-migration’.
It needs the applications.read permission. The plan is printed as JSON, or
YAML with -o yaml.
ankra application list
List applicationsankra application log-searches
List, save, replace and remove the searches saved for an application’s Logs. These are the searches in the Logs page’s “Saved searches” menu. A saved search belongs to the application: everyone who can read the application sees it, and anyone who can change the application can replace or remove it. An application keeps at most 50, and no two whose names read the same with capitals aside. The platform keeps a search; the Logs page runs it. Examplesankra application log-searches list
List the searches saved for an application’s Logs, by name, with what each one searches, who saved it and when. A search whose stored query the platform no longer accepts is listed and says so; replace it or remove it. -o json and -o yaml print the platform’s answer as it was sent.ankra application log-searches remove
Remove a search saved for an application’s Logs. It leaves the Logs page’s menu for everyone, and it cannot be undone. <search> is the search’s name or its id, as ‘log-searches list’ shows them. The command names the search and asks before it removes it;--yes skips the
question. Exit codes: 3 when the application or the search is not there, 4
when you answer no, 7 when your role may not change the application.
ankra application log-searches replace
Replace the name or the query of a search saved for an application’s Logs. <search> is the search’s name or its id, as ‘log-searches list’ shows them.--name gives a new name. Any query flag gives the whole new query: what the
search looked for before is not kept, so give every part of it again. What
you leave out of the two stays as it is. A search whose stored query the
platform no longer accepts needs a new query.
The query is what the search looks for, as the Logs page searches:
--level, --copy and --filter can be given more than once; a query holds at
most 20 filters. With no time range the search keeps the range the page
shows when it is used. --file reads the whole query document instead: JSON
with text, filters and span, as each search’s query in ‘log-searches list
-o json’. --file - reads it from stdin.
Exit codes: 2 when the platform refuses the name or the query, the name is
taken or the application keeps as many searches as it may (the platform’s
sentence says which); 3 when the application or the search is not there; 7
when your role may not change the application.
ankra application log-searches save
Save a search for an application’s Logs. It shows in the Logs page’s “Saved searches” menu for everyone who can read the application.--name is 1 to 80 characters. The platform trims it and keeps one space
between words.
The query is what the search looks for, as the Logs page searches:
--level, --copy and --filter can be given more than once; a query holds at
most 20 filters. With no time range the search keeps the range the page
shows when it is used. --file reads the whole query document instead: JSON
with text, filters and span, as each search’s query in ‘log-searches list
-o json’. --file - reads it from stdin.
With no query flag the search finds every line in the time range the page
shows.
Exit codes: 2 when the platform refuses the name or the query, the name is
taken or the application keeps as many searches as it may (the platform’s
sentence says which); 3 when the application or the search is not there; 7
when your role may not change the application.
ankra application manifest-addon
Inspect, install and withdraw add-ons published from an application’s manifests. Publish one with ‘ankra application publish-addon <application-id>’ and find its id with ‘ankra application published-addon <application-id>’. These commands take that add-on id, not an application id.ankra application manifest-addon delete
Delete a manifest add-on and undeploy every installation of it. This is the most consequential of the three and the least reversible: it does not only withdraw the catalog entry, it undeploys the workloads installed from it on every cluster. Use ‘unpublish’ to withdraw the entry and leave those running.ankra application manifest-addon diff
Compare two published versions of a manifest add-on.--to names the version to compare; --from names what to compare it against,
defaulting to the version published before it. --path narrows the comparison to
the named manifests and may be repeated.
ankra application manifest-addon get
Show a published manifest add-on: its catalog entry, published versions, and what it declares.ankra application manifest-addon install
Install a published manifest add-on onto a cluster.--cluster-id is required. --namespace and --version default from the add-on’s
own descriptor. --input answers an input the published manifests declare and
may be repeated as --input key=value.
ankra application manifest-addon unpublish
Withdraw a manifest add-on from the catalog, leaving installations running. Nobody can install it again afterwards. What is already installed from it keeps running - use ‘delete’ if you want those undeployed too.ankra application overview-layout
Show and change the layout of an application’s Overview page. The Overview shows Ankra’s own layout until the team saves a version of its own. Every saved version is kept: you can put an earlier one back, or go back to Ankra’s layout, and the saved versions stay listed. A layout is a canvas spec of schema_version 2 (JSON). A summary card is an ApplicationCard element whose props.card is one of health, environments, services, cost, safety, releases, runs or backups; a chart binds a dataset of the application with params.application set to the application’s id. The platform checks a layout before it saves it and refuses one that breaks a rule, with the reason. Examplesankra application overview-layout put-back
Put an earlier version back on the application’s Overview. The platform saves its layout as a new version by you and puts that on the page; the earlier version stays as it was. ‘ankra application overview-layout versions’ lists the version ids.--base is the id of the version the Overview showed when you made the change
(‘ankra application overview-layout show’ prints it). Leave it out when the
Overview showed Ankra’s own layout. When the Overview changed since, the
platform changes nothing: the command prints the platform’s sentence and what
the Overview shows now, and exits 1.
The layout is checked by today’s rules, so the platform refuses a version
that a rule added since would refuse, and says why.
ankra application overview-layout save
Save a layout from a file as a new version of the application’s Overview, and put it on the page.--file - reads the layout from stdin.
--base is the id of the version the Overview showed when you made the change
(‘ankra application overview-layout show’ prints it). Leave it out when the
Overview showed Ankra’s own layout. When the Overview changed since, the
platform changes nothing: the command prints the platform’s sentence and what
the Overview shows now, and exits 1.
The platform also refuses a layout that breaks one of its rules (it is not a
canvas spec of schema_version 2, it is over 65536 bytes or 64 cards, it names
a card the Overview does not offer, or a chart binds another application’s
data) and says why. Nothing is saved then.
ankra application overview-layout show
Show what an application’s Overview shows now: Ankra’s own layout, or the version the team saved, with its id, who saved it and when, and its cards in the order the page draws them. Ankra draws its own layout on the page and keeps no version of it, so there are no cards to list for it.--content prints only the saved version’s layout,
so it can be written to a file, changed and saved again; -o json prints the
platform’s answer.
ankra application overview-layout use-ankra
Put the application’s Overview back on Ankra’s own layout. No version is written or removed: every saved version stays listed and can be put back. When the Overview already shows Ankra’s layout, nothing changes.--base is the id of the version the Overview showed when you made the change
(‘ankra application overview-layout show’ prints it). Leave it out when the
Overview showed Ankra’s own layout. When the Overview changed since, the
platform changes nothing: the command prints the platform’s sentence and what
the Overview shows now, and exits 1.
ankra application overview-layout versions
List the saved versions of an application’s Overview, newest first, with who saved each and when, and which one the Overview shows now. The platform sends one page at a time, 25 versions unless--limit says
otherwise (at most 100). When more are kept, the command says so on stderr and
prints the --cursor that reads the next page.
ankra application pipeline
Manage the application’s pipelineankra application pipeline artifacts
List a pipeline run’s stored artifactsankra application pipeline artifacts download
Download a stored artifactankra application pipeline cancel
Cancel a pipeline run that has not concluded. A run that had started stops its main and on_failure stages, then runs its finally stages before it concludes cancelled. While they run the run reads “running” and “cancelling”. A run that never started concludes at once.--force skips the finally stages: the run concludes cancelled at once. On a
run that is already cancelling it stops the finally stages still running.
Cancelling such a run again without --force is refused.
ankra application pipeline convert
Convert an application that still builds from a GitHub Actions workflow onto Ankra Pipelines, with one call. Ankra reads the workflow, converts it to a .ankra/pipeline.yaml, stores that as the application’s pipeline definition of record and builds the next push through it. It switches the generated workflow off on GitHub so the two never build the same commit twice, and opens a pull request that commits the pipeline file and removes Ankra’s generated workflow file. A workflow the repository wrote itself is never touched. Nothing about building waits on the pull request merging.--keep-workflows leaves the generated workflow file in the repository (it stays
switched off). Calling again while the pull request is still open answers the
same conversion; an application already on Ankra Pipelines is refused with
nothing to convert.
ankra application pipeline definition
Manage the application pipeline’s definition of recordankra application pipeline definition get
Show the pipeline definition of recordankra application pipeline definition put
Store a pipeline definition as the definition of recordankra application pipeline get
Show a pipeline run’s detail - or wait for it to conclude, or watch it. Name the run by its id, or select it by what you know about it. Push and pull request runs are started by the webhook, so a CI job or an agent usually knows the commit rather than the run id:--head-sha, --branch and --trigger narrow
the pipeline’s runs the way ‘pipeline list’ filters them. Exactly one match is
that run; when several match, --latest takes the newest, and without it the
command lists them instead of guessing. --latest on its own is the pipeline’s
newest run.
--wait blocks until the run concludes, then prints its final detail. --watch
prints every state change of the run and of each of its steps as it is seen,
until the run concludes; with -o json each change is one JSON object on its
own line, carrying the run or step as the platform answered it. --timeout
bounds either one; without it they wait as long as the run takes. When a
selection matches no run yet, --wait and --watch wait for one to appear - the
webhook that creates it can land a moment after you ask - for up to
--timeout, or ten minutes when no --timeout is set.
Exit codes: 0 when the run succeeded; 1 when it concluded any other way, or
the platform could not be read; 2 when a selection matches several runs and
--latest was not given; 3 when nothing matches; 5 when --timeout ran out or,
with --exit-code, when the run has not concluded yet. Without --wait, --watch
or --exit-code the command exits 0 whatever the run’s outcome, as it always
has.
Status and outcome (-o json): ‘status’ is the lifecycle, never the verdict.
A run’s status is queued, running or concluded; a step’s is blocked (waiting
on its dependencies), pending (ready, not yet claimed), running or concluded.
How the work ended is the separate ‘outcome’ field, which is null until the
status is concluded and then always one of: success, failure (the work
itself failed), cancelled, timed_out, skipped (it never ran - a dependency
did not succeed, a condition or the trigger filter excluded it) or
infra_error (Ankra failed, not the work). The same two fields with the same
vocabulary sit on the run and on each step, mirroring GitHub Actions’
status/conclusion split - so a monitor that filters on status finds every
finished run under concluded, and must read outcome for whether it passed.
The human-readable Status line and STATUS column print the outcome once
there is one and the status until then, with a glyph that says which:
✓ success, ✗ failure / timed_out / infra_error, ⊘ cancelled, ○ skipped, and
⟳ only for a run or step that has not concluded (○ for a blocked step).
Superseded runs: a run cancelled because a NEWER run took its concurrency
group reads ‘superseded’ rather than ‘cancelled’ - on the Status line, in
the STATUS column, on the last line of --watch and in the conclusion --wait
reports - and ‘pipeline get’ names the run that took its place. Nobody
stopped that run, and the run worth looking at is the newer one. Only the
word differs: --wait, --watch and --exit-code exit 1 for a superseded run as
for any cancelled one. In -o json the fields are ‘error_class’
(“superseded”), ‘superseded_by_run_id’ and ‘superseded_by_run_number’;
‘outcome’ stays “cancelled”, so a script filtering on outcome alone still
finds these runs and must read the class to tell them from a run somebody
cancelled.
Cancelled runs (-o json ‘cancelled_by’, ‘cancel_reason’, ‘cancelled_at’;
the Cancelled line): who stopped a run, why and when. ‘cancelled_by’ is the actor
in the same form ‘requested_by’ uses - “user:<id>” for a cancel pressed in
the portal, the CLI or the API, “github:<login>” for the Cancel action on a
pull request’s check run, “concurrency:<run id>” for a supersession,
“merge_train:<entry id>” for the merge train - and ‘cancel_reason’ is one of:
ankra application pipeline list
List the application’s pipeline runsankra application pipeline logs
Show a pipeline step’s outputankra application pipeline rerun
Open a new run from a run that already happened. The new run is a fresh run, not a retry of the old one: the old run’s outcome stays the record of what happened. The new run is recorded with trigger ‘rerun’, and ‘rerun_of_run_id’ ties the two together. A re-run repeats the original event. A re-run of a push run is planned as a push, so its push-only stages run. A re-run of a pull request run (or of a merge train car) is planned as a pull request, and a re-run of a schedule run as that schedule. A re-run of a tag run or of a manual or API dispatch is planned as a plain re-run, so stages limited to other events are skipped. A re-run’s publish pushes the sha- image, but that image does not become the push-to-deploy candidate, so a re-run does not roll the deployment.--failed-only restricts the new run to the steps that failed, the steps that
were skipped because of a failure, whatever depends on them, and the steps
they build on. The new run starts from an empty workspace, so the checkout and
every upstream step whose output a repeated step reads run again with it;
steps that succeeded and that nothing repeated needs do not. A failed-only
re-run that would still skip one of those steps (for example a tag-only
release behind a failed build, on a re-run of a tag run) is refused with the
reason rather than passing without it.
--full sets the pipeline’s path filters aside for the new run, so every stage
whose filters left it out runs, and the run records that you asked. A re-run
of a run that was already a full run is one again without the flag.
ankra application pipeline run
Dispatch a manual run of the application’s pipelineankra application pipeline schedules
Manage the application pipeline’s cron schedulesankra application pipeline schedules create
Add a cron scheduleankra application pipeline schedules delete
Remove a cron scheduleankra application pipeline schedules list
List the pipeline’s cron schedulesankra application pipeline schedules update
Change a cron scheduleankra application pipeline validate
Dry-run a pipeline definition without writing anythingankra application platform
Detect platform operators already present on a target clusterankra application previews
Show whether Ankra deploys each of this application’s pull requests to its own temporary address and posts the link on the pull request. Previews follow the source-control connection’s default until the repository has its own rule. ‘previews enable’ and ‘previews disable’ set that rule and change nothing else; ‘previews follow’ removes it again. Previews also need the organisation’s staging cluster, which ‘ankra org ai-environment set--staging-cluster’ configures.
ankra application previews disable
Stop previewing this repository’s pull requestsankra application previews enable
Preview every pull request of this repositoryankra application previews follow
Remove the repository’s rule and follow the connection’s defaultankra application promote
Move the build one environment runs onto the next, without building again. An environment is named by its id, its name, or its role when one environment has that role, as listed by ‘ankra application environments’. The command shows what would change and asks before it deploys;--dry-run stops after showing it.
The write carries the preview’s fingerprint, so it is refused if either
environment changed in between.
Exit codes: 0 when promoted or the target already runs the build, 8 when
something blocks the promotion (the blockers are printed), 4 when you decline.
ankra application protect
Protecting a deployment writes its whole backup policy: the vault, the schedule, the retention and which volumes are carried. Running it again replaces the policy that is there, so restate--schedule, --retention and
--include-pvc when they must survive; anything omitted takes the default,
not the previous value.
Turn scheduled backups on for one of an application’s deployments.
The deployment is named by the cluster it runs on; Ankra resolves which stack
that is. Without --vault the organisation’s single verified backup vault is
used, and an organisation with more than one is refused rather than chosen
for - where a restore point lives is not a decision to make on somebody’s
behalf.
ankra application provenance
An application can refuse to deploy an image unless the image carries signed provenance showing it passed this organisation’s pipeline gate. A pipeline’s publish step signs a statement about every image it publishes; the deploy verifies it before rolling the image. Modes:ankra application provenance checks
Show the newest provenance check Ankra kept for each installation of the application, by environment: when it was made, who asked for it, the tag it checked and its answer. A check is kept when Ankra deploys an installation and checks its images, and when someone checks an environment now (‘ankra application provenance verify--environment’). ANSWER is one of:
ankra application provenance get
Show the mode deploys of the application run under, whether it is the application’s own setting, the organisation default or Ankra’s default, and what that mode means for rollbacks. To see what the next deploy of specific images would do, use ‘ankra application provenance verify’.ankra application provenance set
Set the mode deploys of the application run under, or clear the application’s own choice with--clear so it follows the organisation default again. Needs the
security.manage permission.
Modes:
--yes skips the question).
ankra application provenance verify
Verify images the way a deploy would and report what a deploy under the application’s mode would do, without deploying anything or filing a finding. With--environment instead of --image, the platform checks what each
installation of that environment was deployed with (at most 20), keeps each
check as that installation’s last one (‘ankra application provenance checks’
lists them) and prints one row for each installation it checked.
Each image is checked for a signed attestation from this organisation’s
pipeline: that it exists, that its signature verifies against a key the
organisation trusts, and that it names this application, repository and digest.
Images outside the application’s registry are listed as unchecked and are never
refused. An image that could not be checked (the registry or key store did not
answer) is reported as unknown, never as refused.
The decision is one of: deploy, deploy_with_finding (warn, an image is not
verified), refuse (enforce, an image is not verified) or not_checked (off).
The command exits 1 when the decision is refuse, so it can gate a script.
ankra application publish-addon
Publish the application’s generated manifests to the organisation catalogue as a manifest add-on. Publishing again with a new--version adds
a version; other clusters install the add-on from the catalogue.
ankra application publish-readiness
Report whether the repository can publish to the private Ankra registryankra application published-addon
Show the add-on this application published to the catalogueankra application pull-request-reviews
Show the AI reviews of the application’s pull requestsankra application reconcile
Request an application refreshankra application registry
Inspect and set the container image registry an application publishes to. An application with no declaration publishes into the organisation’s own Ankra registry project. Declare a registry you already operate to have Ankra read image tags, verify builds, and pull demo images from there instead.ankra application registry clear
Return an application to the organisation’s own Ankra registry. Clears the declaration, so the application publishes into - and is read back from - the organisation’s provisioned registry project again.ankra application registry get
Show the image registry an application publishes to. Reports the stored declaration, whether it is one at all, the host and project it resolves to, and the image repository each component is expected to publish to - so you can compare them against where your builds actually push.ankra application registry robot
Manage the registry robot account minted for an application. Ankra mints one push robot per application on the registry it publishes to, stores it as a managed registry credential, and writes it into the repository’s Actions secrets as the login the build workflow uses. On the organisation’s own Ankra registry that happens automatically; on a registry you operate it needs the declaration to name a credential with project administrator rights (ankra application registry set--admin-credential).
ankra application registry robot ensure
Mint the application’s registry robot if it has none, and store its login in the repository’s Actions secrets. An application that already has a robot keeps it; only its login is re-written into the repository. A registry Ankra may not administer answers with provisioned false and a message naming what would let it.ankra application registry robot get
Show the registry robot account minted for an application. Reports whether a robot backs the application’s registry login, its name, the registry it lives on, when it was created and last rotated - and when none does, why, and what would let Ankra mint one. Never contacts the registry.ankra application registry robot revoke
Delete the application’s registry robot from the registry and drop the credential holding its login. The repository’s Actions secrets are left holding a login that no longer works, which is the point of a revoke; run ‘ensure’ afterwards to mint a fresh robot and store it. Prefer ‘rotate’ when the application should keep working.ankra application registry robot rotate
Rotate the application’s registry robot secret and store the new login in the repository’s Actions secrets. The previous secret stops working the moment the registry answers, which makes this the response to a leaked repository secret. A build that starts before the new login is stored fails at the registry login; re-run it afterwards. An application with no robot yet gets one minted.ankra application registry set
Point an application at a container image registry you operate.--url is the registry project, as oci://<host>/<project> (the scheme is
optional). --credential names an existing registry credential of this
organisation; without one Ankra can describe where the images live but cannot
read or pull them, so builds keep reporting as never published.
Ankra never mints robots for a registry it was not handed the keys to. Name a
credential with project administrator rights as --admin-credential to have
Ankra mint, rotate and revoke a push robot for the application there and
store it in the repository’s Actions secrets; without one it leaves the
secrets to you unless you ask it to write the declared credential with
--manage-actions-secrets.
With --admin-credential Ankra also checks that the project exists before it
accepts the declaration. A project the registry does not have is created with
that credential - private, or public with --project-public - when the
credential may create projects; otherwise the declaration is refused with the
project and host named, instead of being accepted for every later build to
fail against. Without --admin-credential the project is not checked.
ankra application remove
Remove an application from one cluster, leaving the application and its other deployments in place. Ankra uninstalls the application’s workloads in that cluster and namespace - and with them any data in that deployment’s database and volumes - and deletes the installation once the cluster has it. The application, its settings, secrets, images and release history, and its deployments on other clusters stay, so you can deploy it there again. An application deployed with the deploy wizard has no installation: it runs as a stack. Name that stack with--stack and Ankra removes it from the cluster.
The other stacks that deploy created stay, and the command lists them.
The removal runs in the background: ‘ankra application installations’ shows the
deployment as “removing” until it is gone, or “failed” with the reason. A
stack’s removal is a platform job: ‘ankra application jobs’ shows its
undeploy_application job, “success” once the stack is gone or “failed” with
the reason.
To stop it for a while without losing anything, park it instead. To delete the
application everywhere, use ‘ankra application delete’.
ankra application rerun-workflow
Re-trigger a failed workflow runankra application retry
Re-trigger a failed application’s setupankra application rollback
Roll an application’s deployment on one cluster back to an image tag it published earlier. Without--to the command changes nothing: it prints the tag the deployment
runs, the newest build, the tags still in the registry it could go back to,
and what a rollback does not undo (a migrated schema, data written since,
changed secrets, stack edits).
With --to <image-tag> it shows the same picture, asks, and then puts that tag
back. The platform confirms the tag is in the application’s registry first,
and holds the rollback until a newer build is observed, so push-to-deploy does
not undo it. A rollback is never started without --to: there is no “previous”
default.
The cluster is named by its name or id. It needs the applications.deploy
permission; a scoped token must carry that scope.
Exit codes: 0 when the rollback was recorded or the deployment already runs
the tag, 8 when the deployment cannot be rolled back (the reason is printed),
4 when you decline.
ankra application rollbacks
List the rollbacks recorded for an application’s deployment on one cluster, newest first. It is what explains a deployment running an older build than the newest one the platform observed.ankra application security-versions
List the tags the application has published, joined to the bill of materials and vulnerability findings the platform holds for each, and the clusters running it now. A tag with no report reads “not scanned”, which is not the same as clean, and a registry the platform could not list reads unavailable rather than empty. The licence verdict at the end says whether a private repository links a component whose licence obliges publishing the source (AGPL, SSPL and the other network copyleft licences) or a commercial licence to host as a service.--component narrows a monorepo to one image.
ankra application settings
Inspect and set the organisation’s application CI settings. These apply to every application in the organisation, not to one of them. The CI runner label decides which GitHub Actions runner the pipelines Ankra generates request - change it when GitHub-hosted runners are unavailable to you and your builds run on self-hosted ones.ankra application settings get
Show the organisation’s application CI settings. Readable by any member: a member who cannot explain why a build never started is the reason this setting exists.ankra application settings set
Set or clear the GitHub Actions runner label generated pipelines run on. Pass--ci-runner-label to choose the label, or --clear to drop the
organisation’s choice and put every future generation back on the default.
Existing pipelines are not rewritten by either.
Only organisation admins may change this.
ankra application setup-auto-merge
Inspect and set whether Ankra may merge this application’s setup pull requests on its own once every check and Ankra’s proof of the head are green. The application’s own answer wins over its organisation’s either way;--follow-organisation clears it. Setting it needs an organisation admin.
ankra application setup-auto-merge get
Show the settingankra application setup-auto-merge set
Turn it on or off.--enabled must be given explicitly: on and off are both
deliberate acts, and neither is a safe default to infer from a bare ‘set’.
ankra application ship
Take a local checkout to a live deployment in one command. Ship composes the existing application lanes: it registers the repository as an application when the organisation does not have it yet (with exactly the ‘application add’ flags), waits for the setup analysis, waits for a green image build of the tracked branch, deploys to the target cluster, and follows the installation until the workload is running - then prints the published URL when one exists. The URL is printed as Live only once the Ingress that carries it is shown to route: every backend Service it names exists, exposes the port asked for and has a ready endpoint. A backend that does not resolve fails ship with what is wrong (state “unroutable” in -o json, with url_problem); a route ship cannot read is reported and left unverified. An existing application is reused only when it is registered for the same repository AND tracks the requested branch (--branch, else the checkout’s
branch); ship never builds or deploys a branch other than the one requested.
When the repository’s applications all track other branches, ship stops and
names them: pass --name <app> --branch <its branch> to ship one of them, or
--name <new-name> to register a separate application for the branch. --name
selects among several applications on the same branch.
The build it waits for is the one that actually builds the application:
- Ankra Pipelines (the default for new applications): the pipeline run for the tracked branch’s head commit, until its publish steps succeed. When no run for that commit appears within a minute - nothing has been pushed since the application was registered - ship starts the branch’s push run for it, the run a push would have started, which publishes the image. That needs the applications.deploy permission. A push during the wait moves ship on to the new head commit. A run whose publish step is skipped stops ship and asks for a push. A run the pipeline skipped outright - no trigger it declares accepts the push - stops ship with the trigger the branch needs. When that is because the setup pull request that adds .ankra/pipeline.yaml is not merged yet, the normal state of a new repository, ship follows the pull request’s own run and stops with state waiting_for_setup_pull_request and exit 9. A gate that blocks the run stops it with state setup_pull_request_blocked, the findings and exit 8. Merge the pull request and run ship again to continue.
- The repository’s own GitHub Actions workflow: its latest run on the tracked branch.
- The workflow Ankra generated: its latest run on the tracked branch, once you have merged the setup pull request that adds it. Only this lane waits on the merge.
--ankra-build the first image is built on Ankra’s builders from the head
commit of the tracked branch, so ship does not wait for the setup pull
request to merge or for the repository’s own CI. The platform-build routes
answer 404 for organisations without the platform_builds feature flag.
The image tag and ingress publication are the platform’s defaults: the latest
green build is deployed, and ingress is derived server-side. Pass --set only
for deploy inputs you want to pin.
ankra application timeline
Show an application’s timeline, newest first: builds, deploys, promotions, rollbacks, demos, AI reviews, what Ankra did on its own and lifecycle events. A source the platform could not read is named on stderr: it is unknown, not a source with no events. A read the platform capped says so on stderr too. When older events remain, the command prints the--before value that reads the
next page.
ankra application tracked-branch
Inspect and change the branch an application tracks. The tracked branch decides which branch’s builds auto-deploy, which pipeline runs are attributed to the application, and which branch Ankra’s setup pull requests target. ‘ankra pipeline branches--application <application>’ lists
the branches its pipeline has run on.