Utility Commands
Helper commands to manage your application, configuration, and environment.
Development
tinker
Starts an interactive Python shell with the application context loaded.
fastman tinker
Features:
- Pre-loaded
dbsession. - Access to
settingsandBasemodels. - Uses
IPythonif available.
route:list
Displays a table of all registered API routes.
fastman route:list [--path=/api] [--method=GET]
inspect
Inspects a component of your application.
fastman inspect {type} {name}
- Types:
model,feature,api.
optimize
Optimizes the codebase by formatting and sorting imports.
fastman optimize [--check]
- Uses
black,isort, andautoflake.
Configuration
generate:key
Generates a new SECRET_KEY and updates .env.
fastman generate:key [--show]
config:cache
Caches environment variables to config_cache.json for faster loading in production.
fastman config:cache
config:clear
Clears the configuration cache.
fastman config:clear
cache:clear
Clears Python __pycache__ and .pyc files.
fastman cache:clear
Package Management
import
Installs a Python package using the detected package manager.
fastman import {package_name}
pkg:list
Lists installed packages.
fastman pkg:list