Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"docs/concepts.md",
{"title": "API", "depth": 2},
"docs/api.md",
"docs/rest.md"
"docs/rest.md",
"docs/cli.md"
]
}
40 changes: 40 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Command Line

The StrongLoop Suite comes bundled with a command line tool called StrongLoop
Command or `slc`. StrongLoop Command allows you to create boilerplate for
LoopBack and other StrongNode applications.

### Commands

`slc lb` provides the following commands.

#### workspace

Initialize a workspace as a new empty directory with an optional
name. The default name is "loopback-workspace".

```sh
$ slc lb workspace my-loopback-workspace
```

#### api

Create a LoopBack application in a new directory within a workspace
using the given name. The name arg is required.

```sh
$ cd my-loopback-workspace
$ slc lb api my-app
$ slc run app
```

#### model
Create a model in an existing LoopBack application. If you provide the
`-i` or `--interactive` flags, you will be prompted through a model
configuration. The `--data-source` flag allows you to specify the name of a
custom data. Otheriwse it will use the data source named "db".

```sh
$ cd my-app
$ slc lb model product
```