Docs/Tooling & Production/CLI Reference

CLI Command Reference

Reference guide for all commands, arguments, and flags available in the goks CLI.

goks new <project-name>

Creates a new GoKS fullstack application with App Router, Tailwind CSS v4, and opinionated starter code.

goks dev [port]

Starts the local development server (defaults to port 3000) with hot reloading, Tailwind CSS background compilation, and the runtime compile error overlay.

goks build [--standalone] [--compiler=tinygo]

Compiles the application for production. Use--standaloneto embed all assets into a single binary, or--compiler=tinygofor ultra-compact client WebAssembly under 300KB.

goks export

Static Site Generation (SSG). Pre-renders all discoverable pages to static HTML insideout/, ready for Cloudflare Pages, Netlify, Vercel, or GitHub Pages.

goks ui add <component-name>

Installs pre-built accessible UI components intocomponents/ui/. Usegoks ui add allto install the full suite.

goks db <subcommand>

Database migration and lifecycle management. Commands includemake:migration,migrate,rollback,status, andseed.

goks studio

Launches the browser directly to the embedded GoKS Studio DevTools dashboard athttp://localhost:3000/__goks.

goks page <route-path>

Scaffolds a new page component and directory insideapp/.

goks lsp

Starts the Language Server Protocol (LSP) daemon for IDE integration (VS Code, Neovim) providing syntax highlighting, auto-completion, and diagnostics for.goxfiles.

Powered byGoKS WASM16 topics