sails newCreate a new Sails project.
sails new your-app-name
Most Sails apps should be generated simply by running sails new your-app-name, without any additional customization.  But sails new also accepts the following options:
--no-frontend: useful when generating a new Sails app that will not be used to serve any front-end assets.  Disables the generation of the assets/ folder, tasks/ folder, and related files.--minimal: generates an extremely minimal Sails app.  This disables the same things as --no-frontend, along with i18n, Waterline, Grunt, Lodash, Async, sessions, and views.--without: used to generate a Sails app without the specified feature(s). The supported "without" options are: 'lodash', 'async', 'orm', 'sockets', 'grunt', 'i18n', 'session', and 'views'. To disable multiple features at once, you can include the options as a comma-separated list, e.g. sails new your-app-name --without=grunt,views.To create a project called "test-project" in code/testProject/:
$ sails new code/testProject
info: Installing dependencies...
Press CTRL+C to skip.
(but if you do that, you'll need to cd in and run `npm install`)
info: Created a new Sails app `test-project`!
To create a Sails project in an existing myProject/ folder:
$ cd myProject
$ sails new .
info: Installing dependencies...
Press CTRL+C to skip.
(but if you do that, you'll need to cd in and run `npm install`)
info: Created a new Sails app `my-project`!
Creating a new Sails app in an existing folder will only work if the folder is empty.
sails newis really just a special generator which runssails-generate-new. In other words, runningsails new foois an alias for runningsails generate new foo, and like any Sails generator, the actual generator module which gets run can be overridden in your global~/.sailsrcfile.