Skip to content

Commit db86474

Browse files
authored
Merge pull request #316 from iriark01/patch-3
Three changes
2 parents a33e40f + 8c0c304 commit db86474

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This document covers the installation and usage of mbed CLI.
3737
4. [Test directory structure](#test-directory-structure)
3838
1. [mbed CLI configuration](#mbed-cli-configuration)
3939

40+
4041
## Using mbed CLI
4142

4243
The basic workflow for mbed CLI is to:
@@ -178,15 +179,27 @@ You can create plain (empty) programs, without either mbed OS 5 or mbed OS 2, by
178179
Use `mbed import` to clone an existing program and all its dependencies to your machine:
179180

180181
```
181-
$ mbed import https://github.com/ARMmbed/mbed-blinky/
182-
$ cd mbed-blinky
182+
$ mbed import https://github.com/ARMmbed/mbed-os-example-blinky
183+
$ cd mbed-os-example-blinky
183184
```
184185

185186
mbed CLI also supports programs based on mbed OS 2, which are automatically detected and do not require additional options:
186187

187188
```
188-
$ mbed import https://developer.mbed.org/teams/mbed/code/mbed_blinky/
189-
$ cd mbed_blinky
189+
$ mbed import https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
190+
$ cd mbed-os-example-blinky
191+
```
192+
193+
You can use the "import" command without specicying a full URL; a default prefix (https://github.com/ARMmbed) is added to the URL. For example, this command:
194+
195+
```
196+
$ mbed import mbed-os-example-blinky
197+
```
198+
199+
is equivalent to this command:
200+
201+
```
202+
$ mbed import https://github.com/ARMmbed/mbed-os-example-blinky
190203
```
191204

192205
### Importing from a Git or GitHub clone

0 commit comments

Comments
 (0)