Skip to content
Open
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
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,34 @@ Follow the official

### Initialization

The first step is to initialize the workspace folder (``my-workspace``) where
the ``ncs-example-application`` and all nRF Connect SDK modules will be cloned. Run the following
command:
This section represents alternative approaches for initializing the workspace.

#### Initialize workspace from scratch

The first step is to initialize the workspace folder (``ncs``) where
the ``ncs-example-application`` and all nRF Connect SDK modules will be cloned.
Run the following commands:

```shell
# Initialize ncs for the ncs-example-application (main branch)
west init -m https://github.com/nrfconnect/ncs-example-application --mr main ncs
# Update nRF Connect SDK modules
cd ncs
west update
```

#### Add application into existing nRF Connect SDK workspace

Assume you have an existing nRF Connect SDK workspace in the ``ncs`` folder. Run the following commands:

```shell
# initialize my-workspace for the ncs-example-application (main branch)
west init -m https://github.com/nrfconnect/ncs-example-application --mr main my-workspace
# update nRF Connect SDK modules
cd my-workspace
# Navigate to the workspace folder
cd ncs
# Clone application repository
git clone https://github.com/nrfconnect/ncs-example-application
# Set manifest path to the application directory
west config manifest.path ncs-example-application
# Update nRF Connect SDK modules
west update
```

Expand Down