Skip to content

Commit

Permalink
docs: additional documentation around cli generators (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemac authored and zacharygolba committed Jun 17, 2017
1 parent 1691f9a commit 2327c13
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lux
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ cli
cli
.command('g <type> <name> [attrs...]')
.alias('generate')
.description('Example: lux generate model user')
.description('Example: lux generate model user name:string email:string admin:boolean')
.action((type, name, attrs) => {
exec('generate', { type, name, attrs })
.then(exit)
Expand Down
16 changes: 16 additions & 0 deletions guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ Use the new command to create your first project.
lux new <app-name>
```

### Generators

Lux allows you to use the CLI to generate boilerplate for the following types:

- `model`
- `controller`
- `serializer`
- `middleware`
- `migration`
- `resource`
- `util`

```bash
lux generate <type> <name> [attrs...]
```

### Running

To run your application use the serve command.
Expand Down

0 comments on commit 2327c13

Please sign in to comment.