You can set the DAML_SDK_VERSION environment variable, e.g., DAML_SDK_VERSION=1.2.0 daml sandbox will run version 1.2.0. By default, the newest installed SDK will be used outside of a project.
Is this still the go-to way to use an earlier version? I noticed the --activate flag for the daml install command, but it says it’s deprecated and the --install-assistant=yes flag suggested in the deprecation notice doesn’t have the same effect.
Ok. Once I created a project with DAML_SDK_VERSION=1.14.0 daml new create-daml-app --template create-daml-app (I have a 1.15.x snapshot version installed) is the DAML_SDK_VERSION variable needed to run the commands or will the daml assistant pick up the Daml version from the daml.yaml file?
The assistant will pick it up from daml.yaml. You only need to set the env var if you’re working outside a project (like for daml new) or if you want to override the version set in daml.yaml.