LogoRevali

revali routes

List the routes generated for your Revali application

The revali routes command lists the routes generated for your application by reading .revali/server/routes.json.

Basic Usage#

dart run revali routes

Example output:

prefix: /api  (2 routes)

GET      /users        →  UserController.getUsers
POST     /users        →  UserController.createUser

Options#

FlagDescription
--generate, -g Regenerate the server construct before reading the manifest.
--json Print the raw routes.json contents instead of the formatted list.

Generating the Manifest First#

routes.json is written whenever the server construct is generated (for example by revali dev or revali dev --generate-only). If it doesn't exist yet, revali routes will tell you so:

dart run revali routes --generate

This runs generation once (without starting the dev server) and then prints the routes.

Next Steps#