# Command line Every `schedr` command, generated from the code (`schedr --help` shows the same). ## Options of every command | Argument | Description | |---|---| | `--config ` | The configuration file (otherwise `SCHEDR_CONFIG_FILE`, then /etc/schedr/config.toml) | ## `schedr master` Run the master: scheduling loop, state in the database, internal API for workers ```text schedr master [OPTIONS] ``` | Argument | Description | |---|---| | `--migrate` | Migrate the database at start, holding the master's lease, when its schema isn't up to date, instead of refusing it: for a deployment that can't migrate as a step of its own (e.g. an init container without a mesh's sidecar) | ## `schedr worker` Run a worker agent ```text schedr worker [OPTIONS] ``` ## `schedr webserver` Run the webserver: the REST API used by the web UI and the CLI ```text schedr webserver [OPTIONS] ``` ## `schedr ui` Run the web UI over webservers' APIs (`[ui] deployments`) ```text schedr ui [OPTIONS] ``` ## `schedr standalone` Run every role in one process (SQLite or Postgres): local development, or one pod in production ```text schedr standalone [OPTIONS] ``` | Argument | Description | |---|---| | `--listen
` | The address the REST API listens on (default 127.0.0.1); e.g. 0.0.0.0 in a pod behind a Service. The master's gRPC stays on loopback | | `--migrate` | Migrate the database at start (as `schedr db migrate` does) instead of refusing a schema that isn't up to date: for a laptop. In production, migrate as a step of its own (the Helm chart's init container) | | `--no-ui` | Serve only the API on its port, not the web UI: one deployment of a `schedr ui` elsewhere (a federation of standalones) | | `--dag-path ` | A folder of DAG files, repeated for more; `.` is the working folder. Given, these are the DAG roots instead of `SCHEDR_DAG_PATH` and `[dags] path`, each named after its folder | | `--script-path ` | A folder of scripts, repeated for more; `.` is the working folder. Given, these are the script roots instead of `SCHEDR_SCRIPT_PATH` and `[scripts] path` | ## `schedr db` Manage the database schema ```text schedr db [OPTIONS] ``` ## `schedr db migrate` Apply the migrations not applied yet, holding the master's lease (refused while a master holds it) ```text schedr db migrate [OPTIONS] ``` | Argument | Description | |---|---| | `--wait` | Wait until no master holds the lease (one stopped, or dead and its lease expiring) instead of refusing | ## `schedr db status` Show whether the schema fits this version of schedr ```text schedr db status [OPTIONS] ``` ## `schedr secrets` Set, list, read and export the secrets of standalone's `db` storage (straight in the database, as `db` is; values encrypted under `SCHEDR_SECRET_KEY`) ```text schedr secrets [OPTIONS] ``` ## `schedr secrets set` Set keys of the secret at PATH (made if there is none); its other keys are kept ```text schedr secrets set [OPTIONS] ... ``` | Argument | Description | |---|---| | `` | The secret's path, e.g. `etl/db` | | `` | `key=value`; `key=@FILE` for a file's content (exactly), `key=-` for standard input (one trailing newline dropped). A value starting with `@` is set with `-` | ## `schedr secrets list` List the secrets' paths and key names (never the values) ```text schedr secrets list [OPTIONS] [PREFIX] ``` | Argument | Description | |---|---| | `` | Only the paths starting with it, e.g. `etl/` | ## `schedr secrets get` Print one value (`path#key`), or a whole secret as a JSON object (`path`) ```text schedr secrets get [OPTIONS] ``` | Argument | Description | |---|---| | `` | `path#key` or `path` | ## `schedr secrets delete` Delete the secret at PATH, all its keys ```text schedr secrets delete [OPTIONS] ``` | Argument | Description | |---|---| | `` | The secret's path | ## `schedr secrets export` Write every secret for Vault: `DIR/.json` each (mode 0600), loaded with `vault kv put secret/ @DIR/.json`. DIR must be empty or missing ```text schedr secrets export [OPTIONS] --to ``` | Argument | Description | |---|---| | `--to ` | The directory to write (made if missing) | ## `schedr secrets new-key` Print a new random key for `SCHEDR_SECRET_KEY` ```text schedr secrets new-key [OPTIONS] ``` ## `schedr dags` List, pause, check and test DAGs ```text schedr dags [OPTIONS] ``` ## `schedr dags list` List DAGs ```text schedr dags list [OPTIONS] ``` ## `schedr dags pause` Stop the scheduler creating runs of a DAG ```text schedr dags pause [OPTIONS] ``` | Argument | Description | |---|---| | `` | The DAG's ID | ## `schedr dags unpause` Let the scheduler create runs of a DAG again ```text schedr dags unpause [OPTIONS] ``` | Argument | Description | |---|---| | `` | The DAG's ID | ## `schedr dags check` Parse DAG files and `schedr.toml` files locally and report errors ```text schedr dags check [OPTIONS] ``` | Argument | Description | |---|---| | `` | A file or directory | | `--against ` | Fail if an active worker at this server runs an older schedr (major.minor) than this one | ## `schedr dags test` Run one real run of a DAG locally and report each task (no server) ```text schedr dags test [OPTIONS] ``` | Argument | Description | |---|---| | `` | The DAG's ID | | `--for