Skip to content

CLI

Antares ships with a small CLI at bin/antares for scaffolding, migrations, and cache management.

Terminal window
php bin/antares make:controller UserController
php bin/antares make:dto CreateUserRequest
php bin/antares make:response UserResponse
php bin/antares make:middleware AuthMiddleware
php bin/antares make:guard JwtGuard
php bin/antares make:migration create_users_table

Each command creates a file in the appropriate subdirectory with the correct namespace, imports, and stub implementation.

Terminal window
php bin/antares migrate
php bin/antares migrate:rollback

migrate runs all pending migrations in database/migrations/. migrate:rollback rolls back the last batch in reverse order. See Migrations for details.

Terminal window
php bin/antares cache:clear

Deletes the compiled route cache (storage/cache/routes.php) and the fingerprint file (storage/cache/fingerprint). The cache is rebuilt on the next request.