Setup Guide
This page will show you how to set up a local Bitwarden server for development purposes.
The Bitwarden server is comprised of several services that can run independently. For a basic development setup, you will need the Api and Identity services.
info
Before you start: make sure you’ve installed the recommended Tools and Libraries, including:
- Docker Desktop
- Visual Studio 2022
- Powershell
- NET 8.0 SDK
- Azure Data Studio
Clone the repository
-
Clone the Bitwarden Server project:
git clone https://github.com/bitwarden/server.git
-
Open a terminal and navigate to the root of the cloned repository.
Configure Git
-
Configure Git to ignore the Prettier revision:
git config blame.ignoreRevsFile .git-blame-ignore-revs
-
(Optional) Set up the pre-commit
dotnet format
hook:git config --local core.hooksPath .git-hooks
Formatting requires a full build, which may be too slow to do every commit. As an alternative, you can run
dotnet format
from the command line when convenient (e.g. before requesting a PR review).