Command line reference
All Aner CLI commands and options for checking and running code, installations, reports, credentials, maps and parallel jobs.
ImplementedUse this page as the reference for the current development version of Aner. It covers the installed manager, program execution, checks, reports, credentials, maps and parallel jobs. Check Downloads for package availability and Install Aner for setup. An installed package may contain an earlier command set.
A managed installation puts a manager at the aner command. It handles installation commands and forwards runtime commands to the selected native executable. A manually extracted runtime supports the runtime commands below; it does not acquire the manager's installation commands automatically.
Examples use placeholders such as FILE.aner, VERSION, DIR and NAME. Replace them with your own values. Quote paths containing spaces. Flags and their values are separate arguments, such as --device cpu.
Find a command
| Task | Command |
|---|---|
| Show help | aner --help; managed installations also accept aner help |
| Identify the selected runtime | aner --version, aner --binary |
| Check a program without executing it | aner check FILE.aner |
| Run a program | aner run FILE.aner or aner FILE.aner |
| Inspect variables and training | aner run FILE.aner --dev NEW_DIR |
| Save displayed charts | aner run FILE.aner --display-dir NEW_DIR |
| Manage installation and selection | aner update, aner install VERSION, aner default VERSION, aner rollback |
| Review installed versions and locations | aner versions, aner doctor |
| Remove a managed installation | aner uninstall |
| Control installation reporting | aner metrics |
| Store or inspect a credential reference | aner secrets set NAME, aner secrets status NAME |
| Manage optional offline maps | aner maps --help |
| Run and monitor parallel jobs | aner parallel --help |
| Connect a notebook integration | aner session --stdio |
Help and binary information
| Command | Result |
|---|---|
aner --help | Shows manager help in a managed installation, or runtime help when invoking the native runtime directly. |
aner help | Manager help alias. A bare managed aner command also shows this help. These are manager conveniences, not standalone runtime aliases. |
aner --version | Prints the selected runtime version on one line. |
aner --binary | Prints the compiled target, CPU optimization and profile, instruction baseline, build configuration, compiler and numerical CPU backend. On Mac, the running CPU is shown separately. |
aner --binnary | Accepted alias for --binary. |
aner --credits | Prints project credits. |
aner --data-notices | Prints bundled dataset attribution and license notices. |
aner parallel --help | Shows parallel job and neural benchmark usage. |
aner parallel neural --help | Shows neural benchmark usage. |
aner secrets --help | Shows credential management usage. |
aner maps --help | Shows offline map management usage. |
Use information flags on their own. --version, --binary, credits and data notices are runtime commands, so a managed installation needs a selected runtime to answer them. aner doctor reports the manager's own version and installation state. Manager help is intentionally shorter than this complete reference. -h and aner run --help are not supported help forms.
See binary identity and CPU optimization for interpreting compiled targets and hardware verification.
Run and check programs
aner check study.aner
aner check study.aner --strict-declarations
aner run study.aner
aner study.anercheck parses and checks syntax and types without executing the program. Success prints OK. run performs those checks before execution. The short form runs the same program. A file can contain script statements or a supported main() -> Unit entry point. Relative paths resolve from the terminal's working directory. Source files must be regular files and fit the 2 MiB source limit.
Place runtime options after the source path. check accepts only --strict-declarations. It rejects execution, reporting and chart options. The runtime does not pass arbitrary trailing arguments to an Aner program; unrecognized arguments are errors. aner build reports that native compilation is not implemented.
Execution options
Option after FILE.aner | Values and behavior |
|---|---|
--strict-declarations | Requires let or var when declaring a new name. Available for both run and check. |
--max-steps N | Positive unsigned 64 bit execution limit. Default: 1000000. |
--device DEVICE | cpu, auto, mps, cuda, rocm or cluster. Default: cpu. An accepted selector does not mean its backend is implemented or available. |
--precision PRECISION | Float64 or Float32, with this spelling. Default: Float64. |
--precision-policy POLICY | preserve, adapt or fast. Default: preserve. |
preserve keeps requested precision and permits CPU fallback. adapt may lower precision. fast requests Float32. An explicitly unavailable accelerator fails; auto selects an available backend according to the request and precision policy. The rocm and cluster Tensor backends are unavailable. Parallel CPU workers and cluster jobs use the separate commands below.
aner run study.aner --max-steps 5000000
aner run study.aner --device cpu --precision Float32
aner run study.aner --device auto --precision Float64 --precision-policy preserveEach runtime option can be supplied once. See neural execution and Tensor devices and performance for backend, dtype and operation support.
Reports and chart files
Option after FILE.aner | Result |
|---|---|
--prod | Explicit production execution mode. This is the default and disables development and training capture reports. |
--dev NEW_DIR | Writes bounded variable and object inspection with training reports. Open inspection.html in the resulting directory. |
--debug-viz NEW_DIR | Writes offline reports for explicit viz.capture calls. Open index.html. |
--debug-values | Includes bounded raw Tensor values in a report. Requires --dev or --debug-viz. |
--dev-values | Alias for --debug-values. |
--display-dir NEW_DIR | Publishes SVG files from Chart.show() calls after a successful run. Can be used with production or report modes. |
Choose a new output directory for each report or chart run. Existing directories are rejected. Use either --dev or --debug-viz; neither can be combined with --prod. Reporting and chart output directories have separate roles. Development observations may be written after a runtime failure, while chart publication requires a successful run.
aner run study.aner --dev study-report
aner run study.aner --dev study-values --dev-values
aner run study.aner --debug-viz training-report
aner run study.aner --prod --display-dir study-chartsSee development and production, visual training reports and plotting for the report contents and capture limits.
Manage an installation
These commands require the managed installation. They do not install individual language modules.
| Command | Result |
|---|---|
aner update --check | Verifies the signed catalog and checks availability and platform compatibility without downloading or selecting a runtime. |
aner update | Installs and selects the latest available runtime in the selected channel. A first selection defaults to stable. |
aner update --channel stable | Installs and selects the latest stable runtime. |
aner update --channel dev | Explicitly selects an available development runtime and makes later updates follow that channel. |
aner update --version VERSION | Installs and selects an exact catalog version, including an available retained older version or development build. |
aner install VERSION | Installs an exact runtime without selecting it. |
aner install --version VERSION | Equivalent exact installation form. |
aner default VERSION | Selects an already installed runtime after receipt and startup validation. |
aner rollback | Returns to the previous installed selection without downloading. A first installation has no previous selection. |
aner versions | Lists valid installed versions in sorted order. * marks the selected version. |
aner doctor | Prints manager version, platform target, runtime store, selection state path and selected default. |
update accepts --check, --channel stable|dev and --version VERSION. install accepts one exact version and optional --channel stable|dev; it rejects --check. When supplied together, channel and version must agree. Do not repeat --channel or --version. default, rollback, versions and doctor accept only the arguments shown.
A failed installation keeps the existing selection. Runtime updates do not replace the manager itself. Refreshing the manager requires a compatible manager/bootstrap package. Restart notebook sessions after changing the selected executable.
Manager options
Put manager options before a runtime command or information flag. For example:
aner --home "my-aner-home" versions
aner --home "my-aner-home" run study.aner| Manager option | Result |
|---|---|
--home DIRECTORY | Uses this managed installation home. A relative directory is resolved to an absolute path. It overrides ANER_HOME for the manager command. |
--catalog URL | Uses a different signed release catalog, overriding ANER_CATALOG_URL. |
--public-key FILE | Uses a different catalog verification key, overriding ANER_PUBLIC_KEY_FILE. |
--allow-local | Advanced local fixture mode for file and loopback HTTP catalogs. Catalog signature and package verification still apply. |
Manager options can also follow a recognized manager command. Parsing stops at a runtime command such as run, check or --version, so put manager options before those commands. Options use separate values; --home=DIR is not a supported form. A temporary --home does not change the runtime's environment or persist a different home. Use ANER_HOME as well when maps or another runtime feature must use that home.
The normal installation uses the canonical HTTPS catalog and its built in verification key. Private catalog and local fixture options are for explicitly configured installations.
Installation reporting
| Command | Result |
|---|---|
aner metrics | Shows whether reporting is enabled and how many operations are pending. |
aner metrics --disable | Saves an opt out and clears pending reporting operations. |
aner metrics --enable | Enables future reporting unless an environment opt out is active. |
aner metrics --flush | Makes a bounded attempt to send pending reports. Success does not guarantee that the queue is empty. |
Use at most one metrics option. Reporting concerns verified downloads and completed installation or selection operations. Running a program sends no activity heartbeat. Environment settings can opt out before the installer runs; see the environment table below and Downloads.
Uninstall Aner
aner uninstallThe current development manager displays the selected runtime version, runtime and manager binaries, installed versions and managed paths. Type Yes to confirm. Matching ignores letter case and surrounding whitespace. Any other response, an empty response or end of input cancels without changing files or sending metrics. There is no --yes shortcut.
Confirmation removes the managed versions, manager and owned command launcher, selection state, and local reporting identity and pending reports. Projects, maps, saved credentials, the VS Code extension and unrelated files in a custom home remain. A launcher selecting another installation is preserved. Windows finishes cleanup after the manager and launcher exit and prints a result log location. See uninstall scope and platform behavior.
Credentials
aner secrets --help
aner secrets set NAME [--store system|file] [--stdin]
aner secrets status NAME [--store system|file]
aner secrets delete NAME [--store system|file]set reads a value using hidden terminal input. --stdin explicitly permits redirected input for set only. Credential values are never command arguments. status prints configured or missing, both with status 0. delete removes the named stored credential.
The default store is system, using macOS Keychain or Windows Credential Manager. Linux does not provide this system backend, so select --store file explicitly when saving a value there. The file store is supported on POSIX systems and rejected on Windows. It uses a private directory and files with owner permissions and stores values without encryption at rest.
aner secrets set research-api --store file
aner secrets status research-api --store file
aner secrets delete research-api --store filePut options after NAME and supply each once. Names contain 1 through 64 ASCII characters, begin with a letter or digit, and otherwise permit letters, digits, underscores, dots and hyphens. Values contain 1 through 8192 visible ASCII bytes without whitespace. The file store defaults to the operating system account's ~/.config/aner/secrets, independently of a temporary HOME setting; ANER_SECRETS_DIR overrides it with an absolute private directory.
See credentials for language references, injected environments and explicit dotenv files. A bare aner secrets command is an error; request help with --help.
Offline map packs
| Command | Result |
|---|---|
aner maps or aner maps --help | Shows map command usage. |
aner maps list | Lists recognized packs and their installed, missing or invalid state. |
aner maps list --json | Prints the same inventory as JSON. |
aner maps path | Prints the selected map store path. |
aner maps install FILE.anermap | Validates and installs a local pack archive. |
aner maps remove PACK | Removes the recognized pack's current data revision from the selected store, preserving other revisions. |
All map commands work with local files. They do not download boundaries. Installing an already valid pack succeeds without replacing it. An altered or incomplete existing pack needs explicit removal before reinstalling. Removing a recognized pack that is absent succeeds; an unknown pack identifier is an error.
Storage is chosen from ANER_MAPS_DIR, then ANER_HOME/maps, then the platform's normal Aner data directory. See offline map packs and state and province maps for pack identifiers and data preparation.
Parallel CPU jobs
aner parallel
aner parallel --help
aner parallel inventory [--json]
aner parallel run [OPTIONS]
aner parallel regression [OPTIONS]
aner parallel status --job DIR [--watch] [--json]
aner parallel cancel --job DIRinventory always prints JSON describing the native CPU allocation and available execution resources. run performs the deterministic Monte Carlo pi workload. regression performs the fixed analytic logistic training fixture using CPU Float64 and SGD. These commands have fixed workloads. Run an Aner source program to execute your own analysis or train your own model.
| Execution option | Values and defaults |
|---|---|
--samples N | Sample count. Default: 1000000. Positive and at most 10000000000. |
--seed S | Deterministic sample seed. Default: 42. |
--workers W | Local worker thread count. 0 selects the automatic CPU budget policy. Default: 0; maximum accepted request: 256. Effective concurrency is bounded by CPU allocation. |
--chunk N | Rows or samples per reduction chunk. Default: 65536. Positive and at most 10000000000; total work must fit the chunk budget. |
--cluster CONFIG | Uses explicitly configured local or SSH worker processes from a private configuration file. Cannot be combined with --workers. |
--output NEW_DIR | Writes job state, manifest and result files in a new directory. |
--background | Submits a background coordinator. Requires --output; unavailable on Windows. A successful submission does not mean the workload has finished. |
--quiet | Suppresses progress reporting. |
--steps N | Regression only. Default: 16; accepted range: 1 through 100000, subject to the total work budget. |
--rate R | Regression only. Finite positive learning rate. Default: 0.25. |
Execution options cannot repeat. The total budget is at most 1000000 chunks, and regression adds work for each global step. Local regression requires the default 65536 chunk size. The parser supplies the defaults above even where the short help displays samples, steps or rate as required arguments. Configured SSH worker transport is unavailable on Windows; local configured workers remain available.
aner parallel inventory --json
aner parallel run --samples 1000000 --workers 2 --output pi-job
aner parallel regression --samples 4096 --steps 16 --rate 0.25 --output regression-job
aner parallel status --job pi-job
aner parallel status --job pi-job --watch
aner parallel cancel --job pi-jobstatus prints job JSON; its optional --json flag does not change the output format. --watch polls for changes and stops when the job finishes, the coordinator goes offline or you press Ctrl+C. cancel requests cancellation at safe task boundaries. A completed job returns its final status. An offline job cannot be resumed.
See native parallel computing, CPU parallelism and simulation repetitions for workload contracts and configured worker execution.
Neural benchmark
aner parallel neural [--device cpu|cuda|mps] [--dtype Float64|Float32]
[--cluster CONFIG] [--rows N] [--epochs E] [--batch B] [--rate R]
[--seed S] [--optimizer sgd|adam] [--output NEW_DIR] [--quiet]This command runs the built in synthetic classifier benchmark with a Dense 64 → 128 → 64 → 4 model. Running aner parallel neural without options starts that benchmark. Use aner parallel neural --help to request help.
| Option | Values and defaults |
|---|---|
--device DEVICE | cpu, cuda or mps. Default: cpu. The requested backend must be available. |
--dtype DTYPE | Float64 or Float32. Default: Float64. MPS requires explicit Float32. |
--cluster CONFIG | Uses replica devices from a private cluster configuration. Rejects an explicit --device; an explicit dtype must match the cluster's common precision. Configured SSH transport is unavailable on Windows. |
--rows N | Synthetic row count. Default: 65536. The feature budget caps it at 125000; partition and class checks also apply. |
--epochs E | Default: 2; range: 1 through 100000. |
--batch B | Global batch size. Default: 1536; range: 1 through 4096. |
--rate R | Finite positive learning rate. Default: 0.05. |
--seed S | Model and synthetic data seed. Default: 42. |
--optimizer OPTIMIZER | sgd or adam. Default: sgd. |
--output NEW_DIR | Writes status.json, run-manifest.json, result.json and the fitted model.anermodel in a new directory. |
--quiet | Suppresses progress output. |
Options cannot repeat. This command does not accept a source file, user model file, dataset file, --workers or --background. Job monitoring and cancellation use aner parallel status and aner parallel cancel with its output directory. Accelerator replicas exchange gradients with a canonical CPU optimizer; selecting a GPU does not move every training operation to it.
See distributed neural training for replica placement, precision and result interpretation. For a custom model, use the neural APIs from an Aner program.
Notebook and worker transports
aner session --stdio [--dev-protocol] [--display-protocol] [--strict-declarations]This is the persistent integration transport used by notebook clients, not an interactive terminal shell. --stdio must come first. The following flags are optional, unique and can appear in any order:
| Session option | Purpose |
|---|---|
--dev-protocol | Adds bounded development inspection to framed requests and results. |
--display-protocol | Adds chart display messages and transient run requests. Can be combined with development inspection. |
--strict-declarations | Requires explicit declarations when checking submitted source. |
The default transport, development transport and display transport use their respective framing greetings. Requests carry byte lengths; they are not ordinary lines of Aner code typed at a prompt. The source payload limit is 1 MiB, inspection output is bounded to 512 KiB and display output to 4 MiB. A session result distinguishes success, static error and runtime error; those result codes are separate from process exit statuses. session --help is not a supported form.
These additional endpoints are started by configured worker integrations:
| Worker command | Purpose |
|---|---|
aner parallel worker --stdio | CPU parallel worker protocol. |
aner parallel neural-worker --stdio | Neural replica worker protocol. |
aner session --repeat-stdio | Private simulation repetition worker transport. This exact form cannot be combined with notebook flags. |
Use notebook clients and configured coordinators to operate these transports. See interactive notebooks, native parallel computing and simulation repetitions.
Environment settings
| Setting | Purpose |
|---|---|
ANER_HOME | Selects a managed installation home. Runtime map storage also uses its maps child unless overridden. |
ANER_CATALOG_URL | Changes the signed catalog used by the manager. |
ANER_PUBLIC_KEY_FILE | Changes the manager's catalog verification key. |
ANER_METRICS | off, false or 0 disables reporting for the process. This can be set before installation. |
ANER_METRICS_ENABLED | Compatibility setting with the same opt out values. |
ANER_METRICS_URL | Advanced reporting endpoint override. |
ANER_MAPS_DIR | Selects an absolute offline map store. |
ANER_SECRETS_DIR | Selects an absolute private directory for the file credential store. |
HOME, LOCALAPPDATA | Supply the normal platform account locations used for default storage. |
XDG_DATA_HOME, XDG_STATE_HOME | Override Linux data and state base directories with absolute paths. |
An environment opt out takes precedence over aner metrics --enable. It does not clear an existing reporting queue; use aner metrics --disable to save the opt out and clear that queue. Platform paths and default storage locations are listed in Install Aner.
Exit status and diagnostics
| Status | Meaning |
|---|---|
0 | The command succeeded. This also covers uninstall cancellation, a missing credential reported by status, and a bounded metrics flush with pending reports remaining. Windows uninstall success means cleanup was scheduled; check its result log. |
1 | A program has a syntax, type or runtime diagnostic, or execution cannot write standard output. |
2 | Invalid command usage, unreadable or oversized input, setup or output failure, or a manager or tool command error. Neural benchmark cancellation also uses this status. |
130 | A parallel Monte Carlo workload was cancelled. |
Program diagnostics go to standard error and include a source path, line, column and diagnostic code. The checker prints OK only on success. Session and worker commands use their integration protocols rather than the ordinary program output contract. Use the exit status with the command's documented output when automating work.