Skip to content

Latest commit

 

History

History

scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Scripts

To run scripts in Sails, one just needs to sails run SCRIPT_NAME, where SCRIPT_NAME is the file name (minus extension) in the scripts folder.

Current Scripts

Command File Inputs Description
sails run create-admin
create-admin.js
  • email
  • firstName
  • lastName
  • password
Create an ADMIN user in the configured datastore. Can only be run once. For safety, if there is an active admin user found, the script will halt. The API endpoints must be used from that point forward.

Useful Links

Sails documentation for shell scripts