CLI¶
FastAuth includes a command-line tool to help you get started quickly.
Installation¶
Commands¶
Check Dependencies¶
Verify your installation:
Output:

Initialize Project¶
Create a new FastAuth project with boilerplate files:
Then run:
Open http://localhost:8000/docs to see your API.
To overwrite existing files:
Generate Secret Key¶
Generate a secure key for JWT tokens:
Output:
With .env format:
Output:
Custom length:
List OAuth Providers¶
See available OAuth providers:
Output:

Version¶
Check your FastAuth version:
Help¶
See all commands:
Quick Start Example¶
pip install sreekarnv-fastauth[cli] fastapi uvicorn
fastauth init my-auth-app
cd my-auth-app
cp .env.example .env
uvicorn app.main:app --reload
Visit http://localhost:8000/docs and try:
POST /register- Create a userPOST /login- Get access tokenGET /me- View your profile (use the token)