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.
Confirm the current context
Section titled “Confirm the current context”axern context listaxern context currentaxern catalog listFor a Helm installation, keep a gateway port-forward open and import the chart-generated mTLS identity:
kubectl --namespace axern-system port-forward svc/gatewayd \ 25100:25000 25101:25080 25122:25022
axern context import-kubernetes local \ --namespace axern-system \ --currentRun isolated Python
Section titled “Run isolated Python”axern run create \ --namespace default \ --template-id python311 \ --runtime-class runsc \ --argv python \ --argv -c \ --argv 'import platform; print(platform.python_version())' \ --waitUse a strict resource file when a specification should be reviewed or reused:
api_version: axern/v1kind: Runmetadata: namespace: default labels: example: docsspec: source: template: python311 command: argv: [python, -c, "print('ok')"] runtime_class: runsc resources: {}axern run create --file run.yaml --wait --output jsonThe CLI help is authoritative for the complete flag surface. See the CLI source guide for contexts, exit codes, aliases, services, tunnels, and admin workflows.
