All docsStellar ControlMission control · by Stellar Systems v1.1.0

Tools

CLI Reference

Every command, argument, option, environment variable and exit code of the stellar command line.

stellar is the command line of Stellar Control, for operators, procedure authors and CI. It works on a configuration repository (check, lock, compile, dry runs), talks to the API of a cell (telecommands, runs, alarms, passes, files), and to the message bus directly for a few commands.

Shell
curl -fsSL https://get.stellar-systems.eu/install.sh | sh
stellar --help
stellar <command> --help

The script detects the platform (Linux and macOS, x86_64 and aarch64; Linux x86_64 is published today), checks the SHA-256 of the archive, and installs stellar into ~/.local/bin (or /usr/local/bin as root). sh -s -- --version 0.1.0 installs a given version, --dir <dir> another directory; the versions are listed on get.stellar-systems.eu. A dry run (stellar run --dry) also needs the nats-server 2.12 binary of the message bus (NATS) on the PATH, from nats.io.

Common options#

Connection to the API#

Every command that talks to the API takes these options:

OptionEnvironmentDefaultMeaning
--api <url>STELLAR_APIhttp://localhost:8080API of Stellar Control, http:// or https://
--as <user>USERoperatorIdentity declared to the API (X-Stellar-User), where the environment accepts declared identities
--role <roles>STELLAR_ROLEnoneRoles declared with it, comma-separated (operator,supervisor)
--token <jwt>STELLAR_TOKENthe session of stellar loginOIDC token, preferred to the declared identity; without it, the session of stellar login for this API, if any
--api-ca <file>STELLAR_API_CAsystem rootsCA certificates (PEM) the certificate of an https:// API is checked against

See Identity and Roles.

Connection to the message bus#

stellar compile --publish and stellar sim connect directly to the message bus (NATS, see NATS and JetStream and NATS Accounts and Credentials):

OptionEnvironmentMeaning
--nats-credentials <file>STELLAR_NATS_CREDENTIALSCredentials file (JWT and seed)
--nats-ca <file>STELLAR_NATS_CACA certificates (PEM): TLS only
--nats-cert <file>STELLAR_NATS_CERTClient certificate (PEM), for mTLS; requires --nats-key
--nats-key <file>STELLAR_NATS_KEYPrivate key of the client certificate; requires --nats-cert

Global configuration#

check, lock, compile, generate and run --dry take --config <file> (STELLAR_CONFIG): the global configuration, for the compilation parameters (executor.default_retry, derived.max_window) and, for a dry run, executor.ack_timeout. Defaults apply without it.

Exit codes#

CodeMeaning
0Success
1The outcome is a failure: compilation errors, a telecommand not VERIFIED nor COMPLETE, a run that failed, a transfer not verified, a timeout of watch, a refused send, a simulator error
2The command could not do its job: invalid arguments, unreadable file, API or message bus unreachable, a request refused by the API (its errors are printed as error[<code>]: <message> with help:)

Configuration repository#

stellar check#

text
stellar check [REPOSITORY] [--locked] [--format human|json] [--config FILE]

Compiles the catalogues, topology, steps, procedures and simulations of a repository, prints the diagnostics, then what must be validated again.

Argument or optionDefaultMeaning
REPOSITORY.Repository root
--lockedoffAlso fail when steps or procedures must be validated again: the check of merge requests
--formathumanhuman: rendered diagnostics on standard error and a summary; json: one JSON object per line on standard output, diagnostics (with LSP positions) then revalidations {"revalidate", "library", "name", "reasons"}

Exits with 1 on an error, and with --locked on a pending validation.

text
Checked 5 catalogues, 1 library, the topology, 2 simulations (6 steps, 9 procedures): 0 errors, 0 warnings.

stellar fetch#

text
stellar fetch [REPOSITORY] [--update]

Fetches the packages of other repositories declared in stellar.yaml into the cache (STELLAR_CACHE), through git, and writes their commit and hash to packages.lock. A package already locked stays at its commit, its files checked again; --update takes the current commit of each tag or revision. The only command of the repository that reaches the network. See Several repositories.

stellar lock#

text
stellar lock [REPOSITORY] [--config FILE]

Rewrites the stellar.lock of every library from the current sources: it records the validation of the steps and procedures. Refuses (exit 1) while the repository has errors. See Libraries and Validation.

