This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
cargo run -- <args>- Run CLI during developmentcargo test- Run testscargo lint-fix- Fix linting issues automatically (run after making changes)cargo fmt- Format code (run after making changes)cargo clippy- Check for linting issuesnix-shell- Enter dev environment with dependencies
- Commands:
src/commands/- CLI commands using clap derives, each withexec()function - Controllers:
src/controllers/- Business logic for Railway entities (project, service, deployment) - GraphQL:
src/gql/- Generated type-safe queries/mutations for Railway API - Config:
src/config.rs- Authentication and project settings - Workspace:
src/workspace.rs- Multi-project context handling
Commands use a macro system in main.rs. The commands! macro generates routing for modules in src/commands/.
- Project tokens via
RAILWAY_TOKENenvironment variable - User tokens via OAuth flow stored in config directory