Skip to content

CLI

init

init [OPTIONS]

Create and initialize config file.

Options

--config-file, -c <CONFIG_FILE>
Location of the config file.
Type: path

--overwrite
Overwrite existing config
Type: boolean (flag)
Default: False

--url, -u <URL>
Zabbix API URL to use.
Type: text


login

login [OPTIONS]

Reauthenticate with the Zabbix API.

Creates a new auth token file if enabled in the config.

Options

--username, -u <USERNAME>
Username to log in with.
Type: text

--password, -p <PASSWORD>
Password to log in with.
Type: text

--token, -t <TOKEN>
API token to log in with.
Type: text


migrate_config

migrate_config [OPTIONS]

Migrate a legacy .conf config to a new .toml config.

The new config file will be created in the default location if no destination is specified. The new config enables the new JSON format by default.

Options

--source, -s <SOURCE>
Location of the config file to migrate.
Type: path

--destination, -d <DESTINATION>
Path of the new config file to create. Uses the default config path if not specified.
Type: path

--overwrite
Overwrite destination config file if it exists.
Type: boolean (flag)
Default: False

--legacy-json-format
Use legacy JSON format mode in the new config file.
Type: boolean (flag)
Default: False


open

open <DIRECTORY_TYPE> [OPTIONS]

Open an app directory in the system's file manager.

Use --force to attempt to open when no DISPLAY env var is set.

Arguments

DIRECTORY_TYPE
The type of directory to open.
Type: choice
Choices: config, data, logs, siteconfig, exports
Required:

Options

--force
LINUX: Try to open desite no detected window manager.
Type: boolean (flag)
Default: False

--path
Show path instead of opening directory.
Type: boolean (flag)
Default: False

--command <OPEN_COMMAND>
Specify command to use to use for opening.
Type: text


sample_config

sample_config

Print a sample configuration file.


show_config

show_config

Show the current application configuration.


show_dirs

show_dirs

Show the default directories used by the application.


show_history

show_history [OPTIONS]

Show the command history.

Options

--limit, -n <LIMIT>
Limit the number of results. 0 to show all.
Type: integer
Default: 0