Commands

flask new

Generate new code for your Flask Unchained projects.

flask new COMMAND [<args>...] [OPTIONS]

project

Create a new Flask Unchained project.

flask new project <dest> [OPTIONS]

Options

-a, --app-bundle <app_bundle>

The module name to use for your app bundle.

--force, --no-force

Whether or not to force creation if project folder is not empty.

Default

False

--prompt, --no-prompt

Whether or not to skip prompting and just use the defaults.

Default

False

--dev, --no-dev

Whether or not to install development dependencies.

Default

<function <lambda> at 0x7f4a6aca4950>

--admin, --no-admin

Whether or not to install the Admin Bundle.

Default

<function <lambda> at 0x7f4a6aca4a70>

--api, --no-api

Whether or not to install the API Bundle.

Default

<function <lambda> at 0x7f4a6aca4b90>

--celery, --no-celery

Whether or not to install the Celery Bundle.

Default

<function <lambda> at 0x7f4a6aca4cb0>

--graphene, --no-graphene

Whether or not to install the Graphene Bundle.

Default

<function <lambda> at 0x7f4a6aca4dd0>

--mail, --no-mail

Whether or not to install the Mail Bundle.

Default

<function <lambda> at 0x7f4a6aca4ef0>

--oauth, --no-oauth

Whether or not to install the OAuth Bundle.

Default

<function <lambda> at 0x7f4a6ac9c050>

--security, --no-security

Whether or not to install the Security Bundle.

Default

<function <lambda> at 0x7f4a6ac9c170>

--session, --no-session

Whether or not to install the Session Bundle.

Default

<function <lambda> at 0x7f4a6ac9c290>

--sqlalchemy, --no-sqlalchemy

Whether or not to install the SQLAlchemy Bundle.

Default

<function <lambda> at 0x7f4a6ac9c3b0>

--webpack, --no-webpack

Whether or not to install the Webpack Bundle.

Default

<function <lambda> at 0x7f4a6ac9c4d0>

Arguments

DEST

Required argument

flask run

Run a local development server.

This server is for development purposes only. It does not provide the stability, security, or performance of production WSGI servers.

The reloader and debugger are enabled by default if FLASK_ENV=development or FLASK_DEBUG=1.

flask run [OPTIONS]

Options

-h, --host <host>

The interface to bind to.

-p, --port <port>

The port to bind to.

--cert <cert>

Specify a certificate file to use HTTPS.

--key <key>

The key file to use when specifying a certificate.

--reload, --no-reload

Enable or disable the reloader. By default the reloader is active if debug is enabled.

--debugger, --no-debugger

Enable or disable the debugger. By default the debugger is active if debug is enabled.

--eager-loading, --lazy-loading

Enable or disable eager loading. By default eager loading is enabled if the reloader is disabled.

--with-threads, --without-threads

Enable or disable multithreading.

--extra-files <extra_files>

Extra files that trigger a reload on change. Multiple paths are separated by ‘:’.

flask shell

Runs a shell in the app context. If IPython is installed, it will be used, otherwise the default Python shell is used.

flask shell [OPTIONS]

flask unchained

Flask Unchained commands.

flask unchained COMMAND [<args>...] [OPTIONS]

bundles

List registered bundles.

flask unchained bundles [OPTIONS]

config

Show current app config (or optionally just the options for a specific bundle).

flask unchained config [<bundle_name>] [OPTIONS]

Arguments

BUNDLE_NAME

Optional argument

extensions

List extensions.

flask unchained extensions [OPTIONS]

hooks

List registered hooks (in the order they run).

flask unchained hooks [OPTIONS]

services

List services.

flask unchained services [OPTIONS]

flask urls

List all URLs registered with the app.

flask urls [OPTIONS]

Options

--order-by <order_by>

Property to order by: methods, rule, endpoint, view, or priority (aka registration order with the app)

flask url

Show details for a specific URL.

flask url <url> [OPTIONS]

Options

--method <method>

Method for url to match (default: GET)

Arguments

URL

Required argument

flask clean

Recursively remove *.pyc and *.pyo files.

flask clean [OPTIONS]

flask lint

Run flake8.

flask lint [OPTIONS]

Options

-f, --fix-imports

Fix imports using isort, before linting

flask qtconsole

Starts qtconsole in the app context. !!EXPERIMENTAL!!

Only available if Ipython, PyQt5 and qtconsole are installed.

flask qtconsole [OPTIONS]