Command-line reference
Audience: operators. Every command and option of the ferropix and
ferropix-console binaries, as <binary> <command> --help prints it.
Configuration describes the configuration
every command reads, and a refused configuration exits 78 (EX_CONFIG).
The server
ferropix
The FerroPIX Master Patient Index over IHE PIXm, PDQm, PMIR, XCPD and the HL7 v2 PIX and PDQ transactions
Usage: ferropix [OPTIONS] <COMMAND>
Commands:
serve Serves until the process is asked to stop
config Works on the configuration
healthcheck Asks the server running beside this process whether it is ready, and exits 0 only when it is
db Works on the database
matching Works on the matching
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
-V, --version
Print version
ferropix serve
Serves until the process is asked to stop
Usage: ferropix serve [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix config
Works on the configuration
Usage: ferropix config [OPTIONS] <COMMAND>
Commands:
check Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix config check
Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
Usage: ferropix config check [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix healthcheck
Asks the server running beside this process whether it is ready, and exits 0 only when it is
Usage: ferropix healthcheck [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix db
Works on the database
Usage: ferropix db [OPTIONS] <COMMAND>
Commands:
migrate Applies the pending migrations and the `[[domain]]` seed, and exits
reseal Rewrites every sealed identifier column under the key `[db] data_key_file` names, reading the old key from its own file
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix db migrate
Applies the pending migrations and the `[[domain]]` seed, and exits
Usage: ferropix db migrate [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix db reseal
Rewrites every sealed identifier column under the key `[db] data_key_file` names, reading the old key from its own file
Usage: ferropix db reseal [OPTIONS] --old-key-file <PATH>
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--old-key-file <PATH>
The file holding the key the store is written under now
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix matching
Works on the matching
Usage: ferropix matching [OPTIONS] <COMMAND>
Commands:
estimate Estimates each field's `u` from how often its values occur in the store, and prints them as `[matching.fields]` tables
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix matching estimate
Estimates each field's `u` from how often its values occur in the store, and prints them as `[matching.fields]` tables
Usage: ferropix matching estimate [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
The console
ferropix-console
The FerroPIX Console
Usage: ferropix-console [OPTIONS] <COMMAND>
Commands:
serve Serves until the process is asked to stop
config Works on the configuration
healthcheck Asks the server running beside this process whether it is ready, and exits 0 only when it is
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
-V, --version
Print version
ferropix-console serve
Serves until the process is asked to stop
Usage: ferropix-console serve [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix-console config
Works on the configuration
Usage: ferropix-console config [OPTIONS] <COMMAND>
Commands:
check Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
help Print this message or the help of the given subcommand(s)
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix-console config check
Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
Usage: ferropix-console config check [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help
ferropix-console healthcheck
Asks the server running beside this process whether it is ready, and exits 0 only when it is
Usage: ferropix-console healthcheck [OPTIONS]
Options:
--config <PATH>
The TOML configuration file; unset, the product's `_CONFIG` variable names it
--set <KEY=VALUE>
One configuration key set over the file and the environment, as `key=value`; repeatable
-h, --help
Print help