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 }.serverTypeis one ofSAS9,SASVIYA,SASJS. - Credentials:
sasjs add cred(or a local env file). Viya uses client/secret orsasjs auth login(user/pass, no client/secret needed - see below); SAS 9 uses user/pass; SASJS server uses an access token. sasjs contextmanages Viya compute contexts;sasjs add targetadds a new target.