Permalink
Browse files

Create Command-Line-Interface.ms

  • Loading branch information...
1 parent a7c4d5e commit 548de11c3587d87a6a9f3c7b921e826b3e56f4b5 @ProLoser ProLoser committed Oct 19, 2013
Showing with 37 additions and 0 deletions.
  1. +37 −0 Command-Line-Interface.ms
View
@@ -0,0 +1,37 @@
+#Sails CLI
+
+## What is the Sails CLI?
+Sails comes with a convenient tool to quickly get your app scaffolded and running.
+
+## Commands
+
+### `sails lift`
+Run the Sails app in the current dir (if node_modules/sails exists, it will be used instead of the global install)
+
+#### Options:
+
+ * `--dev` - in development environment
+ * `--prod` - in production environment
+ * `--port 9000` - on port 9000
+ * `--verbose` - with verbose logging enabled
+
+### `sails console`
+Run this Sails app (in the current dir & in interactive mode.)
+
+### `sails new <appName>`
+Create a new Sails project in a folder called <appName>
+
+### `sails new <appName> --linker`
+Create a new Sails project in a folder called <appName>, using automatic asset linking
+
+### `sails generate <foo>`
+Generate api/models/Foo.js and api/controllers/FooController.js
+
+### `sails generate model <foo>`
+Generate api/models/Foo.js
+
+### `sails generate controller <foo>`
+Generate api/controllers/FooController.js
+
+### `sails version`
+Get the current globally installed Sails version

0 comments on commit 548de11

Please sign in to comment.