Command line interface

Overview

The Blurit command line interface, this CLI lets you interact with Blurit On-Premise to perform various tasks related to media anonymization.

CLI

The main Blurit CLI command.

blurit [OPTIONS] COMMAND [ARGS]...

License

Manage Blurit licenses.

info

Displays all Blurit license information.

options:

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

blurit license info

Response:

add

Upload or update a Blurit On-Premise license.

options:

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

Response:

Tasks

Manage Blurit tasks.

create

Create a new Blurit task. Options vary depending on the input type (file, directory, S3 or s3-directory). File processing only needs input argument but output can be specified to store the exit media to a precise location.

options:

  • --input-file [file|directory|s3|s3-directory] REQUIRED

  • --no-face-blur Disable face blur.

  • --no-plate-blur Disable plate blur.

  • --json-coord Use JSON coordinates.

  • --auto-delete Auto deletion of input media

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

Example: Create a task by specifying input and output directories:

Response:

status

Get the status of a specific task using its ID.

options:

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

return:

  • Succeeded

  • Started

  • Sent

  • Failed

  • Couldn't contact the Blurit server

Example:

Response:

list

List history call tasks.

options:

  • --page TEXT Specify the page number

  • --count TEXT Specify the number of results per page

  • --starting-date TEXT Specify the starting date

  • --ending-date TEXT Specify the ending date

  • --filetype [picture|video|directory] Specify the file type

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

Response:

Configure

Configure the Blurit application, need to be done at least once before first deployment ('blurit start').

Start

Start the Blurit server, CLI must be on the host machine.

Restart

Restart the Blurit server, CLI must be on the host machine.

Stop

Stop the Blurit server, CLI must be on the host machine.

Stats

Display total and period (month, day) statistics.

options:

  • --date-start TEXT Starting date with format: %Y-%m-%d

  • --date-end TEXT Ending date with format: %Y-%m-%d

  • --granularity [day|month] Display statistics by month or days

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

  • --help Show this message and exit.

Response:

Doc

Display link to documentation.

options:

  • -h, --host TEXT Specify the host

  • -p, --port INTEGER Specify the port

  • -o [json] Output format in JSON

response:

Uninstall

Uninstall the Blurit server, CLI must be on the host machine.

Output Format

The Blurit CLI supports two output formats: text (default) and JSON. You can specify the output format using the -o or --output-format option. For example, to get JSON output, use -o json.

Example:

Response:

Support and Contribution

If you have any questions, issues, or would like to make a return of the Blurit CLI, please contact us at [email protected]. We hope this guide helps you effectively use the Blurit CLI to manage your media anonymization tasks.