Local Machine Setup - Linux
This guide is recommended for advanced users setting up Formbricks on a Linux machine.
-
Clone the project & move into the directory:
-
Setup NodeJS with nvm:
-
Install NodeJS packages via pnpm:
-
Create a
.envfile based on.env.example: -
Generate & set the secret values:
-
Generate the Next.js AGENTS.md file (optional, for AI-assisted development):
This step generates an
AGENTS.mdfile at the repository root that provides Next.js documentation context for AI coding assistants (e.g. Cursor, GitHub Copilot). It runsnpx @next/codemod agents-mdunder the hood. Re-run it whenever you upgrade Next.js. -
Start the development setup: