Examples
LocalNet​
For LocalNet, first add canton-open-source to components (for example canton-open-source:3.5.17) and run dpm install package.
Start the sandbox in a separate terminal:
dpm sandbox --ledger-api-port 5001 --admin-api-port 5002 --json-api-port 7575
Then, from the project root:
dpm canton-deploy init
dpm canton-deploy status --network localnet
dpm canton-deploy deploy --network localnet
dpm canton-deploy contracts --network localnet
CI with Pre-Built DARs​
Pin the component by digest in CI so every run installs the same image:
components:
- damlc:3.5.2
- daml-script:3.5.2
- oci://ghcr.io/lync-world/canton-deploy:0.2.2
Then:
dpm install package
dpm build
dpm canton-deploy deploy --skip-build --network localnet --log-file deploy.log
DevNet with a JWT​
Set the JWT:
export DEVNET_JWT_TOKEN='eyJ...'
Check connectivity:
dpm canton-deploy status --network devnet
Deploy:
dpm canton-deploy deploy --network devnet
Inspect packages:
dpm canton-deploy packages --network devnet
TestNet / MainNet (Ledger Upload)​
Use one config file with named profiles; switch with --network only:
dpm canton-deploy status --network testnet
dpm canton-deploy deploy --network testnet --skip-build
dpm canton-deploy deploy --network mainnet --skip-build --no-vet
MainNet JWTs often come from tokenCommand (Vault or similar) in config. See Authentication.