Run python manage.py:
Usage: manage.py [OPTIONS] COMMAND [ARGS]...
A utility script for the Flask React SPA application.
Options:
--env [dev|prod] Whether to use DevConfig or ProdConfig (default dev)
--warn / --no-warn Whether or not to warn if running in production
--version Show the flask version
--help Show this message and exit
Commands:
blog Blog bundle commands.
celery Start the celery worker and/or beat.
clean Recursively remove *.pyc and *.pyo files.
db Perform database migrations.
lint Run flake8.
roles Role commands.
run Runs a development server.
shell Runs a shell in the app context.
url Show details for a specific URL.
urls List all URLs registered with the app.
users User commands.
Start the celery worker and/or beat.
python manage.py celery [OPTIONS] COMMAND [ARGS]...
Perform database migrations.
python manage.py db [OPTIONS] COMMAND [ARGS]...
Run downgrade migrations.
python manage.py db downgrade [OPTIONS] [TARGET]
Arguments
TARGET
¶Optional argument
Load database fixtures from JSON.
python manage.py db fixtures [OPTIONS] FILE
Options
--reset
,
--no-reset
¶Arguments
FILE
¶Required argument
Show latest revisions.
python manage.py db heads [OPTIONS]
Options
--resolve-dependencies
¶Treat dependencies as down revisions.
-v
,
--verbose
¶Show revision log.
python manage.py db log [OPTIONS]
Options
--start
<start>
¶Show since this revision.
--end
<end>
¶Show until this revision.
-v
,
--verbose
¶Create merge revision.
python manage.py db merge [OPTIONS] [REVISIONS]...
Options
-m
,
--message
<message>
¶-l
,
--label
<label>
¶Label(s) to apply to the revision.
Arguments
REVISIONS
¶Optional argument(s)
Drops database tables and runs migrations.
python manage.py db reset [OPTIONS]
Options
--reset
¶Create new migration.
python manage.py db revision [OPTIONS] MESSAGE
Options
--empty
¶Create empty script.
-b
,
--branch
<branch>
¶Use this independent branch name.
-p
,
--parent
<parent>
¶Parent revision(s) of this revision.
--splice
¶Allow non-head parent revision.
-d
,
--depend
<depend>
¶Revision(s) this revision depends on.
-l
,
--label
<label>
¶Label(s) to apply to the revision.
--path
<path>
¶Where to store the revision.
Arguments
MESSAGE
¶Required argument
Show the given revisions.
python manage.py db show [OPTIONS] [REVISIONS]...
Arguments
REVISIONS
¶Optional argument(s)
Run flake8.
python manage.py lint [OPTIONS]
Options
-f
,
--fix-imports
¶Fix imports using isort, before linting