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. All commands support -t <target> to select a target from sasjsconfig.json.
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.
Core workflow
sasjs create myapp # scaffold a new app (templates available)
sasjs compile # gather macros/services/jobs into per-file build outputs (sasjsbuild/)
sasjs build # produce deployable artefacts: JSON + .sas per target
sasjs deploy # deploy compiled/built artefacts to the target server
sasjs cbd # compile + build + deploy in one step (-t viya etc.)