Skip to content


The runtime environment for the CLI is Node. We recommend using NVM instead of Node directly, as this does not require root permissions.

curl -o- | bash
source ~/.bashrc
nvm install node

The CLI can now be installed using Node Package Manager (npm) as follows:

npm i -g @sasjs/cli


Due to a bug in NPM, the following approaches for upgrades are not reliable:

  • npm i -g @sasjs/cli@latest (sasjs v will show latest version, but code isn't actually updated)
  • npm update @sasjs/cli (works but the first time you use the sasjs command there will be an error)

These issues are resolved in NPM 7 (npm i -g npm@next-7). If you prefer to use the current GA version, the workaround is to explicitly delete the SASjs files before installing, eg:

cd /Users/allan/.nvm/versions/node/v13.9.0/lib/node_modules
rm -rf sasjs-cli
npm i -g @sasjs/cli