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
10 changes: 7 additions & 3 deletions _data/sidebars/lb4_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ children:
- title: 'Application'
url: Application.html
output: 'web, pdf'

- title: 'Server'
url: Server.html
output: 'web, pdf'
Expand Down Expand Up @@ -93,11 +93,15 @@ children:
- title: 'Application generator'
url: Application-generator.html
output: 'web, pdf'

- title: 'Controller generator'
url: Controller-generator.html
output: 'web, pdf'

- title: 'Download examples'
url: Download-examples.html
output: 'web, pdf'

- title: 'Best practices with Loopback 4'
url: Best-practices-with-Loopback-4.html
output: 'web, pdf'
Expand Down Expand Up @@ -156,7 +160,7 @@ children:
- title: 'FAQ'
url: FAQ.html
output: 'web, pdf'

- title: 'Reference'
url: Reference.html
output: 'web, pdf'
Expand Down
4 changes: 2 additions & 2 deletions _includes/content/lb4-artifact-commands.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<table width="750">
<thead><tr>
<th width="270">Commands</th>
<th width="200">Commands</th>
<th>Description</th>
<th width="200">See</th>
</tr></thead>
<tbody>
<tr>
<td> <code>lb4 controller</code>
<td><code>lb4 controller</code>
</td><td> Add a new controller to a LoopBack 4 application
</td><td> <a href="Controller-generator.html">Controller generator</a>
</td></tr>
Expand Down
12 changes: 9 additions & 3 deletions _includes/content/lb4-project-commands.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
<table width="750">
<thead><tr>
<th width="270">Commands</th>
<th width="200">Commands</th>
<th>Description</th>
<th width="200">See</th>
</tr></thead>
<tbody>
<tr>
<td> <code>lb4</code>
<td><code>lb4</code>
</td><td> Create a new LoopBack4 application
</td><td> <a href="Application-generator.html">Application generator</a>
</td><td> <a href="Application-generator.html">Application generator</a>
</td></tr>

<tr>
<td><code>lb4 example</code>
</td><td> Download one of LoopBack example projects
</td><td> <a href="Download-examples.html">Download examples</a>
</td></tr>

</tbody></table>
44 changes: 44 additions & 0 deletions pages/en/lb4/Download-examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
lang: en
title: 'Download examples'
keywords: LoopBack 4.0, LoopBack 4
tags:
sidebar: lb4_sidebar
permalink: /doc/en/lb4/Download-examples.html
summary:
---

### Synopsis

Downloads a LoopBack example project from our
[GitHub monorepo](https://github.com/strongloop/loopback-next).


```text
lb4 example [options] [<example-name>]
```

### Options

{% include_relative includes/CLI-std-options.md %}

### Arguments

`example-name` - Optional name of the example to clone. If provided, the tool
will skip the example-name prompt and run in a non-interactive mode.

See [Examples and tutorials](Examples-and-tutorials.html) for the list of
available examples.

### Interactive Prompts

The tool will prompt you for:

- Name of the example to download. If the name had been supplied from the
command-line, the prompt is skipped.

### Output

The example project is downloaded to a new directory. For example, when
downloading `getting-started` example, the tool stores the files
under the newly created `loopback4-example-getting-started` directory.