Skip to content

rehan-akmal/sasjs-cli

Repository files navigation

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>

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. An alias for this command is sasjs c folderName.
    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.
  • 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 config.json. An alias for this command is sasjs b folderName.
  • 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.
  • help: displays help text. Aliases for this command are sasjs h, sasjs --help, sasjs -help and sasjs --h.
  • version: displays the currently installed version of SASjs CLI. Aliases for this command are sasjs v, sasjs --version, sasjs -version and sasjs --v.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published