Commands

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.

python manage.py blog

Blog bundle commands.

python manage.py blog [OPTIONS] COMMAND [ARGS]...

import_articles

python manage.py blog import_articles [OPTIONS]

Options

--reset

Ignore previously updated at timestamps.

python manage.py celery

Start the celery worker and/or beat.

python manage.py celery [OPTIONS] COMMAND [ARGS]...

beat

Start the celery beat.

python manage.py celery beat [OPTIONS]

worker

Start the celery worker.

python manage.py celery worker [OPTIONS]

python manage.py clean

Recursively remove *.pyc and *.pyo files.

python manage.py clean [OPTIONS]

python manage.py db

Perform database migrations.

python manage.py db [OPTIONS] COMMAND [ARGS]...

branches

Show branch points.

python manage.py db branches [OPTIONS]

Options

-v, --verbose

current

Show current revision.

python manage.py db current [OPTIONS]

Options

-v, --verbose

downgrade

Run downgrade migrations.

python manage.py db downgrade [OPTIONS] [TARGET]

Arguments

TARGET

Optional argument

drop

Drop database tables.

python manage.py db drop [OPTIONS]

Options

--drop, --no-drop

fixtures

Load database fixtures from JSON.

python manage.py db fixtures [OPTIONS] FILE

Options

--reset, --no-reset

Arguments

FILE

Required argument

heads

Show latest revisions.

python manage.py db heads [OPTIONS]

Options

--resolve-dependencies

Treat dependencies as down revisions.

-v, --verbose

log

Show revision log.

python manage.py db log [OPTIONS]

Options

--start <start>

Show since this revision.

--end <end>

Show until this revision.

-v, --verbose

merge

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)

mkdir

Make migration directory.

python manage.py db mkdir [OPTIONS]

reset

Drops database tables and runs migrations.

python manage.py db reset [OPTIONS]

Options

--reset

revision

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

Show the given revisions.

python manage.py db show [OPTIONS] [REVISIONS]...

Arguments

REVISIONS

Optional argument(s)

stamp

Set current revision.

python manage.py db stamp [OPTIONS] [TARGET]

Arguments

TARGET

Optional argument

upgrade

Run upgrade migrations.

python manage.py db upgrade [OPTIONS] [TARGET]

Arguments

TARGET

Optional argument

python manage.py lint

Run flake8.

python manage.py lint [OPTIONS]

Options

-f, --fix-imports

Fix imports using isort, before linting

python manage.py shell

Runs a shell in the app context.

python manage.py shell [OPTIONS]

python manage.py url

Show details for a specific URL.

python manage.py url [OPTIONS] URL

Options

--method <method>

Method for url to match (default: GET)

Arguments

URL

Required argument

python manage.py urls

List all URLs registered with the app.

python manage.py urls [OPTIONS]

Options

--order <order>

Property on Rule to order by (default: rule)