W
Wasp•3w ago
p4j4r5

Two different versions of wasp on same machine

How to have two different versions of wasp on same machine? I am planning to work on new project and would like to use latest version that what I have in my previous project.
2 Replies
kapa.ai
kapa.ai•3w ago
Hi @p4j4r5. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- You can have multiple versions of Wasp installed on the same machine. Wasp's installer script is designed to support this: each version is installed in its own directory (e.g., ~/.local/share/wasp-lang/1.2.3/), and a small script in your bin directory points to the currently active version. To install or switch to a specific version, use the installer script with the -v flag:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v x.y.z
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v x.y.z
Replace x.y.z with the desired version number. If you run this command for a version that is already installed, it will simply switch to that version without re-downloading it. This allows you to easily switch between versions as needed for different projects. The script manages the active version by updating the symlink in your bin directory, so only one version is "active" at a time, but all installed versions remain on disk and can be reactivated as needed. For more details, see the official documentation and related discussions:
Wasp CLI Reference
Make process of updating Wasp nicer ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @p4j4r5, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Carlos
Carlos•3w ago
Hey @p4j4r5, you can have multiple versions installed, but only one version active at a time. To switch between versions, you can run the installer again:
curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v x.y.z
curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v x.y.z
It will detect if the version is already installed, and just switch to it. We're cooking up a couple of ways to solve this, coming in the next year. 😊

Did you find this page helpful?