Command-line reference
Open files in the graphical interface
Section titled “Open files in the graphical interface”Put --open or -- first to treat all following arguments as paths, including names that start with a dash.
clamui --open ./scan "$HOME/Downloads"clamui -- --example.txtA 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.
Run headless commands
Section titled “Run headless commands”clamui --helpclamui scan --helpclamui scan /path/to/targetclamui 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.