Skip to content

Commit 103a06c

Browse files
committed
doc: Add workspace initialization into existing NCS workspace
Adding instructions for initializing workspace into an existing NCS workspace. Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
1 parent beec263 commit 103a06c

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,13 @@ Follow the official
5656

5757
### Initialization
5858

59+
This section represents alternative approaches for initializing the workspace.
60+
61+
#### Initialize workspace from scratch
62+
5963
The first step is to initialize the workspace folder (``my-workspace``) where
60-
the ``ncs-example-application`` and all nRF Connect SDK modules will be cloned. Run the following
61-
command:
64+
the ``ncs-example-application`` and all nRF Connect SDK modules will be cloned.
65+
Run the following commands:
6266

6367
```shell
6468
# initialize my-workspace for the ncs-example-application (main branch)
@@ -68,6 +72,20 @@ cd my-workspace
6872
west update
6973
```
7074

75+
#### Add application into existing nRF Connect SDK workspace
76+
77+
Assume you have an existing nRF Connect SDK workspace in the :file:`my-workspace` folder. Run the following commands:
78+
79+
```shell
80+
# Navigate to the workspace folder
81+
cd my-workspace
82+
# Clone application repository
83+
git clone https://github.com/nrfconnect/ncs-example-application
84+
# Set manifest path to the application directory
85+
west config manifest.path ncs-example-application
86+
west update
87+
```
88+
7189
### Building and running
7290

7391
To build the application, run the following command:

0 commit comments

Comments
 (0)