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 add-scheduled-query Add a new query 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 helpAdd 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: --db, -d Connect to local osctrl DB using YAML config file [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationUpdate environment
Section titled “Update environment”$ ./osctrl-cli environment update -hNAME: osctrl-cli environment update - Update an existing TLS environment
USAGE: osctrl-cli environment update [options]
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: --db, -d Connect to local osctrl DB using YAML config file [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationRemove 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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationAdd 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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationRemove 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]
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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 helpShow 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationNew 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationGenerate 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationQuick 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationExtend 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationRotate 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationExpire 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationNot 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationQuick 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationExtend 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationRotate 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationExpire 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationNot 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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationSecret
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationCertificate
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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version informationDelete 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]
OPTIONS: --name string, -n string Environment name to be deleted --help, -h show help
GLOBAL OPTIONS: --db, -d Connect to local osctrl DB using YAML config file [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --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 [$DB_CONFIG] --api, -a Connect to remote osctrl using JSON config file [$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 --version, -v Print version information