Skip to content

Command Line Interface

Running turna without a subcommand loads configuration and starts configured loads, preprocessors, servers, and services. If no configuration is found, Turna starts with the defaults and has nothing to run.

Root Command

sh
turna [flags]

Flags:

FlagDefaultDescription
-l, --log-levelinfoLog level. Command-line value overrides loaded config.
--config-consulfalseEnable Consul as a Turna config source.
--config-vaultfalseEnable Vault as a Turna config source. Requires PREFIX_VAULT.
--config-filetrueEnable file-based config loading.
-v, --versionPrint version metadata.

API Command

sh
turna api --url http://localhost:8080/health --method GET

The api command is a small HTTP caller. It exits with an error when a response status is outside the 2xx range.

Flags:

FlagDefaultDescription
-u, --urlURL to call. Can be provided more than once.
-m, --methodGETHTTP method.
-k, --insecurefalseSkip TLS certificate verification.
-s, --slientfalseSuppress response body output. The flag name is currently spelled slient in the CLI.
--pingfalseDeprecated compatibility flag.

Shell Completion

Cobra provides completion subcommands through turna completion. Run turna completion --help for the supported shells.