CLI Options
Phinder is a command-line application. Below is a list of all available options.
| Option | Long Option | Description |
|---|---|---|
-i |
--input |
Required. The input file(s) or directories to scan. Repeat for multiple. |
-R |
--recursive |
Recursively traverse subdirectories if directories are provided. |
-p |
--policy |
Path to a custom Phileas policy (JSON file). |
--emit-policy |
Write a starter redaction policy covering the entity types found, to the given file. Emits PhiSQL for a .phisql file, otherwise JSON. |
|
-w |
--weights |
Path to custom PII weights (JSON file). |
-l |
--log |
Enable the scan log using a MongoDB database. |
-s |
--skip-unchanged |
Skip scanning files that haven't changed since the last scan log. |
--clean |
Truncate the scan log database. | |
--mongodb |
The MongoDB URI for the scan log and report history. | |
--csv-delimiter |
Custom CSV delimiter character. (Default: ,) |
|
--csv-quote |
Custom CSV quote character. (Default: ") |
|
-h |
--help |
Show the help message and exit. |
-V |
--version |
Show the application version and exit. |
Examples
Scan multiple files
Scan a directory recursively with custom weights
Generate a starter redaction policy from a scan
To get the policy as PhiSQL instead, use a .phisql extension: