View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

sails new

sails new <appName> creates a new Sails project in a folder called appName.

  • --no-linker Disable automatic asset linking in your view and static HTML files (the relevant grunt tasks will not be created)
  • --no-frontend Disable the generation of the assets folder and files. Views will be created with hardcopied linked resources off of
  • --template=[template language] Use a different template language than the default (e.g. jade). Requires that a views generator for that language (e.g. sails-generate-views-jade) be installed in your global node path (e.g. ~/node_modules/ works).

sails new is really just a special generator which runs sails-generate-new. In other words, running sails new foo is an alias for running sails generate new foo, and like any Sails generator, the actual generator module which gets run can be overridden in your global ~/.sailsrc file.

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.


We wrote a book!

Get early access to the book
with promotion code: mcneildoc

Get the Book