stellar compile#

text
stellar compile [REPOSITORY] [--output FILE] [--publish NATS_URL] [--config FILE] [NATS options]

Compiles the snapshot, writes it to --output (default <hash>.ir in the current directory) and prints its hash on standard output. With --publish, stores it in the store of published configurations (stellar_ir) of that message bus and makes it the current configuration (stellar_config, key current, with $USER as publisher). Exit 1 on compilation errors.

Shell
stellar compile my-config --publish tls://nats.example.org:4222 \
    --nats-credentials ci.creds --nats-ca ca.pem

stellar schema#

text
stellar schema <KIND>

Prints the JSON Schema of a file or message kind, for editors, CI and components written in other languages.

KindSchema of
catalogueA catalogue of a platform
libraryThe manifest of a step library (package.yaml)
repositoryThe manifest of the repository (stellar.yaml): packages of other repositories
topologyThe topology
simulationA simulation of a target
registration, registration-replyA registration of an instance, and its reply
heartbeatA heartbeat
statusThe reply to the status control verb
semantic-tcA telecommand to encode
tc-eventA transition of a telecommand
run-eventAn event of a run
bindingsThe links bound to an instance
sample, raw-sampleA measure sample; a raw value decoded by a driver
throughputA throughput report of a gateway
alarm-event, alarm-record, alarm-commandA transition, the current state, a command of an operator on an alarm
passA pass of a target over a ground station
schedule, schedule-ruleA run scheduled on a pass; a recurring rule
transferA file transfer
encode-request, encode-replyThe encode control verb of a driver: its request and its reply
decode-request, decode-replyThe decode control verb of a driver: its request and its reply

stellar generate#

text
stellar generate driver <CATALOGUE> -o <DIR> [--software NAME] [--version VERSION] [common options]
stellar generate client <LIBRARY> -o <DIR> [common options]
common options: [--repository DIR] [--lang python] [--check] [--config FILE]
stellar generate simulation <CATALOGUE> [--name NAME] [-o FILE] [--force] [--repository DIR] [--config FILE]

Generates Python code from the compiled repository: driver, the typed skeleton of a driver of a catalogue; client, typed functions launching the procedures of a library through the API. simulation writes the simulation of a platform from its catalogue, simulations/<name>.yaml (<package>-sim by default), after checking each telecommand plays as its catalogue verifies it; an existing file is kept without --force. See A simulation written from the catalogue.

Argument or optionDefaultMeaning
CATALOGUEdriver: catalogue package (hsc-100), or hsc-100@1.0.0 among several versions
LIBRARYclient: library of steps and procedures (hsc-100-ops)
-o, --outputrequiredOutput directory, a Python package
--softwarethe catalogue packagedriver: name of the driver software
--version0.1.0driver: version of the driver software
--repository.Configuration repository
--langpythonLanguage of the SDK (Python only)
--checkoffWrite nothing; fail when the generated modules do not match the configuration (CI)
--configSTELLAR_CONFIGGlobal configuration

The generator's files (_generated.py, and the __init__.py of a client) are written every time; the developer's (__init__.py, driver.py, test_driver.py of a driver) only when missing. Exits with 1 when the repository has errors or, with --check, a generated file is not up to date; with 2 for an unknown catalogue or library.

Shell
stellar generate driver hsc-100 --repository . -o drivers/hsc_100 --software hsc-100-csp
stellar generate client hsc-100-ops --repository . -o hsc_100_ops

These commands run at the root of the Payload integration repository: its driver drivers/hsc_100 was made with the first one.

See Code Generators.

Telecommands and values#

stellar send#

text
stellar send <TARGET> <TELECOMMAND> [NAME=VALUE]... [--instance I] [--link L] [--environment E] [API options]

Submits a direct telecommand and follows its acknowledgements until its final state. Succeeds on VERIFIED or COMPLETE; any other final state, or a refusal, exits with 1.

