Skip to main content

Updating SnailyCADv4

This guide explains how to update SnailyCADv4 to a new version.

Getting started

First, shut down the CAD. This can be done by pressing CTRL+C in the Command Prompt for standalone installations or docker-compose down for Docker installations

There are 2 ways of updating SnailyCADv4:

Automatic

caution
  1. If there are things that need to be updated in the .env file. Please update this before running the command.
  2. Make sure that you're in the root of the SnailyCADv4 folder.

Simply run the command below. This will run all the commands of the manual way.

curl https://raw.githubusercontent.com/SnailyCAD/autoupdater/main/dist/index.js > script.js

node script.js

To start SnailyCAD see below

Manual

Updating local code

First we must update our local code:

git pull origin main

Updating dependencies

Secondly, we must update dependencies that might've changes from the last release. To do so, run the following command:

yarn

Configuration

If there's something that needs to be changed in the .env file, make sure to do that properly. View the guide here

Building everything

Now we must build all the packages & apps again. (client, schemas, config, types)

yarn turbo run build

Starting SnailyCAD

To bring the CAD back up run the following command:

Docker
docker-compose -f production.docker-compose.yml up -d
Standalone
yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"