Skip to content
Myr

document cli option env vars

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #2713

authored by David Lord · committed by David Lord · parent 324b4ea · Browse files · 1 file+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−0 removed

  • other:+18 added−0 removed

1 file+18 added−0 removed

modified:docs/cli.rst+18 added
181 unmodified lines
182183.. _python-dotenv: https://github.com/theskumar/python-dotenv#readme184185186Setting Command Options187~~~~~~~~~~~~~~~~~~~~~~~188189Click is configured to load default values for command options from190environment variables. The variables use the pattern191``FLASK_COMMAND_OPTION``. For example, to set the port for the run192command, instead of ``flask run --port 8000``:193194.. code-block:: none195196 export FLASK_RUN_PORT=8000197 flask run198 * Running on http://127.0.0.1:8000/199200These can be added to the ``.flaskenv`` file just like ``FLASK_APP`` to201control default command options.202203204Environment Variables From virtualenv205-------------------------------------206207If you do not want to install dotenv support, you can still set environment
235 unmodified lines