Getting Started
Install DPM and prepare your machine for Daml development.
Use this page to set up your local environment correctly before writing contracts.
dpm (Digital Asset Package Manager) is the command-line tool used to build, test, and run Daml projects.
1) Prerequisites
- macOS, Linux, or Windows
- JDK 17 or newer (with
JAVA_HOMEconfigured) - VS Code 1.87+ if you plan to use Daml Studio
Check Java:
java -version2) Install DPM
Mac/Linux:
curl https://get.digitalasset.com/install/install.sh | shWindows:
- Download and run the installer from Digital Asset docs.
Optional install location:
- Set
DPM_HOMEbefore install if you do not want the default path.
3) Add DPM to PATH (macOS/Linux)
export PATH="$HOME/.dpm/bin:$PATH"Add that line to your shell profile (~/.zshrc or ~/.bashrc) to persist it.
4) Verify installation
dpm version --active
dpm new --list5) SDK version management
Install the SDK declared in a project's daml.yaml:
dpm install packageInstall a specific version:
dpm install 3.4.11Inspect installed/available versions:
dpm version
dpm version --all
dpm version --all -o json6) Core commands you will use
| Task | Command |
|---|---|
| Create a project | dpm new |
| Build DAR | dpm build |
| Run scripts/tests | dpm test |
| Open Daml Studio | dpm studio |
| Start local ledger | dpm sandbox |