Skip to content

Command-line reference

Put --open or -- first to treat all following arguments as paths, including names that start with a dash.

Terminal window
clamui --open ./scan "$HOME/Downloads"
clamui -- --example.txt

A bare subcommand name also opens the graphical interface when a file or directory with that name exists in the current directory. For example, clamui scan opens a local folder named scan. Run the CLI from a directory without that name to use the subcommand. The global options --help, -h, --version, and -V always run headlessly.

Terminal window
clamui --help
clamui scan --help
clamui scan /path/to/target
clamui status --json
Command What it does
scan Scan one or more files or directories
quarantine List, restore, or delete quarantined files
profile List, show, export, or import scan profiles
status Check ClamAV and its signature database
history Read recent activity
help Show usage for a specific command, for example clamui help scan
install-privileged-helper Install the helper on a supported native or source installation

To scan a filename that starts with a dash headlessly, put the delimiter after the subcommand, as in clamui scan -- --example.txt.