Server Configuration
--port
: Specify the port (8000 by default)--help
: Show help message
Framefox integrates an interactive terminal that allows you to perform common operations and automate development tasks.
The Framefox interactive terminal gives you access to a set of commands to manage your application:
framefox
This opens the interactive terminal which displays the list of available commands:
π¦ Framefox Framework CLISwift, smart, and a bit foxy
ββββββββββββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββ Options β Description ββ‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©β --install-completion β Install completion for the current shell ββ --show-completion β Show completion for the current shell ββ -a, --all, list β Show detailed list of all commands ββ -h, -help β Show command help message βββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ³βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Command Group β Description ββ‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©β cache β Cache operations like clearing cache files and directories. ββ create β Create various resources like entities or CRUD operations. ββ database β Database operations like creating or migrating databases. ββ debug β Debug operations like checking routes or testing security. ββ mock β Mock operations like generating or loading mock data. ββ server β Server operations like starting or stopping the server. ββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Run 'framefox COMMAND --help' for specific command group details
Example: 'framefox run' or 'framefox create controller'
Create a new Framefox project
framefox init
Let the command run
The command builds the initial project structure and creates the necessary configuration files.
Navigate to your project
cd my-project
This command will build the initial project structure and create the necessary configuration files:
Start the server
framefox run
Access your application
Open your browser and navigate to http://localhost:8000
Available server options:
Server Configuration
--port
: Specify the port (8000 by default)--help
: Show help messageList available commands
framefox create
This displays the available creation commands:
π¦ Framefox Framework CLISwift, smart, and a bit foxy
CREATE COMMANDS
Create various resources like entities or CRUD operations.
ββββββββββββββ³βββββββββββββββββββββββββββββββββββββββββββββββββββββββ Command β Description ββ‘βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©β auth β Create a new authenticator ββ controller β Create a simple controller and view. ββ crud β Create a CRUD controller for the given entity name. ββ entity β Create a new entity ββ env β Generate a new .env file with secure default values ββ hash β Create a hashed password and display the result ββ register β Create the register controller and view ββ user β Create a user entity for the authentication. βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Run 'framefox create COMMAND --help' for specific command details
Create your first controller
framefox create controller
Follow the interactive prompt
What is the name of the controller ?(snake_case)
Controller name: home
Controller created successfully: src/controller/home_controller.pyView created successfully: templates/home/index.html
framefox create auth # Create a new authenticatorframefox create controller # Create a simple controller and viewframefox create crud # Create a CRUD controller for an entityframefox create entity # Create a new entityframefox create env # Generate a new .env file with secure defaultsframefox create hash # Create a hashed passwordframefox create register # Create the register controller and viewframefox create user # Create a user entity for authentication
The CLI provides comprehensive database management commands:
framefox database create-migration # Create new migration fileframefox database upgrade # Apply pending migrationsframefox database downgrade # Rollback migrations
Clear application cache when needed:
framefox cache clear # Clear all cacheframefox cache clear --type=routes # Clear specific cache type
Development debugging utilities:
framefox debug router # List all registered routesframefox debug config # Display configuration values
Generate test data for development:
framefox mock generate # Generate sample dataframefox mock load # Load predefined fixtures