Releases: fastapi/fastapi-cli
0.0.13
0.0.12
Features
Internal
- ⬆ Bump mypy from 1.14.0 to 1.14.1. PR #207 by @dependabot[bot].
- ⬆ Bump actions/setup-python from 5 to 6. PR #201 by @dependabot[bot].
- ⬆ Bump ruff from 0.12.12 to 0.13.0. PR #206 by @dependabot[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #208 by @pre-commit-ci[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #205 by @pre-commit-ci[bot].
0.0.11
Features
- ✨ Add support for passing apps as
fastapi run --entrypoint some.importable_module:app_name
. PR #199 by @patrick91.
If you have been using Uvicorn like:
$ uvicorn some.importable_module:app_name
Now you can use the same "entrypoint" syntax with fastapi
:
$ fastapi run -e some.importable_module:app_name
Or:
$ fastapi run --entrypoint some.importable_module:app_name
Internal
- ⬆ Bump actions/labeler from 5 to 6. PR #202 by @dependabot[bot].
- ⬆ Bump ruff from 0.12.11 to 0.12.12. PR #203 by @dependabot[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #198 by @pre-commit-ci[bot].
- ⬆ Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0. PR #200 by @dependabot[bot].
- 👷 Detect and label merge conflicts on PRs automatically. PR #204 by @svlandeg.
0.0.10
Features
- Add CLI option
--forwarded-allow-ips
. PR #113 by @Riuzaky77.
Internal
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #147 by @pre-commit-ci[bot].
- ⬆ Bump ruff from 0.11.2 to 0.12.11. PR #196 by @dependabot[bot].
- ⬆ Bump actions/checkout from 4 to 5. PR #193 by @dependabot[bot].
- ⬆ Bump actions/download-artifact from 4 to 5. PR #190 by @dependabot[bot].
- ⬆ Bump tiangolo/latest-changes from 0.3.2 to 0.4.0. PR #188 by @dependabot[bot].
- ⬆ Bump astral-sh/setup-uv from 5 to 6. PR #176 by @dependabot[bot].
0.0.9
0.0.8
Features
This will allow you to deploy to FastAPI Cloud with the fastapi deploy
command.
Installing fastapi-cli[standard]
now includes fastapi-cloud-cli
.
If you want to install fastapi-cli
without fastapi-cloud-cli
, you can install instead fastapi-cli[standard-no-fastapi-cloud-cli]
.
You will normally not install fastapi-cli
directly, but rather install FastAPI with fastapi[standard]
, which will include fastapi-cli[standard]
.
If you want to install fastapi
with the standard dependencies except for fastapi-cloud-cli
, you can install instead fastapi[standard-no-fastapi-cloud-cli]
.
Internal
- ⬆ Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4. PR #152 by @dependabot[bot].
- ⬆ Bump ruff from 0.8.4 to 0.11.2. PR #168 by @dependabot[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #138 by @pre-commit-ci[bot].
- ⬆ Bump ruff from 0.8.2 to 0.8.4. PR #139 by @dependabot[bot].
- ⬆ Bump astral-sh/setup-uv from 4 to 5. PR #140 by @dependabot[bot].
- ⬆ Bump mypy from 1.13.0 to 1.14.0. PR #141 by @dependabot[bot].
0.0.7
Fixes
Internal
- 🚨 Format new test. PR #137 by @tiangolo.
- ⬆ Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3. PR #134 by @dependabot[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #62 by @pre-commit-ci[bot].
- ⬆ Bump ruff from 0.5.5 to 0.8.1. PR #128 by @dependabot[bot].
0.0.6
Features
- ✨ Improve UI for
fastapi dev
andfastapi run
. PR #95 by @patrick91.
Fixes
- 🐛 Use correct syntax for links. PR #131 by @patrick91.
Internal
- 👷 Update
labeler.yml
. PR #101 by @tiangolo. - 👷 Do not sync labels as it overrides manually added labels. PR #71 by @tiangolo.
- 🔨 Use ruff check command in format script. PR #121 by @FlavienRx.
- ⬆ Update pre-commit requirement from <4.0.0,>=2.17.0 to >=2.17.0,<5.0.0. PR #100 by @dependabot[bot].
- ⬆ Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.2. PR #117 by @dependabot[bot].
- ⬆ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2. PR #118 by @dependabot[bot].
- ⬆ Bump astral-sh/setup-uv from 3 to 4. PR #125 by @dependabot[bot].
- ⬆ Bump mypy from 1.11.1 to 1.13.0. PR #111 by @dependabot[bot].
- 👷 Fix smokeshow, checkout files on CI. PR #106 by @tiangolo.
- 👷 Use uv in CI. PR #105 by @tiangolo.
- 👷 Update
labeler.yml
. PR #102 by @tiangolo. - ⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR #89 by @dependabot[bot].
- 👷 Update
issue-manager.yml
. PR #88 by @tiangolo. - 💚 Set
include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #84 by @svlandeg. - 👷 Update
latest-changes
GitHub Action. PR #79 by @tiangolo. - 🔧 Update coverage configs. PR #74 by @tiangolo.
- 🔧 Add URLs to
pyproject.toml
, show up in PyPI. PR #72 by @tiangolo. - 👷 Update GitHub Action labeler to only add one label. PR #70 by @tiangolo.
- 👷 Update GitHub Action labeler permissions and dependencies. PR #69 by @tiangolo.
- 👷 Add GitHub Action label-checker. PR #68 by @tiangolo.
- 👷 Add GitHub Action labeler. PR #67 by @tiangolo.
- 🔧 Update GitHub Action add-to-project. PR #66 by @tiangolo.
- 👷 Add GitHub Action add-to-project. PR #65 by @tiangolo.
0.0.5
Breaking Changes
- ♻️ Add
fastapi-cli[standard]
including Uvicorn, makefastapi-cli
andfastapi-cli-slim
have the same packages. PR #55 by @tiangolo. - ➕ Keep Uvicorn in default dependencies. PR #57 by @tiangolo.
Summary
Install with:
pip install "fastapi[standard]"
Or if for some reason installing only the FastAPI CLI:
pip install "fastapi-cli[standard]"
Technical Details
Before this, fastapi-cli
would include Uvicorn and fastapi-cli-slim
would not include Uvicorn.
In a future version, fastapi-cli
will not include Uvicorn unless it is installed with fastapi-cli[standard]
.
FastAPI version 0.112.0 has a fastapi[standard]
and that one includes fastapi-cli[standard]
.
Before, you would install pip install fastapi
, or pip install fastapi-cli
. Now you should include the standard
optional dependencies (unless you want to exclude one of those): pip install "fastapi[standard]"
.
In a future version, fastapi-cli
will not include Uvicorn unless it is installed with fastapi-cli[standard]
.
Refactors
- ♻️ Simplify code in
src/fastapi_cli/discover.py
. PR #22 by @pedroimpulcetto.
Docs
Internal
- ⬆ Bump ruff from 0.4.5 to 0.5.5. PR #52 by @dependabot[bot].
- 🔧 Remove Python 3.7 from PyPI classifiers. PR #48 by @patrick91.
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #28 by @pre-commit-ci[bot].
- ⬆ Bump mypy from 1.10.0 to 1.11.1. PR #53 by @dependabot[bot].
- ⬆ Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0. PR #34 by @dependabot[bot].
- 👷 Update issue-manager.yml GitHub Action permissions. PR #54 by @tiangolo.
- ⬆ Bump ruff from 0.4.4 to 0.4.5. PR #29 by @dependabot[bot].
- ⬆ Bump ruff from 0.4.3 to 0.4.4. PR #23 by @dependabot[bot].
- 👷 Enable CI tests for Python 3.12. PR #27 by @tiangolo.
- 👷 Update Upload/Download artifacts GitHub Actions. PR #26 by @tiangolo.
0.0.4
Fixes
- 🔧 Make FastAPI and Uvicorn optional dependencies, to avoid circular dependencies. PR #25 by @tiangolo.
Internal
- ⬆ Bump actions/cache from 3 to 4. PR #5 by @dependabot[bot].
- ⬆ Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.14. PR #2 by @dependabot[bot].