Argument or optionMeaning
TARGETTarget (cam-sim-1)
TELECOMMANDping (name unique in the platform), eps.housekeeping or channel[PAYLOAD].switch_on
NAME=VALUEArguments: true, false, a number, or text (temperature=12 degC, mode=READY, hexadecimal bytes)
--instanceInstance of a multi-instance component, when not written in the telecommand
--linkLink, when not the default one
--environmentEnvironment, which selects the parameters of the link; required when the link overrides them by environment and the target is engaged in several
Shell
stellar send sat-sim 'channel[PAYLOAD].switch_on'
stellar send cam-sim-1 configure_acquisition 'lines=512' 'integration_time=2000 us'
stellar send flatsat-1 channel.switch_on --instance PAYLOAD --link rf
stellar send cam-em-1 ping --environment BENCH

See Direct Telecommands and Values.

stellar encode and stellar decode#

text
stellar encode <TARGET> <TELECOMMAND> [NAME=VALUE]... [--instance I] [--link L] [--environment E] [--driver D] [--hex] [API options]
stellar decode <TARGET> [FRAME_HEX] [--file F | --text T] [--link L] [--environment E] [--driver D] [API options]

Ask a driver what it makes of a telecommand or a frame, sending and publishing nothing: the driver bound to the link, or the one named with --driver (a driver being developed). encode resolves the telecommand like stellar send and prints the frame (a hexadecimal dump, and the text of a text protocol); --hex prints the frame alone. decode takes the frame in hexadecimal (spaces allowed), from a file, or as text, and prints each sample with its raw value and its value calibrated by the catalogue. See Checking a driver on a running cell.

Shell
stellar encode cam-em-1 set_detector_setpoint 'temperature=12 degC' --environment BENCH
stellar encode psu-1 set_voltage 'voltage=12 V' --environment LAB --hex
stellar decode psu-1 --text 'VOLT 11.9;CURR 0.5;OUTP 1'
stellar decode sat-fm-1 --file frame.bin --link umbilical

stellar watch#

text
stellar watch <TARGET> [MEASURE]... [--until VALUE] [--timeout SECONDS] [API options]
stellar watch <RUN_ID> [API options]

With a target, prints the current values, then each update. With a run identifier (a ULID), follows the run like stellar run (see below).

Argument or optionMeaning
MEASUREchannel[PAYLOAD].enabled (one instance), channel.enabled (every instance) or responding (any component); every measure without
--untilStop with success once a watched value equals this (true, READY, 18.0)
--timeoutGive up after this many seconds, exit 1
Shell
stellar watch sat-sim 'thermal[PAYLOAD].temperature'
stellar watch cam-sim-1 camera.mode --until READY --timeout 180

stellar monitor#

text
stellar monitor [API options]

Stellar Control live in the terminal, through the API like the web console:

PanelContentSource
TargetsEach target, ready (green) or not (red), held by a run (⚑), its platformGET /v1/topology, every 2 s
ValuesThe current values of the target chosen, with their timeGET /v1/targets/{target}/values/watch
Runs in progressProcedure, targets, step, or suspended, or waiting for an answerGET /v1/runs, every 2 s
AlarmsEvery alarm not NORMAL, critical in redGET /v1/alarms, at once on a transition (/v1/alarms/watch)
TelecommandsEach telecommand from the start of the monitor, one line, its last state and why it failedGET /v1/tc/watch

↑/↓ (or k/j) choose the target, q, Esc or Ctrl-C quit. A cut WebSocket is taken up again; with stellar login, the session is renewed as for any command.

Shell
stellar monitor --api https://ada-1.control.stellar-systems.eu

Modes and parameters#

stellar mode#

text
stellar mode <TARGET> [MODE] [API options]

Without MODE, prints the mode the target is in, where it comes from, and the modes of the topology:

text
cam-sim-1: Cold (set by run 01JA2Z… at 2026-10-02T10:16:03Z)
modes: Nominal, Cold

The origin is default for the default mode never set, set by <operator> at <time>, or set by run <id> at <time> after a configure. A topology without modes prints chamber-sim: the topology declares no modes.

With MODE, records that the target is in that mode (PUT /v1/targets/{target}/mode), as the identity of the command. Nothing is sent to the target: a configure in a procedure applies a mode. Refused while a run holds the target (mode::target-held), or for a mode the topology does not declare (mode::unknown); a refusal exits with 2.

stellar parameters#

text
stellar parameters <TARGET> [--environment ENV] [API options]

Prints the parameters of the components of the target: the value in its current mode, the value in each mode, and the readback with whether it matches:

