It is required to have Node.js installed. You can use your package manager of choice, as it isn't needed to install packages.
To run a sketch you can run the following commands, replace LOCATION/NAME with the directory and file name.
pnpm dlx canvas-sketch-cli LOCATION/NAME.js --open
npx canvas-sketch-cli LOCATION/NAME.js --new --open
#example terminal command
pnpm dlx canvas-sketch-cli artboards/sketch01.js
Want to create a new sketch file?
npx canvas-sketch-cli sketch.js --new --open
pnpm dlx canvas-sketch-cli sketch.js --new --open