Generate the backend part of a new Sails app.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

sails generate backend

Default generator for backend code files in new Sails apps. Creates the default contents of the api/ and config/ folders when you run sails new on the command line.


Branch Purpose
master The future version of this generator for usewith Sails v1.0.
sails-0.12 The latest stable release of this generator, used by Sails v0.12.x (latest stable as Sep 2016.)

Bugs   NPM version

To report a bug, click here.

This is a built-in module in the Sails command-line tool. It is installed automatically when you run npm install sails -g.

Getting help

Read the docs on generators, and see the support section of our website for more resources.


Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.

NPM package info


The Sails framework is free and open-source under the MIT License.