================ Flask-CLI ================ .. currentmodule:: flask_cli .. raw:: html

travis-ci badge coveralls.io badge

.. automodule:: flask_cli Installation ============ The Flask-CLI package is on PyPI so all you need is: .. code-block:: console $ pip install flask-cli Usage ===== Use this library as fallback when importing from ``flask.cli``. .. code-block:: python try: from flask.cli import FlaskGroup except ImportError from flask_cli.cli import FlaskGroup Note Flask-CLI is only a backport of ``flask.cli``. Most noteably, there's no integration into the Flask application object. E.g. the following won't work: .. code-block:: python app = Flask(__name__) @app.cli.command() def initdb(): """Initialize the database.""" print 'Init the db' .. include:: ../CHANGES .. include:: ../CONTRIBUTING.rst License ======= .. include:: ../LICENSE .. include:: ../AUTHORS