Skip to content

Axern CLI

axern is the product CLI for resources and interactive development. It talks to public APIs through gatewayd; it never connects directly to node or database internals.

Terminal window
axern context list
axern context current
axern catalog list

For a Helm installation, keep a gateway port-forward open and import the chart-generated mTLS identity:

Terminal window
kubectl --namespace axern-system port-forward svc/gatewayd \
25100:25000 25101:25080 25122:25022
axern context import-kubernetes local \
--namespace axern-system \
--current
Terminal window
axern run create \
--namespace default \
--template-id python311 \
--runtime-class runsc \
--argv python \
--argv -c \
--argv 'import platform; print(platform.python_version())' \
--wait

Use a strict resource file when a specification should be reviewed or reused:

run.yaml
api_version: axern/v1
kind: Run
metadata:
namespace: default
labels:
example: docs
spec:
source:
template: python311
command:
argv: [python, -c, "print('ok')"]
runtime_class: runsc
resources: {}
Terminal window
axern run create --file run.yaml --wait --output json

The CLI help is authoritative for the complete flag surface. See the CLI source guide for contexts, exit codes, aliases, services, tunnels, and admin workflows.

Axern CLI command overview