Quickstarts
Common flows (feature work, PR testing, server changes) using stacks + worktrees.
This page is the “copy/paste” companion to /docs/hstack/development.
If you’re new, read /docs/hstack/setup and /docs/hstack/worktrees-and-forks first.
1) Typical feature work (recommended)
Create a worktree based on upstream (clean PR history):
hstack wt new my-feature --from=upstream --useCreate an isolated stack and pin it to the active worktree:
hstack stack new exp1
hstack stack wt exp1 -- use activeRun the stack in dev mode:
hstack tui stack dev exp1If you can’t use the TUI (non-interactive terminals / CI), run:
hstack stack dev exp1Push the branch to your fork:
hstack wt push active --remote=origin2) Use the canonical dev/ checkout
If you’re working directly on the dev branch (common for maintainers):
hstack stack new dev
hstack stack wt dev -- use dev
hstack tui stack dev dev
# (optional) mobile dev-client + QR:
hstack tui stack dev dev --mobile3) Develop server changes (full server)
Create a full-server stack:
hstack stack new full1 --server=happier-serverThen run dev:
hstack tui stack dev full1Notes:
- This uses Docker-managed Postgres/Redis/Minio for the stack.
- If you don’t want Docker-managed infra, configure
DATABASE_URL/REDIS_URL/S3_*in the stack env file and re-run.
4) Test an upstream PR locally
Create a PR worktree:
hstack wt pr 123 --useCreate a PR stack that pins to it:
hstack stack pr pr123 --repo=123 --devIf you have a dev-auth seed stack, you can seed and link/copy auth:
hstack stack pr pr123 --repo=123 --dev --seed-auth --copy-auth-from=dev-auth --link-auth5) Port legacy split-repo commits into the monorepo
If you have changes that live in a legacy split-repo layout (old UI/CLI/server repos), use:
/docs/hstack/monorepo-port
6) One-shot validation on a worktree
For quick checks against your current checkout (non-stack-scoped):
hstack typecheck all
hstack lint all
hstack test allFor stack-scoped validation (recommended when debugging runtime issues):
hstack stack typecheck exp1 all
hstack stack lint exp1 all
hstack stack test exp1 all