CLI

Gello CLI — developer tools for managing your application

Installation

The Gello CLI is included in the @gello/cli package.

pnpm add -D @gello/cli

Running Commands

# Via pnpm script
pnpm gello <command>

# Or via npx
npx gello <command>

Available Commands

Routes

# Display all registered routes
pnpm gello route:list

# Output as JSON
pnpm gello route:list --json

# Filter by method
pnpm gello route:list --method GET

# Filter by path
pnpm gello route:list --path /users

Generators (Coming Soon)

# Generate a controller
pnpm gello make:controller User

# Generate a service
pnpm gello make:service Email

# Generate a job
pnpm gello make:job SendWelcomeEmail

Database (Coming Soon)

# Run migrations
pnpm gello migrate

# Create a new migration
pnpm gello migrate:make add_users_table

# Rollback last migration
pnpm gello migrate:rollback

Queue (Coming Soon)

# Start queue worker
pnpm gello queue:work

# Show queue status
pnpm gello queue:status

# Clear failed jobs
pnpm gello queue:clear --failed

Help

# Show help
pnpm gello --help

# Show version
pnpm gello --version

Route List Output

The route:list command displays a beautiful TUI with:

  • GELLO ASCII art logo in gruvbox orange
  • Stats bar with total routes and method counts
  • Routes grouped by path prefix
  • Color-coded HTTP methods (GET=green, POST=yellow, DELETE=red)
██████╗ ███████╗██╗     ██╗      ██████╗
██╔════╝ ██╔════╝██║     ██║     ██╔═══██╗
██║  ███╗█████╗  ██║     ██║     ██║   ██║
██║   ██║██╔══╝  ██║     ██║     ██║   ██║
╚██████╔╝███████╗███████╗███████╗╚██████╔╝
 ╚═════╝ ╚══════╝╚══════╝╚══════╝ ╚═════╝

Route List • Todo API

Total: 9 routes  │  GET:4  POST:2  PATCH:1  DELETE:2

──────────────────────────────────────────
METHOD    PATH                    HANDLER
──────────────────────────────────────────

/
GET       /                       apiInfo

/health
GET       /health                 healthCheck

/todos
GET       /todos                  listTodos
GET       /todos/:id              getTodoById
POST      /todos                  createTodoRoute
PATCH     /todos/:id              updateTodoRoute
DELETE    /todos/:id              deleteTodoRoute