Makefile Commands

Primary developer command interface. All commands run from the renewa-one/ directory.

Source: renewa-one/Makefile (make help lists everything)

Core Commands

CommandPurpose
make setupAllocate unique ports for this worktree (creates .env.local)
make port-statusShow the port-slot map across all worktrees
make dev-initSetup ports + pull secrets + start Docker (one command for new worktrees)
make devStart Docker stack
make dev-buildRebuild and start
make dev-detachStart in background
make dev-reloadRecreate containers to pick up changed secrets (keeps volumes/data)
make dev-cleanStop + remove containers/volumes
make dev-resetClean + restart + open browser
make installFirst-time setup (worktrees use dev-init)

Quality Checks

CommandPurpose
make typecheckTypeScript check (backend + frontend, in running dev stack)
make lintESLint (backend + frontend)
make formatFormat code
make testFull test suite (start the stack first with make dev/dev-detach)
make test-backend / make test-frontendOne side only
make test-backend-scoped FILES="…"Specific backend test files
make test-frontend-scoped FILES="…"Frontend tests related to given source/test paths

During development run only scoped tests for changed files; the full suite runs in CI (pre-push no longer runs tests — see Git Workflow).

Database Operations

CommandPurpose
make db-generate NAME=descGenerate migration from schema changes
make db-validateValidate migration integrity (Atlas)
make db-lintLint migrations against main (ordering + destructive ops)
make db-check-driftVerify schema.ts matches cumulative migrations
make db-reset-migrationsReset atlas/migrations to main, keep schema.ts changes
make db-migrateApply pending migrations
make db-mockLoad demo data (idempotent; replaces db-seed)
make db-mock-largeAdditional large-scale mock data (run after db-mock)
make db-seed / make db-seed-largeDEPRECATED aliases for db-mock / db-mock-large
make db-resetDrop, create, migrate, reload mocks
make db-studioOpen Drizzle Studio UI
make adminerStart Adminer (database UI)
make config-exportExport config snapshot from local DB

Container Management

CommandPurpose
make statusShow container status
make start / make stopStart/stop containers (stop preserves data)
make logs / logs-backend / logs-frontendView container logs
make shell-backend / shell-frontendShell into containers
make shell-dbPostgreSQL shell
make urlsShow clickable access URLs for this instance
make openOpen frontend in browser
make infoShow current port configuration

Production

CommandPurpose
make prod-buildProduction Docker build (CI/CD)
make prod-testTest production build locally

Environment Management

CommandPurpose
make env-pullPull .env from Infisical (local environment; requires infisical login)
make env-pushPush .env to Bitwarden shared note (legacy; requires bw CLI)
make env-checkVerify env completeness vs .env.example

make dev warns when the Infisical CLI is missing (warn-no-infisical).

SSO

CommandPurpose
make sso-registerRegister local SSO redirect URI in Azure Entra (requires ENTRA_* in .env)

See Also