Management commands

atfinity supports a list of management commands to make administrating your installation easier.

They are executed via ./atfinity.sh COMMAND.

Command

Description

display_version [-c TENANT_ID]

Display the current version of the software. If tenant_id is also provided, the current version of that tenants configuration is also displayed.

case_overview

Display an overview of past and present cases, grouped by the processes. For clients with a fee based on the number of cases completed, we will ask you to send us the output of this command.

create_tenant

-s TENANT_SUBDOMAIN [-t TENANT_TITLE]

Create a new tenant.

create_user -u USER_EMAIL -p PASSWORD -t TENANT_ID [--meta_admin]

Create a new user within the given tenant or (if user exists) reset password and update meta_admin status.

create_tenant_and_user -s TENANT_SUBDOMAIN [-u USER_EMAIL] [-p PASSWORD] [-t TENANT_TITLE]

Create a new tenant with an attached meta admin user.

show_tenants

List all tenants of the system.

show_users

List all users of all tenants in the system.

zip_import ZIP_FILE_TO_IMPORT

Clear the current database and import a .zip with data and files. The .zip will first be copied into a shared folder with the docker container and then imported.

zip_export -o /import/data_and_files_export.zip [--no_files]

Export all current data and files to a .zip. The .zip will appear in the /import folder as data_and_files_export.zip.

remove_old_tasks

Remove celery tasks (and their attachments) older than a week. We recommend running this periodically.

invalidate_cases

Invalidates all cases for all tenants and forces the rule engine to recalculate all cases and case results when a case is opened again

delete_all_cases_and_instances -t TENANT_ID

Delete all cases and instances for a specific tenant

delete_all_data

Delete all case and instance data in the whole database.

delete_tenant TENANT_ID1 [TENANT_ID2 ... TENANT_IDN]

Delete the tenants with the given ids.

make_order_consecutive -t TENANT_ID

Make order consecutive for configuration items (e.g. Documents, Categories, Information, etc.) for the specified tenant.

clear_admin_logs -t TENANT_ID

Removes all the logs from the database for the given tenant

remove_pdfs_without_files

Deletes all PDFs that do not have files attached

Last updated