How do you run python fastapi with the normal python command and not the fastapi command? I'm running into a case where god is dead and I need to run things with the normal python command or the app won't work.
@cadey
Oh I didn't even notice they added a CLI 🫣
I'm looking at PR 11522 where the CLI was added (that's release 0.111.0), the previous version's documentation used the following command: `uvicorn main:app --reload`
@cadey if the fastapi commands is a Portion script, examining it should let you replicate. Or you could edit the shebang to point at your Python...
@cadey The entrypoint script is listed as `fastapi.cli:main` (https://github.com/fastapi/fastapi/blob/ae724b05ceef1a7d62a8aa549fc9dc34c9bd3ad9/pyproject.toml#L106), so you could do:
python -c 'import sys; from fastapi.cli import main; sys.exit(main())'
(Reference: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts)