You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -85,14 +85,20 @@ mbed CLI allows creating new programs and importing existing ones, always with t
85
85
86
86
#### Creating a new program
87
87
88
-
When you create a new program, *mbed-cli* automatically imports the [mbed-os library](https://github.com/ARMmbed/mbed-os/) for you. This library represents a **release** of mbed OS and will pull in all the components of the OS, including its build system and desktop IDE project generators.
88
+
When you create a new program, *mbed CLI* automatically imports the [mbed-os library](https://github.com/ARMmbed/mbed-os/) for you. This library represents a **release** of mbed OS and will pull in all the components of the OS, including its build tools and desktop IDE project generators.
89
89
90
90
With this in mind, these are the steps for creating a new program (we'll call it `myprog`):
91
91
92
92
```
93
-
$ mbed new myprog # this creates a new folder "myprog", initializes a new repository and imports the latest revision of the mbed-os dependency to your program tree.
93
+
$ mbed new myprog
94
+
```
95
+
96
+
This creates a new folder "myprog", initializes a new repository and imports the latest revision of the mbed-os dependency to your program tree.
97
+
98
+
You can use `mbed ls` to list all imported libraries to your program.
99
+
```
94
100
$ cd myprog
95
-
$ mbed ls -a # this lists all libraries in your program
<spanclass="notes">**Note**: At the moment, if you want to start from an existing folder in your workspace, you can simply use `mbed new .`, which will initialize a new Git or Mercurial repository in that folder. While this might seem like a limitation, it helps with correct versioning for all program files, and helps mbed-cli find mbed-os and tooling. You can always drop the version control by removing the ``.git`` or ``.hg`` source management folders.</span>
123
+
<spanclass="notes">**Note**: If you want to start from an existing folder in your workspace, you can simply use `mbed new .`, which will initialize an mbed program and also initialize a new Git or Mercurial repository in that folder. You can control which source control management is used or prevent source control management initialization via `--scm [name|none]` option.</span>
0 commit comments