Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.04 KB

cli.md

File metadata and controls

49 lines (31 loc) · 1.04 KB

Command line interface docs

Documentation for the CLI commands of the launch.py file.

Each command needs to be run from inside the pipenv environment:

pipenv run python launch.py [args]

initdb

Creates all tables defined in the app.

pipenv run python launch.py initdb

Options

  • -v | --verbose : Print SQL statements when creating models.

dropdb

Drops all tables defined in the app.

pipenv run python launch.py dropdb

Options

  • -v | --verbose : Print SQL statements when dropping models.

runserver

Run the API.

pipenv run python launch.py runserver

Options

  • -h {host} | --host {host} : Host to run the API on. Default: 127.0.0.1.
  • -p {port} | --port {port} : Port to run the API on. Default: 5000.
  • -d | --debug : Run server in debug mode.
  • -i | --initdb : Create models before running the API. Equivalent of running the initdb command.
  • -v | --verbose : Set logging to DEBUG instead of INFO.