Quepid Adminstration CLI aka Thor

This CLI tool that you run on the Quepid application lets you script out many processes.

The see available tasks:

docker compose run app bundle exec thor list

Examples include:

case
----
thor case:create NAME SEARCH_ENGINE ENDPOINT_URL API_METHOD FIELD_SPEC QUERY_PARAMS SCORER_NAME OWNER_EMAIL  # creates a new case
thor case:load_the_haystack_rating_snapshots                                                                 # load the haystack rating party data
thor case:share CASEID TEAMID                                                                                # shares case with an team

ratings
-------
thor ratings:generate SOLRURL FILENAME  # generates random ratings into a .csv file
thor ratings:import CASEID FILENAME     # imports ratings to a case

sample_data
-----------
thor sample_data:haystack_party  # load the haystack rating party data
thor sample_data:large_data      # load the very large sample data
thor sample_data:sample_data     # load the sample data

snapshots
---------
thor snapshots:generate SOLRURL FILENAME            # generates a random snapshot into a .csv file
thor snapshots:import CASEID SNAPSHOTNAME FILENAME  # imports a snapshot to a case

user
----
thor user:add_api_key EMAIL                 # generates and adds an API key to the user
thor user:create EMAIL USERNAME PASSWORD    # creates a new user
thor user:grant_administrator EMAIL         # grant administrator privileges to user
thor user:reset_password EMAIL NEWPASSWORD  # resets user's password

To see more details about any of the tasks, run bin/docker r bundle exec thor help TASKNAME:

thor help user:create
Usage:
  thor user:create EMAIL USERNAME PASSWORD

Options:
  -a, [--administrator], [--no-administrator]

Description:
  `user:create` creates a new user with the passed in email, name and password.

  EXAMPLES:

  $ thor user:create foo@example.com "Eric Pugh" mysuperstrongpassword

  With -a option, will mark the user as Administrator

  EXAMPLES:

  $ thor user:create -a admin@example.com Administrator mysuperstrongpassword