Skip to content

Commit d790eb1

Browse files
committed
doc: add workspace initialization into existing NCS workspace
Provide command line instructions on how to add add-on into existing nRF Connect SDK workspace. Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
1 parent e66bc7a commit d790eb1

1 file changed

Lines changed: 43 additions & 4 deletions

File tree

docs/setup.rst

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,52 @@ Follow the `Installing the nRF Connect SDK`_ instructions, with the following ex
4040

4141
.. group-tab:: command line
4242

43-
In the **Get the nRF Connect SDK code** part of the install instructions:
43+
Two alternative approaches for initializing the workspace:
44+
45+
a. **Initialize workspace from scratch**
46+
47+
In the **Get the nRF Connect SDK code** part of the install instructions:
48+
49+
In Step 4, use the following command to initialize west with |addon| v\ |addon_version|, which also initializes |NCS| v\ |ncs_version|:
50+
51+
1. Initialize ncs for the add-on
52+
53+
.. code-block:: console
54+
55+
west init -m "http://github.com/nrfconnect/ncs-zigbee" --mr v1.2.1
56+
57+
#. Update nRF Connect SDK modules
58+
59+
.. code-block:: console
60+
61+
west update
62+
63+
#. **Add add-on into existing nRF Connect SDK workspace**
64+
65+
Assume you have an existing nRF Connect SDK workspace in the ``ncs`` folder. Run the following commands:
66+
67+
1. Navigate to the workspace folder
68+
69+
.. code-block:: console
70+
71+
cd ncs
72+
73+
#. Clone add-on repository
74+
75+
.. code-block:: console
76+
77+
git clone https://github.com/nrfconnect/ncs-zigbee
78+
79+
#. Set manifest path to the add-on directory
80+
81+
.. code-block:: console
4482
45-
In Step 4, use the following command to initialize west with |addon| v\ |addon_version|, which also initializes |NCS| v\ |ncs_version|:
83+
west config manifest.path ncs-zigbee
4684
47-
.. code-block:: console
85+
#. Update nRF Connect SDK modules
4886

49-
west init -m "http://github.com/nrfconnect/ncs-zigbee" --mr v1.2.1
87+
.. code-block:: console
5088
89+
west update
5190
5291
To create an application, use :ref:`zigbee_template_sample` sample as a starting point.

0 commit comments

Comments
 (0)