text
cam-em-1: mode Cold
camera.detector_setpoint  12.0 degC  [Nominal=18.0, Cold=12.0]  read 18.0 DIFFERS

Values are printed as JSON (an enum value in quotes), in the unit of the parameter.

A readback line ends with ok, DIFFERS (outside the tolerance of the parameter), no verdict without a value, or not read yet. --environment selects the overrides of an environment, when the target is engaged in several; the only environment of the target otherwise.

See Modes and Parameters.

Runs#

stellar run#

text
stellar run <REQUEST> [--detach] [API options]
stellar run --dry <REQUEST> [--repository DIR] [--nats-server BIN] [--seed N] [--speed X] [--report FILE] [--config FILE]

Launches a run from a request file (YAML: run, environment, targets, inputs, and library when several libraries have a procedure of that name), then follows its log until the end; succeeds when the procedure passes. Warnings of the API (a run that may outlast the pass in progress) are printed on standard error. While the run waits for an operator, the follow-up prints the command to type (stellar answer <run> yes|no|<value>…).

OptionDefaultMeaning
--detachoffPrint the run identifier and return without following it
--dryoffDry run: a local message bus, the components and a simulated target per role, on the snapshot of the local repository; environment and targets are ignored
--repository.Configuration repository of a dry run
--nats-servernats-server (STELLAR_NATS_SERVER)nats-server binary of the message bus of a dry run
--seedthat of each simulationSeed of the simulations of a dry run
--speed1Speed of the simulated time of a dry run (2 runs the simulations twice as fast)
--reportnoneFile to write the HTML report of a dry run to
--on-decisionfailHow a dry run answers a decision: fail (the if failed blocks run, the run ends failed), skip, replay (3 times at most), abort, ask on the terminal
--fault—A fault to switch on during a dry run, ROLE:FAULT[@[STEP+]DELAY][~OFF] (chamber:vacuum_leak@Plateau+10s~60s), after the faults of the request; repeatable. See Faults scheduled by a run

A dry run gives each role a target dry-<role>, played by the simulation of the repository whose platform has the version of the library — or, when simulations/ has none, by one written on the fly from its catalogue (as stellar generate simulation does) — in a SIM environment without human orchestration; the values of its parameters in each mode are those of a target of the same platform in the topology. It is the CI of a procedure repository:

Shell
stellar run --dry runs/first-light.yaml --repository . --report report.html

See Running Procedures and Simulated Targets.

stellar status#

text
stellar status <RUN_ID> [API options]

Prints the procedure, the step running or last run, and the state: running, suspended, or finished: PASSED|FAILED with the reason; and the question or decision waiting, with its step.

stellar answer#

text
stellar answer <RUN_ID> <ANSWER> [--path STEP] [API options]

Answers the question or decision the run waits for, found in its state unless --path names the step. yes confirms, no refuses, replay, skip, fail or abort answer a decision, anything else is a typed value (parsed as JSON when it can be: 27.9, true, else text such as "27.9 V").

stellar suspend, stellar resume, stellar abort#

text
stellar suspend <RUN_ID> [API options]
stellar resume <RUN_ID> [--choice replay|skip|fail|abort] [API options]
stellar abort <RUN_ID> [API options]

Suspend at the end of the current instruction (the leases are released); resume, replay-ing the step where the run stopped (default), skip-ping it, fail-ing it (its if failed blocks run), or abort-ing; abort for good. See Questions, Decisions and Control.

stellar report#

text
stellar report <RUN_ID> [-o|--output FILE] [API options]

Gets the HTML test report of a run, to a file or the standard output. See Evidence and Reports.

Alarms#

text
stellar alarms [--target T] [--all] [API options]
stellar alarms [--target T] watch
stellar alarms ack <TARGET> <ALARM>
stellar alarms shelve <TARGET> <ALARM> --for <DURATION>
stellar alarms unshelve <TARGET> <ALARM>
CommandEffect
alarmsThe alarms not NORMAL or shelved; --all every alarm recorded; --target those of one target
alarms watchPrints every transition from now, in order
alarms ackAcknowledges an alarm: thermal[PAYLOAD].temperature, or camera.safe_mode without instance
alarms shelveShelves an alarm for a bounded duration (30 min, 2h, at most alarms.max_shelve): no reaction while shelved
alarms unshelveEnds the shelving

