Command-line tool for the pidgn web framework.
Project scaffolding, code generation, development server, database migrations, and more. A single binary that handles the full development workflow for pidgn applications.
curl -fsSL https://pidgn.dev/install.sh | shInstall a specific version:
PIDGN_VERSION=v0.1.0 curl -fsSL https://pidgn.dev/install.sh | shbrew tap seemsindie/pidgn
brew install pidgnPre-built binaries for macOS (arm64, x86_64) and Linux (x86_64, aarch64) are available on the Releases page.
cd pidgn_cli
zig build
# Binary at zig-out/bin/pidgnCreate a new pidgn project with full directory structure.
pidgn new my_app
cd my_app
zig build run
# Server running on http://127.0.0.1:4000Creates:
my_app/
build.zig
build.zig.zon
.gitignore
src/
main.zig
controllers/
templates/
public/
css/style.css
js/app.js
Start a development server with auto-reload on file changes.
pidgn server
# Building...
# Server running. Watching for changes... (Ctrl+C to stop)Generate a RESTful controller with index, show, create, update, and delete actions.
pidgn gen controller Users
# Created: src/controllers/users.zigGenerate a database model schema and migration file.
pidgn gen model Post title:string body:text user_id:integer published:boolean
# Created: src/post.zig
# Created: priv/migrations/001_create_post.zigSupported types: string, text, integer/int, float/real, boolean/bool
Generate a WebSocket channel for real-time communication.
pidgn gen channel Chat
# Created: src/channels/chat.zigRun database migrations.
pidgn migrate # Run pending migrations
pidgn migrate rollback # Rollback last migration
pidgn migrate status # Show migration statusList all application routes.
pidgn routesExport the OpenAPI specification.
pidgn swagger > api.jsonRun project tests.
pidgn testList workspace dependencies.
pidgn depsManage the frontend asset pipeline using Bun.
pidgn assets setup # Generate starter assets (app.js, app.css, bunfig.toml)
pidgn assets setup --ssr # Also generate SSR worker and example component
pidgn assets build # Bundle, minify, and fingerprint assets
pidgn assets watch # Watch and rebuild on changesCreates:
assets/
app.js # JavaScript entry point
app.css # Stylesheet
public/assets/
app-<hash>.js # Fingerprinted output
app-<hash>.css
assets-manifest.json # Original → fingerprinted name mapping
Show version.
pidgn version # 0.1.0pidgn new blog
cd blog
pidgn gen model Post title:string content:text published:boolean
pidgn gen controller Posts
pidgn gen channel Comments
pidgn assets setup
pidgn migrate
pidgn serverFull documentation available at docs.pidgn.dev under the CLI section.
| Package | Description |
|---|---|
| pidgn.zig | Core web framework |
| pidgn_db | Database ORM (SQLite + PostgreSQL) |
| pidgn_jobs | Background job processing |
| pidgn_mailer | Email sending |
| pidgn_template | Template engine |
| pidgn_cli | CLI tooling |
- Zig 0.16.0-dev.2535+b5bd49460 or later
MIT License -- Copyright (c) 2026 Ivan Stamenkovic