Setup Wizard
This guide is for the initial administrator unlocking a new Patchwork installation at /setup.
Prerequisites
Section titled “Prerequisites”- Patchwork installed and running (
npm run setup) - One-time Admin Setup Token printed by the installer
Autosave & Resume
Section titled “Autosave & Resume”Every step saves automatically into PostgreSQL (setup_state). You can close /setup and resume later without losing progress.
Wizard Steps
Section titled “Wizard Steps”- Token Verification: Enter the one-time Admin Setup Token. Rate limiting protects this endpoint from brute-force attempts.
- Admin Account: Set the initial administrator’s name, email, and strong password.
- Organization: Configure the organization name, URL slug, and description.
- Teams: Create one or more engineering teams and assign team leads.
- Employees & CSV Import:
- Add members manually or upload a CSV file (download the sample CSV template directly from the wizard).
- Choose name-based (
FirstL@1234) or cryptographically random initial temporary passwords. All imported accounts havemustChangePasswordenabled on first login. - Toggle optional table columns (such as Projects or Role Notes) to simplify entry.
- Projects & Boards: Create initial projects (with uppercase keys such as
INFRA) and Kanban boards with custom columns and WIP limits. - Review & Complete: Finalize setup, lock
/setup, and download the generated members CSV.
Expected Result
Section titled “Expected Result”/setup locks permanently once completed (setup_state.isCompleted = true), and subsequent visits redirect to / where your organization workspace is ready.
Troubleshooting
Section titled “Troubleshooting”- Duplicate email rejected during CSV import: Emails are normalized case-insensitively (
lower(email)). Remove duplicate rows and re-upload. - Locked out after losing token: Run
node scripts/setup.mjs --action=resetto start fresh.