✨ Add implementation of fastapi-new CLI, and base for fastapi new command#5
Merged
Merged
Conversation
patrick91
reviewed
Oct 29, 2025
patrick91
left a comment
There was a problem hiding this comment.
Can't wait to have this!
I've left some comments, hopefully I'm not too annoying :D
tiangolo
reviewed
Nov 9, 2025
Member
tiangolo
left a comment
There was a problem hiding this comment.
This is looking great! 🤩
I tried it locally to see how it feels and how it looks in the terminal, so polished! I like it. ✨
I just have a few minor comments.
| ), | ||
| ] = None, | ||
| python: Annotated[ | ||
| str | None, |
Member
There was a problem hiding this comment.
I'm realizing we can require Python 3.10+ for running fastapi-new, so we can finally use the new union vertical bar [tears of joy 🥹].
tiangolo
approved these changes
Nov 10, 2025
Member
tiangolo
left a comment
There was a problem hiding this comment.
Awesome! This looks great! 🚀 ✨ 🎉
fastapi new commandfastapi-new CLI, and base for fastapi new command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the initial version of
fastapi new, which initializes your project, installs dependencies, and downloads boilerplate code to simplify thefastapigetting started experience.The goal is to support two core workflows:
The commands above create identical projects with
main.py,README.md, and project configuration with apyproject.toml.Once this is merged, I will follow up with a PR to
fastapi-clito register this commandand update our docs to reflect this simpler path to getting started. Later, I'd like to extend this to allow users to pass
--templateor a similar option to customize the boilerplate downloaded.