FarWatch 1.3.1 is availableRead the upgrade notes

Command line reference

Every icc-cli command with its arguments, and how to run the tool on Windows, Linux and containers.

Running icc-cli

icc-cli is the command line tool that ships with every install. The name is historical. It opens the same databases the server does and applies the same migrations. It never starts the web server or the pollers. Run it as the account that owns the install, with the services in the state each command needs.

Windows, from an elevated PowerShell:

& "C:\Program Files\ICC\node\node.exe" "C:\Program Files\ICC\backend\icc-cli.js" <command> [arguments]

RHEL and Ubuntu:

sudo -u icc /opt/icc/node/bin/node /opt/icc/backend/icc-cli.js <command> [arguments]

Docker Compose, with the entrypoint role cli:

docker compose -f compose.yaml run --rm web cli <command> [arguments]

The rest of this page writes icc-cli <command>. Always use the shipped node runtime, because the compiled code only runs on the exact runtime that built it. Run any command with no arguments, or with an unknown name, to print the usage text. The exit code is 0 for success, 1 for an error and 2 for a refusal or bad usage.

Accounts and platforms

CommandWhat it does
icc-cli bootstrap-admin [--username Admin] [--password <pw>] [--tenant default]Creates the first account, a global administrator who must change the password at first sign-in, when no account exists. Without --password the password is read from ICC_ADMIN_PASSWORD, then from stdin. Does nothing if an account exists.
icc-cli list-platformsPrints every platform id and label. Use the ids with set-platforms.
icc-cli set-platforms --ids <id,id,...> [--tenant default]Applies the starting-platform selection. A picked pack installs from the copy bundled in the package.

Plugin packs

CommandWhat it does
icc-cli install-plugin <path or https url> [--tenant default] [--allow-downgrade]Installs or upgrades a signed pack from a file or an https address on an allowed host. A running install picks it up within about 30 seconds.
icc-cli remove-plugin <id> [--purge] [--tenant default]Removes a pack. A built-in platform with the same id comes back. --purge deletes the pack's collected data.
icc-cli plugin-revocations import <file>Adds the keys and packs in a revocation file to the stored list.

See Plugin packs and the marketplace.

Backup and restore

CommandWhat it does
icc-cli backup [--reason manual] [--dir <path>] [--include-env]Writes a backup zip now. The reason is manual, scheduled or pre-migration.
icc-cli verify-backup <zip>Checks the checksums and signature of a backup and the integrity of each database in it.
icc-cli restore <zip> [--yes] [--force] [--unsigned] [--to <folder>]Restores a backup. Run it with the services stopped. Without --yes it prints the plan and writes nothing. --to writes into a scratch folder.

See Backup and restore.

Database engine

CommandWhat it does
icc-cli engine statusPrints the engine the install runs on and its settings.
icc-cli engine switch --to postgres or sqlite --yesRequests an engine switch. Running services pick it up and restart. Without --yes it checks the preconditions and changes nothing.
icc-cli engine retire-sqlite --yesDeletes the SQLite files kept after a switch to PostgreSQL, once the keep period has passed.
icc-cli engine use-postgres --user <name> [--host 127.0.0.1] [--port 5432] [--database farwatch] [--ssl disable, require or verify-full] [--ssl-ca-file <path>] [--schema-prefix fw_] [--app-user <name> or --no-app-user] [--password-file <path>] [--test-only]Starts a fresh install on an existing PostgreSQL server. The password comes from ICC_PG_PASSWORD, the password file or stdin, never an argument.
icc-cli migrate-to-postgres [--preflight] [--dry-run] [--yes] [--retry] [--allow-unverified-tls]Copies the SQLite data into PostgreSQL schemas. Without --yes it only runs the preflight. The application keeps running on SQLite until you switch.
icc-cli rename-db [--dry-run] [--revert] [--data-dir <dir>]Renames the default tenant's database files from cohesity.db and cohesity.admin.db to icc.db and icc.admin.db. Run with the services stopped. --revert renames them back.

See Starting on PostgreSQL and Upgrades and rollback.

Operations

CommandWhat it does
icc-cli support-bundle [--profile] [--heap] [--out <dir>] [--tenant default]Writes the support bundle zip and prints its path. --profile adds a 60 second CPU profile of the poller. --heap adds a memory summary.
icc-cli allow-host <name or *.suffix> [--remove] or --listAdds a host name to the allowed host names, drops one with --remove, or prints the list with --list. Applies within seconds.

See System Health and the support bundle and Allowed host names.

Environment variables

These are read from the .env file in the install folder, which the services and the command line tool both load.

VariableMeaning
ENCRYPTION_KEYKey for stored credentials. Keep it with the backups, separately from them.
LICENSE_KEYLicence key.
DASHBOARD_API_KEYOptional install key, a global-administrator break-glass credential.
TRUST_PROXYSet to 1 behind a reverse proxy.
PORTWeb port. The default is 3001.
ICC_ALLOWED_HOSTSExtra allowed host names. Needs a service restart.
ICC_ADMIN_PASSWORDPassword for bootstrap-admin.
ICC_PG_PASSWORDPassword for engine use-postgres.
DASHBOARD_DB_PATH, DASHBOARD_ADMIN_DB_PATHPin the database file paths. Put them in .env so the command line tool sees them.