Command Cheat Sheet
Comprehensive list of commands for the perfect development workflow for inkathon projects
Project Setup
Command | Description |
---|---|
npx create-inkathon-app@latest | Create new inkathon project |
Global Commands
Execute from the project root:
Command | Description | Category |
---|---|---|
bun run dev | Start frontend development server | Development |
bun run node | Run local ink-node | Development |
bun run dev-and-node | Run frontend and node concurrently | Development |
bun run codegen | Generate TypeScript types from contracts | Production |
bun run build | Build production frontend with codegen | Production |
bun run build:standalone | Build self-hosted production frontend | Production |
bun run start | Start production server | Production |
bun run lint | Run linter checks across all workspaces | Code Quality |
bun run lint:fix | Auto-fix linting issues in all workspaces | Code Quality |
bun run typecheck | TypeScript type checking for all workspaces | Code Quality |
bun run clean | Remove build artifacts from all workspaces | Maintenance |
bun run clean-install | Remove all node_modules and reinstall | Maintenance |
bun run update | Interactive dependency updates | Maintenance |
Frontend Commands
Execute from /frontend
directory or from root with bun run -F frontend <command>
:
Command | Description | Category |
---|---|---|
bun run dev | Start Next.js dev server with Turbo | Development |
bun run build | Build for production with Turbo | Production |
bun run build:standalone | Build self-hosted production build | Production |
bun run start | Start production server | Production |
bun run lint | Run Biome & Prettier checks | Code Quality |
bun run lint:fix | Auto-fix Biome & Prettier issues | Code Quality |
bun run typecheck | TypeScript type checking | Code Quality |
bun run clean | Remove .next and build artifacts | Maintenance |
Contract Commands
Execute from /contracts
directory or from root with bun run -F contracts <command>
:
Command | Description | Category |
---|---|---|
bun run node | Start local ink-node with dev chain | Development |
bun run build | Build all contracts in /src | Build |
bun run test | Run unit tests for all contracts | Testing |
bun run codegen | Generate TypeScript types with Papi | Build |
bun run deploy | Deploy on local dev chain (default) | Deployment |
CHAIN=<chain> bun run deploy | Deploy contract on <chain> | Deployment |
ACCOUNT_URI=<seed> bun run deploy | Deploy contract with <seed> | Deployment |
bun run lint | Run Biome & Prettier checks | Code Quality |
bun run lint:fix | Auto-fix Biome & Prettier issues | Code Quality |
bun run typecheck | TypeScript type checking | Code Quality |
bun run clean | Remove target and build artifacts | Maintenance |