--target, --all and the API options go before the subcommand. See Alarm Handling.

Passes and schedules#

stellar passes#

text
stellar passes [--target T] [--all] [API options]
stellar passes import <FILE>

Lists the passes not over yet (--all: those over too), with the gateway checked for each. import writes the passes of a file as the feeder named by --as (or the token): with a replace_window: {source, target, from, to} header, it sends a complete snapshot of that window and prints what was written and cancelled.

YAML
replace_window: {source: provider, target: sat-fm-1, from: 2026-10-02T00:00:00Z, to: 2026-10-03T00:00:00Z}
passes:
  - id: gs-a-2026-10-02T1014Z-fm1
    target: sat-fm-1
    station: gs-a
    aos: 2026-10-02T10:14:32Z
    los: 2026-10-02T10:24:05Z
    max_elevation: 47.3 deg
    status: booked

See Passes.

stellar schedules#

text
stellar schedules [--pass P] [--all] [API options]
stellar schedules add <FILE>
stellar schedules cancel <ID>
stellar schedules validate <ID>
stellar schedules rules
stellar schedules remove-rule <ID>
CommandEffect
schedulesThe schedules not final; --all also fired, missed and cancelled; --pass those of one pass
schedules addSchedules the runs of a file (schedule: with id, pass, start, run, targets, inputs) and writes its recurring rules (rules: with target and filter)
schedules cancelCancels a schedule not started
schedules validateValidates the plan of a schedule, as a supervisor
schedules rulesLists the recurring rules
schedules remove-ruleRemoves a rule; the schedules it made remain

See Scheduling.

Files#

CommandEffect
stellar files <TARGET> [--refresh]The on-board directory from the last listing; --refresh sends the listing telecommand first and waits (up to 10 s) for the new listing
stellar download <TARGET> <FILE_ID> [--priority N] [--wait]Downloads the current generation of a file, as last listed; --priority (default 0, higher first); --wait follows it and succeeds when VERIFIED or PROCESSED
stellar transfers [--target T]The file transfers
stellar put <FILE>Stores a content to upload; prints its SHA-256 (the value of a file input of a run) and size

See File Transfers.

Simulated targets#

text
stellar sim [--nats URL] [NATS options] faults <GATEWAY>
stellar sim [--nats URL] [NATS options] fault <GATEWAY> <NAME> on|off
stellar sim check <SIMULATION> [--repository DIR] [--config FILE]

faults and fault talk to a simulated gateway over the message bus (--nats, STELLAR_NATS_URL, default nats://localhost:4222): they list its fault scenarios and whether each is active, or switch one. They exit with 1 when the simulator refuses.

check needs neither the message bus nor a running simulator: it checks a simulation of the repository (simulations/<SIMULATION>.yaml) against its catalogue, each telecommand sent alone to the engine and its verifications evaluated in simulated time, and prints a verdict per telecommand; it exits with 1 when one fails. stellar generate simulation writes a simulation from a catalogue and runs the same check. See Simulated Targets.

Shell
stellar sim fault cam-sim-gw-1 tec_fault on
stellar sim check hsc-100-sim --repository .

Identity#

CommandEffect
stellar login [API options]Signs in at the identity provider of the API (device authorization: a code to approve in a browser) and keeps the session in ~/.config/stellar/credentials; the commands to that API then use it, renewed by itself
stellar logout [API options]Forgets the session of the API
stellar auth dev-key <SEED> [--jwks FILE]Creates a key of the development identity provider (benches and tests only) and prints its JWK set, or writes it to --jwks
stellar auth dev-token --key SEED --sub SUB [--role R]... [--ttl S] [--issuer I] [--audience A]Prints a development token; --ttl in seconds, 8 h by default
stellar auth nats-creds <FILE> [API options]Writes credentials of follow-up for the message bus (run events, alarm transitions), exchanged against the token of --token

See Identity and Roles and NATS Accounts and Credentials.

In CI#

YAML
# Merge requests of a configuration repository
- stellar check . --locked
- stellar run --dry runs/first-light.yaml --repository . --report report.html
# Default branch
- stellar compile . --publish "$STELLAR_NATS_URL"

See Configuration Repository.

↑↓ to moveEnter to open