$ pipetools --help
Usage: pipetools [OPTIONS] COMMAND [ARGS]...
  Command line tools for Pipedrive CRM
Options:
  --help  Show this message and exit.
Commands:
  backup  Run Pipedrive CRM data backup
  deal    Fetch deal as JSON with DEALID (e.g. 42)
$ pipetools backup --help
Usage: pipetools backup [OPTIONS] [OUTDIR]
  Run Pipedrive CRM data backup
Options:
  --token TEXT                    Pipedrive CRM API token
  --topic [users|deals|persons|organizations|pipelines|stages|files|activities]
                                  Select topic
  --stdout                        Output to stdout instead of file
  --help                          Show this message and exit.
$ pipetools deal --help
Usage: pipetools deal [OPTIONS] DEALID
  Fetch deal as JSON with DEALID (e.g. 42)
Options:
  --outdir TEXT  Set directory to save JSON file
  --token TEXT   Pipedrive CRE API token
  --stdout       Output to stdout instead of file
  --help         Show this message and exit.
Start full backup for all topics: "users", "deals", "persons", "organizations", "pipelines", "stages", "files" and "activities":
$ pipetools backup --token=123456790
Get JSON file (deals.json) with all deal data in "." for deal with id 42:
$ pipetools deal 42 --token 1234567890