sasjs-cli

Installation
SKILL.md

@sasjs/cli

The SASjs CLI (npm i -g @sasjs/cli, invoked as sasjs) automates compiling, building, and deploying SAS projects. Most commands take -t <target> to select a target from sasjsconfig.json, and fall back to the default target when it is omitted; the ones that never touch a server (lint, db, create, init, doc init) have no target option at all.

Checked against @sasjs/cli 6.2.5. Flags are read from the installed CLI's own --help, so re-check sasjs <command> --help before relying on a flag that is not listed here.

Targets and auth

  • A target = { name, serverUrl, serverType, appLoc }. serverType is one of SAS9, SASVIYA, SASJS.
  • Credentials: sasjs add cred (or a local env file). Viya uses client/secret or sasjs auth login (user/pass, no client/secret needed - see below); SAS 9 uses user/pass; SASJS server uses an access token.
  • sasjs context manages Viya compute contexts; sasjs add target adds a new target.

Core workflow

Installs
1.6K
Repository
sasjs/skills
GitHub Stars
4
First Seen
Aug 11, 2026