Command-line flags
Command-line flags of the eaxScada binaries, read from their flag definitions. A flag can be written with one or two dashes (-flag or --flag); -h prints the same list.
eaxlicence
Section titled “eaxlicence”Source: eaxScada/cmd/eaxlicence
eaxlicence inspect
Section titled “eaxlicence inspect”Print what a licence file says, without checking its signature.
Usage:
eaxlicence inspect -in licence.json [-product eaxscada|eaxplc]Source: eaxScada/cmd/eaxlicence/main.go
| Flag | Type | Default | Description |
|---|---|---|---|
-in |
string | licence file |
eaxlicence keygen
Section titled “eaxlicence keygen”Make a new licence signing key: writes its private seed and prints its public key.
Usage:
eaxlicence keygen -out <seed file> [-id <key id>]Source: eaxScada/cmd/eaxlicence/main.go
| Flag | Type | Default | Description |
|---|---|---|---|
-id |
string | "eaxware-"+time.Now().UTC().Format("2006")+"-01" |
key id |
-out |
string | file to write the private seed to (created, never overwritten, mode 0600) |
eaxlicence sign
Section titled “eaxlicence sign”Issue a signed licence file for a licensee and an edition.
Usage:
eaxlicence sign -key <seed file> -key-id <id> -id <licence id> -licensee <name> -edition starter|pro|enterprise -support-until YYYY-MM-DD (support and new versions) [-security-until YYYY-MM-DD (security updates; default: -support-until)] [-nodes 1] [-expires YYYY-MM-DD] [-notes text] [-out licence.json] [-product eaxscada|eaxplc]Source: eaxScada/cmd/eaxlicence/main.go
| Flag | Type | Default | Description |
|---|---|---|---|
-edition |
string | starter, pro or enterprise (eaxplc: standard or performance) | |
-expires |
string | licence end date (YYYY-MM-DD); empty: perpetual | |
-id |
string | licence id, e.g. LIC-2026-0001 | |
-key |
string | signing key file (base64 seed); default $EAX_LICENCE_SIGNING_KEY | |
-key-id |
string | id of the signing key (as listed in keys.go) | |
-licensee |
string | organisation the licence is issued to | |
-nodes |
int | 1 |
number of eaxScada servers covered (an HA pair is 2) |
-notes |
string | free text shown to the licensee | |
-out |
string | file to write; empty: standard output | |
-security-until |
string | last day of security updates for the version lines released within support (YYYY-MM-DD, not before -support-until); empty or equal: the same as -support-until | |
-support-until |
string | last day of support and new versions (YYYY-MM-DD) |
eaxlicence verify
Section titled “eaxlicence verify”Check a licence file’s signature and dates, as the product checks them.
Usage:
eaxlicence verify -in licence.json [-pub <base64 public key> -key-id <id>] [-release-date YYYY-MM-DD] [-version x.y.z -line-date YYYY-MM-DD] [-product eaxscada|eaxplc]Source: eaxScada/cmd/eaxlicence/main.go
| Flag | Type | Default | Description |
|---|---|---|---|
-in |
string | licence file | |
-key-id |
string | id of -pub | |
-line-date |
string | with -version: the build date of the release’s x.y.0 (main.LineDate, YYYY-MM-DD) | |
-pub |
string | public key (base64) to verify with; default: the keys compiled into this binary | |
-release-date |
string | check against a release built on this date (YYYY-MM-DD) | |
-version |
string | with -release-date: the release’s version, x.y.z (main.BuildVersion) |
scada-cli
Section titled “scada-cli”Source: eaxScada/cmd/scada-cli
| Flag | Type | Default | Description |
|---|---|---|---|
-version |
bool | false |
print the version and exit |
eaxscada
Section titled “eaxscada”
Source: eaxScada/cmd/scada-server (scada-server is the same binary under its old name)
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to YAML configuration file | |
-diag-pprof-addr |
string | Support tool, off by default: serve Go heap/CPU profiles and memory statistics on this loopback address only (e.g. 127.0.0.1:6061; any other address is refused), on a listener of its own, never on the web port | |
-edge-plc-seed-dir |
string | value of the environment variable EAX_EDGE_PLC_SEED_DIR |
Directory of provisioned edge PLC seeds <id>.nk shared by both HA nodes (must exist; default: created under data/security/nkeys) |
-edge-plcs |
string | value of the environment variable EAX_EDGE_PLCS |
eaxPLC-rt edge runtimes this server works with, comma separated PLC ids (each connects with --nats-nkey <seed>, created under data/security/nkeys/<id>.nk) |
-gen-device-seed |
string | Write a new device NATS seed to this file (0600, never overwrites), print its public key and exit | |
-go-memory-limit |
string | auto |
Soft limit of the server’s Go heap (the genealogy trace index lives there; analytics database’s memory is capped on its own): auto (40% of physical memory, at least 2 GiB; GOMEMLIMIT wins when set), a size such as 4GB, a share such as 30%, or off |
-ha-role |
string | Initial HA role (‘primary’, ‘standby’, ‘witness’) | |
-nats-watcher |
value | Read-only broker identity name=<public NKey or seed file> (repeatable, or comma separated; EAX_NATS_WATCHERS): it may only subscribe to plc..birth, plc..status and uns.telemetry.> and publishes nothing, e.g. the UNS prefix guard of an eaxsim host (eaxsim -nats-nkey <seed>) | |
-node-id |
string | Unique HA node identifier (default: auto-assigned) | |
-plc-id |
string | plc-01 |
Target PLC runtime ID on NATS bus |
-plc-nkey-seed |
string | Provisioned softPLC NATS seed file shared by both HA nodes (must exist; default: created under data/security/nkeys) | |
-plc-url |
string | http://localhost:8085 |
Target URL for eaxPLC SoftPLC runtime |
-reset-admin-password |
bool | false |
Offline administrator recovery: with eaxScada stopped, give the administrator account (--user, default admin) a new random password, written to <security dir>/initial_admin_password, to be changed at the next sign-in; then exit |
-tier |
string | Lower the edition for testing: free, starter or pro (never raises it: the edition comes from the licence) | |
-user |
string | admin |
Account for --reset-admin-password (must hold the Administrator role) |
-v |
bool | false |
Print binary version and build flavour (full or standard), then exit |
-version |
bool | false |
Print binary version and build flavour (full or standard), then exit |
-witness |
bool | false |
Start in lightweight HA witness mode (NATS cluster quorum only; no web UI, drivers, or tag engine) |
-workdir |
string | Directory holding config/, data/, logs/ and web/ (default: current directory; as a Windows service: the executable’s directory) |
eaxscada audit-set-aside
Section titled “eaxscada audit-set-aside”
Set a damaged audit trail aside and start a new one (or put a verified repair in place), with eaxScada stopped and an administrator’s signature.
Usage:
eaxscada audit-set-aside [--repair] --confirm --user <administrator> --reason <why> (the password is read from standard input)Source: eaxScada/cmd/scada-server/audit_setaside_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file | |
-confirm |
bool | false |
Set the trail aside (without it: say what would be done) |
-reason |
string | Why the trail is set aside (required with --confirm) |
|
-repair |
bool | false |
Repair a trail a checkpoint cut short instead of setting it aside (only when the dry run says the repair verifies) |
-user |
string | The administrator who signs (required with --confirm) |
|
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada backup
Section titled “eaxscada backup”
Write a server backup file with eaxScada stopped (project, users, audit trail and alarm history, encrypted to the recovery key).
Usage:
eaxscada backup --out <file.eaxbackup> [--data <dir>] [--workdir <dir>] [--config <file>]Source: eaxScada/cmd/scada-server/backup_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port and folders) | |
-data |
string | The data folder to back up (default: data in the working directory; its security and audit folders follow it) | |
-out |
string | The server backup file to write (.eaxbackup; never overwritten; required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada cloud disconnect
Section titled “eaxscada cloud disconnect”
Remove this server’s link to eaxCloud.
Usage:
eaxscada cloud disconnectSource: eaxScada/cmd/scada-server/cloud_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its cloud data folder) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada cloud enrol, enroll
Section titled “eaxscada cloud enrol, enroll”
Link this server to eaxCloud with a one-time enrolment token.
Usage:
eaxscada cloud enrol --url <cloud address> --token <eaxe1_...>Source: eaxScada/cmd/scada-server/cloud_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its cloud data folder) | |
-token |
string | The one-time enrolment token from eaxCloud, eaxe1_… (required; valid 10 minutes) | |
-url |
string | The eaxCloud address, for example https://app.eaxware.com (required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada cloud status
Section titled “eaxscada cloud status”
Show this server’s eaxCloud link: the cloud, site and node, and its connection.
Usage:
eaxscada cloud status [--json]Source: eaxScada/cmd/scada-server/cloud_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its cloud data folder) | |
-json |
bool | false |
Print the status as JSON |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada genealogy archive
Section titled “eaxscada genealogy archive”
Archive the records of those UTC days (encrypted to the recovery key).
Usage:
eaxscada genealogy archive --from <YYYY-MM-DD> --to <YYYY-MM-DD> --out <file.eaxgenealogy>Source: eaxScada/cmd/scada-server/genealogy_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port, folders and encryption) | |
-data |
string | The data folder (data/backup holds the recovery public key; default: data in the working directory) | |
-from |
string | First UTC day of plant time to archive, YYYY-MM-DD (required) | |
-genealogy |
string | The genealogy folder (default: <data>/genealogy) | |
-out |
string | The archive to write (.eaxgenealogy; never overwritten; required) | |
-to |
string | Last UTC day of plant time to archive, YYYY-MM-DD (required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada genealogy export-hive
Section titled “eaxscada genealogy export-hive”
Export the records past the export’s watermark as Parquet (not encrypted).
Usage:
eaxscada genealogy export-hive --out <dir>Source: eaxScada/cmd/scada-server/genealogy_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port, folders and encryption) | |
-data |
string | The data folder (data/backup holds the recovery public key; default: data in the working directory) | |
-genealogy |
string | The genealogy folder (default: <data>/genealogy) | |
-out |
string | The export folder (required; its files are not encrypted) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada genealogy restore
Section titled “eaxscada genealogy restore”
Write an archive’s records into an empty genealogy folder.
Usage:
eaxscada genealogy restore --in <file.eaxgenealogy> --into <dir> --recovery-key <file>Source: eaxScada/cmd/scada-server/genealogy_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port, folders and encryption) | |
-data |
string | The data folder (data/backup holds the recovery public key; default: data in the working directory) | |
-genealogy |
string | The genealogy folder (default: <data>/genealogy) | |
-in |
string | The archive to restore (.eaxgenealogy; required) | |
-into |
string | An empty folder to write the genealogy into (required; never the live folder) | |
-recovery-key |
string | The recovery key file downloaded when the key was made (required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada genealogy verify, rebuild-index
Section titled “eaxscada genealogy verify, rebuild-index”
eaxscada genealogy verify: Check the chain of the whole ledger.eaxscada genealogy rebuild-index: Rebuild the trace index and the unit states from the ledger.
Usage:
eaxscada genealogy verifyeaxscada genealogy rebuild-indexSource: eaxScada/cmd/scada-server/genealogy_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port, folders and encryption) | |
-data |
string | The data folder (data/backup holds the recovery public key; default: data in the working directory) | |
-genealogy |
string | The genealogy folder (default: <data>/genealogy) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada historian-backup
Section titled “eaxscada historian-backup”
Write an encrypted archive of the historian’s UTC days from --from to --to, with eaxScada stopped.
Usage:
eaxscada historian-backup --from <YYYY-MM-DD> --to <YYYY-MM-DD> --out <file.eaxhistory> [--data <dir>] [--historian <dir>] [--workdir <dir>] [--config <file>]Source: eaxScada/cmd/scada-server/backup_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port and folders) | |
-data |
string | The data folder (its lock, data/backup, data/audit; default: data in the working directory) | |
-from |
string | First UTC day to back up, YYYY-MM-DD (required) | |
-historian |
string | The historian folder (default: historian.path of the configuration, or <data>/historian with --data) |
|
-out |
string | The historian archive to write (.eaxhistory; never overwritten; required) | |
-to |
string | Last UTC day to back up, YYYY-MM-DD (required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada historian-migrate-csv
Section titled “eaxscada historian-migrate-csv”
Import CSV history into the columnar historian with eaxScada stopped, verified day by day (a plan only without --yes).
Usage:
eaxscada historian-migrate-csv [--yes] [--reason <text>] [--data <dir>] [--historian <dir>] [--workdir <dir>] [--config <file>]Source: eaxScada/cmd/scada-server/backup_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port and folders) | |
-data |
string | The data folder (its lock, data/backup, data/audit; default: data in the working directory) | |
-historian |
string | The historian folder (default: historian.path of the configuration, or <data>/historian with --data) |
|
-reason |
string | The reason recorded in the audit trail | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) | |
-yes |
bool | false |
Import: each day of CSV history into the columnar store, verified, then its CSV files deleted. Without it the command prints the plan and writes nothing |
eaxscada historian-restore
Section titled “eaxscada historian-restore”
Restore historian history with eaxScada stopped: from an archive, a nightly snapshot or the daily export (a dry run without --confirm).
Usage:
eaxscada historian-restore --from-export <dir> [--from <YYYY-MM-DD>] [--to <YYYY-MM-DD>] [--confirm] [--data <dir>] [--historian <dir>] [--workdir <dir>] [--config <file>](withheld: names a third-party library)eaxscada historian-restore <file.eaxhistory> --recovery-key <file> [--confirm] [--replace-range] [--data <dir>] [--historian <dir>] [--workdir <dir>] [--config <file>]Source: eaxScada/cmd/scada-server/backup_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-config |
string | Path to the server’s YAML configuration file (its port and folders) | |
-confirm |
bool | false |
Write the restore. Without it the restore is a dry run: it verifies the archive, prints what it would do and writes nothing |
-data |
string | The data folder (its lock, data/backup, data/audit; default: data in the working directory) | |
-from |
string | With --from-export: the first UTC day to import, YYYY-MM-DD (default: the export’s first) |
|
-from-export |
string | Import the daily Parquet export folder (historian.export.dir) instead of an archive: only the points the store has no row of | |
-historian |
string | The historian folder (default: historian.path of the configuration, or <data>/historian with --data) |
|
-keep-current |
bool | false |
With --snapshot: keep the current store’s rows, appended after the snapshot’s as later writes (the restore after the store was set aside) |
-recovery-key |
string | The recovery key file downloaded when the key was made (required) | |
-replace-range |
bool | false |
Replace the current history of the archive’s days with the archive’s (refused without it when they hold history) |
-snapshot |
string | Restore a nightly historian snapshot (historian-<time> file) instead of an archive: the whole columnar store is replaced | |
-to |
string | With --from-export: the last UTC day to import, YYYY-MM-DD (default: the export’s last) |
|
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |
eaxscada interlock-audit, ilparam-audit
Section titled “eaxscada interlock-audit, ilparam-audit”
Lists the command objects whose interlock fails closed, never blocks (Allow) or is screen only. Reads only.
Usage:
eaxscada interlock-audit [--workdir <dir>] [--studio <dir>] [--dashboards <dir>] [--json] [<studio data folder>]eaxscada ilparam-audit [--workdir <dir>] [--studio <dir>] [--dashboards <dir>] [--json] [<studio data folder>]Source: eaxScada/cmd/scada-server/interlock_audit_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-dashboards |
string | The folder of dashboard documents (default: <workdir>/data/dashboards) | |
-json |
bool | false |
Print the list as JSON |
-studio |
string | The studio data folder, holding pages/ and components/ (default: <workdir>/data/studio) | |
-workdir |
string | Directory holding data/ (default: the current directory) |
eaxscada restore
Section titled “eaxscada restore”
Restore a server backup with eaxScada stopped (a dry run without --confirm; the replaced files are copied aside first).
Usage:
eaxscada restore <file.eaxbackup> --recovery-key <file> [--confirm] [--keep-channels-enabled] [--accept-weaker-safety] [--data <dir>] [--workdir <dir>] [--config <file>]Source: eaxScada/cmd/scada-server/backup_cmd.go
| Flag | Type | Default | Description |
|---|---|---|---|
-accept-weaker-safety |
bool | false |
Restore project safety settings weaker than the current ones (require_deploy_esign, live_editing, review before deploy, deploy gate); refused without it |
-config |
string | Path to the server’s YAML configuration file (its port and folders) | |
-confirm |
bool | false |
Write the restore. Without it the restore is a dry run: it verifies the backup, prints what it would replace and writes nothing |
-data |
string | The data folder to restore into (default: data in the working directory; its security and audit folders follow it) | |
-keep-channels-enabled |
bool | false |
Keep the driver channels enabled as in the backup (by default they are restored disabled: a replacement machine never starts talking to equipment by itself) |
-recovery-key |
string | The recovery key file downloaded when the key was made (required) | |
-workdir |
string | Directory holding config/ and data/ (default: the current directory) |