user
$ ./osctrl-cli user -hNAME: osctrl-cli user - Commands for users
USAGE: osctrl-cli user [command [command options]]
COMMANDS: add, a Add a new user edit, e Edit an existing user change-permissions, p, access Change permission in an environment for an existing user reset-permissions, R, reset Clear and reset permissions for a user in an environment show-permissions, S, perms Show permissions for a user in an environment all-permissions, A, all-perms Show all permissions for an existing user delete, d Delete an existing user show, s Show an existing user list, l List all existing users
OPTIONS: --help, -h show helpAdd user
Section titled “Add user”$ ./osctrl-cli user add -hNAME: osctrl-cli user add - Add a new user
USAGE: osctrl-cli user add [options]
OPTIONS: --username string, -u string Username for the new user --password string, -p string Password for the new user --global-admin, -a, --admin Make this user a global admin --service, -s Make this user a service account --environment string, -e string Grant read access to this environment --email string, -E string Email for the new user --fullname string, -n string Full name for the new user --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 informationEdit user
Section titled “Edit user”$ ./osctrl-cli user edit -hNAME: osctrl-cli user edit - Edit an existing user
USAGE: osctrl-cli user edit [options]
OPTIONS: --username string, -u string User to be edited --password string, -p string New password to be used --email string, -E string Email to be used --fullname string, -n string Full name to be used --global-admin, -a, --admin Make this user an admin --non-admin, -d Make this user an non-admin --service, -s Make this user a service account --non-service, -S Make this user a non-service account --environment string, --env string Grant read access to this environment --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 informationChange permissions
Section titled “Change permissions”$ ./osctrl-cli user change-permissions -hNAME: osctrl-cli user change-permissions - Change permission in an environment for an existing user
USAGE: osctrl-cli user change-permissions [options]
OPTIONS: --username string, -u string User to perform the action --environment string, -e string Environment for this user --admin, -a Grant admin permissions --user, -U Grant user permissions --query, -q Grant query permissions --carve, -c Grant carve permissions --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 informationReset permissions
Section titled “Reset permissions”$ ./osctrl-cli user reset-permissions -hNAME: osctrl-cli user reset-permissions - Clear and reset permissions for a user in an environment
USAGE: osctrl-cli user reset-permissions [options]
OPTIONS: --username string, -u string User to perform the action --environment string, -e string Environment for this user --admin, -a Grant admin permissions --user, -U Grant user permissions --query, -q Grant query permissions --carve, -c Grant carve permissions --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 permissions
Section titled “Show permissions”$ ./osctrl-cli user show-permissions -hNAME: osctrl-cli user show-permissions - Show permissions for a user in an environment
USAGE: osctrl-cli user show-permissions [options]
OPTIONS: --username string, -u string User to perform the action --environment string, -e string Environment for this user --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 informationAll permissions
Section titled “All permissions”$ ./osctrl-cli user all-permissions -hNAME: osctrl-cli user all-permissions - Show all permissions for an existing user
USAGE: osctrl-cli user all-permissions [options]
OPTIONS: --username string, -u string User to perform the action --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 user
Section titled “Delete user”$ ./osctrl-cli user delete -hNAME: osctrl-cli user delete - Delete an existing user
USAGE: osctrl-cli user delete [options]
OPTIONS: --username string, -u string User 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 user
Section titled “Show user”$ ./osctrl-cli user show -hNAME: osctrl-cli user show - Show an existing user
USAGE: osctrl-cli user show [options]
OPTIONS: --username string, -u string User 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 users
Section titled “List users”$ ./osctrl-cli user list -hNAME: osctrl-cli user list - List all existing users
USAGE: osctrl-cli user 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