3.9.3 • Published 4 years ago

sasjs-cli v3.9.3

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

SASjs CLI

sasjs-cli is a Command-Line Interface to assist with creating, building, and deploying HTML5 Web Applications on the SAS platform. It fulfills 3 main purposes:

  • Creation of a project repository in an 'opinionated' way
  • Compilation each service, including all the dependent macros and pre / post code
  • Deployment script generation - run this in SAS Studio to create all your backend services in Viya or SAS9.

There is also a feature to let you deploy your frontend as a service, bypassing the need to access the SAS Web Server.

Usage

  1. Install globally using npm as follows:
  npm i -g sasjs-cli
  1. You will then be able to run the command sasjs from your command line with one of the available options.
  sasjs <option>

IMAGE ALT TEXT HERE

Available Options

  • create: creates the folders and files required for SAS development. You can use this command in two ways:
    1. sasjs create folderName - which creates a new folder with the name specified.
    2. sasjs create - which creates the files and folder in the current working directory. If this directory is an existing NPM project with a package.json file, this command adds macrocore to the list of dependencies in that file. Else, it will initialise a new NPM project and then install macrocore. An alias for this command is sasjs c.
  • sasjs build [targetName]: loads dependencies and builds services for SAS, for the specified build target name. If no target is specified, it builds the first target specified in sasconfig.json. An alias for this command is sasjs b.
  • web: generates SAS services for streaming your HTML, CSS and JavaScript-based app from a SAS server. This command is automatically run as part of sasjs build if streamWeb is set to true for a particular build target. An alias for this command is sasjs w.
  • sasjs help: displays help text. Aliases for this command are sasjs h, sasjs --help, sasjs -help and sasjs --h.
  • sasjs version: displays the currently installed version of SASjs CLI. Aliases for this command are sasjs v, sasjs --version, sasjs -version and sasjs --v.

Command Operations

  • sasjs db (Alias: build-DB, DB) Remove only db folder if present in "sasjsbuild".
  • sasjs compile (Alias: c) Remove all buildfolders("services", and anyother) along deployment script but not "db" folder.
  • sasjs build (Alias: b) Compile if needed, and recreate deployment script.
  • sasjs compilebuild (Alias: cb) Compile and recreate deployment script.
  • sasjs listcontexts (Alias: lc) Display a list of compute contexts on a given server, with inaccessible ones specifically marked.
  • sasjs add (Alias: a) Lets the user add a build target either to the local project configuration or to the global .sasjsrc file.
  • sasjs run (Alias: r) Lets the user run the specified SAS file against a target present either in the local project configuration or the global .sasjsrc file.
3.9.3

4 years ago

3.9.2

4 years ago

3.9.1

4 years ago

3.9.0

4 years ago

3.8.1

4 years ago

3.8.0

4 years ago

3.7.1

4 years ago

3.7.0

4 years ago

3.6.6

4 years ago

3.6.5

4 years ago

3.6.4

4 years ago

3.6.3

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.6.0

4 years ago

3.5.3

4 years ago

3.4.1

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.16

4 years ago

3.0.17

4 years ago

3.0.14

4 years ago

3.0.15

4 years ago

3.0.12

4 years ago

3.0.13

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.11.6

4 years ago

2.11.5

4 years ago

2.12.0

4 years ago

2.11.4

4 years ago

2.11.3

4 years ago

2.11.2

4 years ago

2.11.0

4 years ago

2.11.1

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.0

4 years ago

2.8.2

4 years ago

2.8.1

4 years ago

2.8.0

4 years ago

2.7.5

4 years ago

2.7.4

4 years ago

2.7.3

4 years ago

2.7.2

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.2

4 years ago

2.5.0

4 years ago

2.5.1

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.11.0

4 years ago

1.10.1

4 years ago

1.9.1

4 years ago

1.10.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.4

4 years ago

1.6.5

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago