environment
$ ./osctrl-cli environment -hNAME: osctrl-cli environment - Commands for TLS environment
USAGE: osctrl-cli environment [command [command options]]
COMMANDS: add, a Add a new TLS environment update, u Update an existing TLS environment (works with --db and through the API; stored flags are regenerated when a plugin flag, --hostname or an interval is given, resetting plugin choices to their defaults, so hand-edited flags are lost) add-scheduled-query Add a new query to the osquery schedule for an environment add-posture-queries Add posture profile queries to the osquery schedule for an environment remove-scheduled-query Remove query from the osquery schedule for an environment add-osquery-option Add or change an osquery option to the configuration remove-osquery-option Remove an option for the osquery configuration add-new-pack Add a new query pack to the osquery configuration add-local-pack Add a new local query pack to the osquery configuration remove-pack Remove query pack from the osquery configuration add-query-to-pack Add a new query to the given query pack remove-query-from-pack Remove query from the given query pack node-actions Node enroll actions for an environment delete, d Delete an existing TLS environment show, s Show a TLS environment list, l List all existing TLS environments
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd environment
Section titled “Add environment”$ ./osctrl-cli environment add -hNAME: osctrl-cli environment add - Add a new TLS environment
USAGE: osctrl-cli environment add [options]
OPTIONS: --name string, -n string Environment name to be added --hostname string, --host string Environment host to be added --debug, -d Environment debug capability --certificate string, --crt string Certificate file to be read --config, -c Generate flags for osquery's config plugin --logger, -l Generate flags for osquery's logger plugin --query, -q Generate flags for osquery's on-demand query plugin --carve, -C Generate flags for osquery's file carve plugin --help, -h show help
GLOBAL OPTIONS: --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationUpdate environment
Section titled “Update environment”$ ./osctrl-cli environment update -hNAME: osctrl-cli environment update - Update an existing TLS environment (works with --db and through the API; stored flags are regenerated when a plugin flag, --hostname or an interval is given, resetting plugin choices to their defaults, so hand-edited flags are lost)
USAGE: osctrl-cli environment update [options]
DESCRIPTION: With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --debug, -d Environment debug capability --enroll, -e Environment enroll capability --hostname string, --host string Environment host to be updated --logging int, -l int Logging interval in seconds (default: 0) --config int, -c int Config interval in seconds (default: 0) --query int, -q int Query interval in seconds (default: 0) --deb string, --deb-package string DEB package to be updated --rpm string, --rpm-package string RPM package to be updated --msi string, --msi-package string MSI package to be updated --pkg string, --pkg-package string PKG package to be updated --config-plugin Generate flags for osquery's config plugin --logger-plugin Generate flags for osquery's logger plugin --query-plugin Generate flags for osquery's on-demand query plugin --carve-plugin Generate flags for osquery's file carve plugin --help, -h show help
GLOBAL OPTIONS: --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd posture queries
Section titled “Add posture queries”$ ./osctrl-cli environment add-posture-queries -hNAME: osctrl-cli environment add-posture-queries - Add posture profile queries to the osquery schedule for an environment
USAGE: osctrl-cli environment add-posture-queries [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --profile string, -p string Posture profile ID to add (win-server, linux-server, macos-laptop, win-laptop, linux-laptop) --prefix string, -P string Posture query name prefix (default: "osctrl:posture:") --interval int, -i int Override posture query interval in seconds; 0 keeps profile defaults (default: 0) --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd scheduled query to environment
Section titled “Add scheduled query to environment”$ ./osctrl-cli environment add-scheduled-query -hNAME: osctrl-cli environment add-scheduled-query - Add a new query to the osquery schedule for an environment
USAGE: osctrl-cli environment add-scheduled-query [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --query string, -q string Query to be added to the schedule --query-name string, -Q string Query name to be idenfified in the schedule --interval int, -i int Query interval in seconds (default: 0) --platform string, -p string Restrict this query to a given platform --version string, -v string Only run on osquery versions greater than or equal-to this version --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation promptsRemove scheduled query from environment
Section titled “Remove scheduled query from environment”$ ./osctrl-cli environment remove-scheduled-query -hNAME: osctrl-cli environment remove-scheduled-query - Remove query from the osquery schedule for an environment
USAGE: osctrl-cli environment remove-scheduled-query [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --query-name string, -q string Query to be removed from the schedule --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd osquery option to environment
Section titled “Add osquery option to environment”$ ./osctrl-cli environment add-osquery-option -hNAME: osctrl-cli environment add-osquery-option - Add or change an osquery option to the configuration
USAGE: osctrl-cli environment add-osquery-option [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --option string, -o string Option name to be added --type string, -t string Option type for the value (string, int, bool) --string-value string, -s string String value for the option --int-value int, -i int Integer value for the option (default: 0) --bool-value, -b Boolean value for the option --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --version, -v Print version informationRemove osquery option from environment
Section titled “Remove osquery option from environment”$ ./osctrl-cli environment remove-osquery-option -hNAME: osctrl-cli environment remove-osquery-option - Remove an option for the osquery configuration
USAGE: osctrl-cli environment remove-osquery-option [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --option string, -o string Option name to be added --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd query pack to environment
Section titled “Add query pack to environment”$ ./osctrl-cli environment add-new-pack -hNAME: osctrl-cli environment add-new-pack - Add a new query pack to the osquery configuration
USAGE: osctrl-cli environment add-new-pack [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --pack string, -p string Pack name to be added --platform string, -P string Restrict this pack to a given platform --version string, -v string Only run on osquery versions greater than or equal-to this version --shard int, -s int Restrict this query to a percentage (1-100) of target hosts (default: 0) --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT]Add local query pack to environment
Section titled “Add local query pack to environment”$ ./osctrl-cli environment add-local-pack -hNAME: osctrl-cli environment add-local-pack - Add a new local query pack to the osquery configuration
USAGE: osctrl-cli environment add-local-pack [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --pack string, -p string Pack name to be added --pack-path string, -P string Local full path to load the query pack within osquery --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationRemove query pack from environment
Section titled “Remove query pack from environment”$ ./osctrl-cli environment remove-pack -hNAME: osctrl-cli environment remove-pack - Remove query pack from the osquery configuration
USAGE: osctrl-cli environment remove-pack [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --pack string, -p string Pack name to be removed --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationAdd query to pack in environment
Section titled “Add query to pack in environment”$ ./osctrl-cli environment add-query-to-pack -hNAME: osctrl-cli environment add-query-to-pack - Add a new query to the given query pack
USAGE: osctrl-cli environment add-query-to-pack [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --pack string, -p string Environment to be updated --query string, -q string Query to be added to the pack --query-name string, -Q string Query name to be added to the pack --interval int, -i int Query interval in seconds (default: 0) --platform string, -P string Restrict this query to a given platform --version string, -v string Only run on osquery versions greater than or equal-to this version --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation promptsRemove query from pack in environment
Section titled “Remove query from pack in environment”$ ./osctrl-cli environment remove-query-from-pack -hNAME: osctrl-cli environment remove-query-from-pack - Remove query from the given query pack
USAGE: osctrl-cli environment remove-query-from-pack [options]
DESCRIPTION: In API mode the edit is read-modify-write: the CLI reads the whole section, changes it and writes the whole section back. It is not atomic: a change saved by someone else in between (for example in the UI) is overwritten. With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be updated --pack string, -p string Pack name to be updated --query-name string, -q string Query name to be removed --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationNode actions
Section titled “Node actions”$ ./osctrl-cli environment node-actions -hNAME: osctrl-cli environment node-actions - Node enroll actions for an environment
USAGE: osctrl-cli environment node-actions [command [command options]]
COMMANDS: show-flags, s Show the enroll flags for a TLS environment new-flags, f Generate new enroll flags and save them for a TLS environment gen-flags, F Generate and show the enroll flags for a TLS environment quick-add, q Generates one-liner for quick enrolling nodes to a TLS environment extend-enroll Extend the existing enroll URL for a TLS environment rotate-enroll Rotate to a new enroll URL for a TLS environment expire-enroll Expire the existing enroll URL for a TLS environment notexpire-enroll Set the existing enroll URL for a TLS environment to NOT expire quick-remove, Q Generates one-liner for quick removing nodes to a TLS environment extend-remove Extend the existing enroll URL for a TLS environment rotate-remove Rotate to a new enroll URL for a TLS environment expire-remove Expire the existing remove URL for a TLS environment notexpire-remove Set the existing remove URL for a TLS environment to NOT expire secret, x Output the secret to enroll nodes in an environment certificate, c, cert Output the certificate to enroll nodes in an environment
OPTIONS: --name string, -n string Environment name to be updated --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationShow flags
Section titled “Show flags”$ ./osctrl-cli environment node-actions show-flags -hNAME: osctrl-cli environment node-actions show-flags - Show the enroll flags for a TLS environment
USAGE: osctrl-cli environment node-actions show-flags [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedNew flags
Section titled “New flags”$ ./osctrl-cli environment node-actions new-flags -hNAME: osctrl-cli environment node-actions new-flags - Generate new enroll flags and save them for a TLS environment
USAGE: osctrl-cli environment node-actions new-flags [options]
OPTIONS: --config, -c Generate flags for osquery's config plugin --logger, -l Generate flags for osquery's logger plugin --query, -q Generate flags for osquery's on-demand query plugin --carve, -C Generate flags for osquery's file carve plugin --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedGenerate flags
Section titled “Generate flags”$ ./osctrl-cli environment node-actions gen-flags -hNAME: osctrl-cli environment node-actions gen-flags - Generate and show the enroll flags for a TLS environment
USAGE: osctrl-cli environment node-actions gen-flags [options]
OPTIONS: --certificate string, --crt string Certificate file path to be used --secret string, -s string Secret file path to be used --config, -c Generate flags for osquery's config plugin --logger, -l Generate flags for osquery's logger plugin --query, -q Generate flags for osquery's on-demand query plugin --carve, -C Generate flags for osquery's file carve plugin --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --version, -v Print version information --name string, -n string Environment name to be updatedQuick add
Section titled “Quick add”$ ./osctrl-cli environment node-actions quick-add -hNAME: osctrl-cli environment node-actions quick-add - Generates one-liner for quick enrolling nodes to a TLS environment
USAGE: osctrl-cli environment node-actions quick-add [options]
OPTIONS: --target string, -t string Type of one-liner script (default: "sh") --insecure, -i Generate insecure one-liner, without HTTPS --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedExtend enroll
Section titled “Extend enroll”$ ./osctrl-cli environment node-actions extend-enroll -hNAME: osctrl-cli environment node-actions extend-enroll - Extend the existing enroll URL for a TLS environment
USAGE: osctrl-cli environment node-actions extend-enroll [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedRotate enroll
Section titled “Rotate enroll”$ ./osctrl-cli environment node-actions rotate-enroll -hNAME: osctrl-cli environment node-actions rotate-enroll - Rotate to a new enroll URL for a TLS environment
USAGE: osctrl-cli environment node-actions rotate-enroll [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedExpire enroll
Section titled “Expire enroll”$ ./osctrl-cli environment node-actions expire-enroll -hNAME: osctrl-cli environment node-actions expire-enroll - Expire the existing enroll URL for a TLS environment
USAGE: osctrl-cli environment node-actions expire-enroll [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedNot expire enroll
Section titled “Not expire enroll”$ ./osctrl-cli environment node-actions notexpire-enroll -hNAME: osctrl-cli environment node-actions notexpire-enroll - Set the existing enroll URL for a TLS environment to NOT expire
USAGE: osctrl-cli environment node-actions notexpire-enroll [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedQuick remove
Section titled “Quick remove”$ ./osctrl-cli environment node-actions quick-remove -hNAME: osctrl-cli environment node-actions quick-remove - Generates one-liner for quick removing nodes to a TLS environment
USAGE: osctrl-cli environment node-actions quick-remove [options]
OPTIONS: --target string, -t string Type of one-liner script (default: "sh") --insecure, -i Generate insecure one-liner, without HTTPS --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedExtend remove
Section titled “Extend remove”$ ./osctrl-cli environment node-actions extend-remove -hNAME: osctrl-cli environment node-actions extend-remove - Extend the existing enroll URL for a TLS environment
USAGE: osctrl-cli environment node-actions extend-remove [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedRotate remove
Section titled “Rotate remove”$ ./osctrl-cli environment node-actions rotate-remove -hNAME: osctrl-cli environment node-actions rotate-remove - Rotate to a new enroll URL for a TLS environment
USAGE: osctrl-cli environment node-actions rotate-remove [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedExpire remove
Section titled “Expire remove”$ ./osctrl-cli environment node-actions expire-remove -hNAME: osctrl-cli environment node-actions expire-remove - Expire the existing remove URL for a TLS environment
USAGE: osctrl-cli environment node-actions expire-remove [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedNot expire remove
Section titled “Not expire remove”$ ./osctrl-cli environment node-actions notexpire-remove -hNAME: osctrl-cli environment node-actions notexpire-remove - Set the existing remove URL for a TLS environment to NOT expire
USAGE: osctrl-cli environment node-actions notexpire-remove [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedSecret
Section titled “Secret”$ ./osctrl-cli environment node-actions secret -hNAME: osctrl-cli environment node-actions secret - Output the secret to enroll nodes in an environment
USAGE: osctrl-cli environment node-actions secret [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedCertificate
Section titled “Certificate”$ ./osctrl-cli environment node-actions certificate -hNAME: osctrl-cli environment node-actions certificate - Output the certificate to enroll nodes in an environment
USAGE: osctrl-cli environment node-actions certificate [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information --name string, -n string Environment name to be updatedDelete environment
Section titled “Delete environment”$ ./osctrl-cli environment delete -hNAME: osctrl-cli environment delete - Delete an existing TLS environment
USAGE: osctrl-cli environment delete [options]
DESCRIPTION: With --db the edit cannot invalidate the shared Redis environment cache, so osctrl-api and osctrl-tls may keep serving the old environment for up to 5 minutes (60 while the database is degraded); API mode invalidates immediately.
OPTIONS: --name string, -n string Environment name to be deleted --yes, -y Delete without asking to type the environment name --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationShow environment
Section titled “Show environment”$ ./osctrl-cli environment show -hNAME: osctrl-cli environment show - Show a TLS environment
USAGE: osctrl-cli environment show [options]
OPTIONS: --name string, -n string Environment name to be displayed --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version informationList environments
Section titled “List environments”$ ./osctrl-cli environment list -hNAME: osctrl-cli environment list - List all existing TLS environments
USAGE: osctrl-cli environment list [options]
OPTIONS: --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file (required by db-only commands: settings add, settings delete). DB-mode environment edits do not invalidate the shared Redis environment cache: osctrl-api/osctrl-tls may serve the old environment for up to 5 minutes [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file (the default; every command except settings add/delete also works with --db; ignored when --db is set) [$API_CONFIG] --api-file FILE, -A FILE Load API JSON configuration from FILE (default: "osctrl-api.json") [$API_CONFIG_FILE] --api-url string, -U string The URL for osctrl API to be used [$API_URL] --api-token string, -T string Token to authenticate with the osctrl API [$API_TOKEN] --db-file FILE, -D FILE Load DB YAML configuration from FILE [$DB_CONFIG_FILE] --db-host string Backend host to be connected to (default: "127.0.0.1") [$DB_HOST] --db-port int Backend port to be connected to (default: 5432) [$DB_PORT] --db-name string Database name to be used in the backend (default: "osctrl") [$DB_NAME] --db-user string Username to be used for the backend (default: "postgres") [$DB_USER] --db-pass string Password to be used for the backend (default: "postgres") [$DB_PASS] --db-max-idle-conns int Maximum number of connections in the idle connection pool (default: 20) [$DB_MAX_IDLE_CONNS] --db-max-open-conns int Maximum number of open connections to the database (default: 100) [$DB_MAX_OPEN_CONNS] --db-conn-max-lifetime int Maximum amount of time a connection may be reused (default: 30) [$DB_CONN_MAX_LIFETIME] --insecure, -i Allow insecure server connections when using SSL --verbose, -V Increase output verbosity for debugging --output-format string, -o string Format to be used for data output (default: "pretty") [$OUTPUT_FORMAT] --silent, -s Silent mode: suppress output and skip confirmation prompts --version, -v Print version information