# How do I add C8Y CLI to an Angular Project?

**URL:** <https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [August 10, 2023, 2:14pm UTC](https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317 "2023-08-10T14:14:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luclib](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@luclib](https://community.cumulocity.com/u/luclib)\
**Post date:** [August 10, 2023, 2:14pm UTC](https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317/1 "2023-08-10T14:14:31Z")

</div>

I want to build an Angular application with Angular’s own CLI and then add the latest version of the Cumulocity CLI via the `ng add @c8y/cli` command.

I have tried downgrading my NodeJs version from 16 to 14 to use the latest version of c8y/cli 1016.0.324 , but when I do so I get an error stating that `Angular CLI requires a minimum of v16.13`

Unfortunately, the [official guide](https://cumulocity.com/guides/10.4.6/web/angular/#angularcli) has been outdated for while and the [latest related topic](https://community.cumulocity.com/t/c8y-cli-no-longer-works-with-angular/2162) on the forum that I could find only dates back to October 2022.

What versions of NodeJs, NPM, and Angular do I need in order to run the latest C8Y CLI in my application?

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [August 10, 2023, 2:48pm UTC](https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317/2 "2023-08-10T14:48:21Z")

</div>

Hi Lucas,

the combination of:

- node `14.21.3`
- angular `14`
- @c8y/cli `1016.0.324`

should work and I tested it on my end:

```auto
npm install -g @angular/cli@v14-lts
ng new my-first-iot-project
cd my-first-iot-project
ng add @c8y/cli@1016.0.324

```

Newer documentation regarding the WebSDK (at least compared to the linked one in 1004.6.0) can be found here: [Development tools - Cumulocity IoT Guides](https://cumulocity.com/guides/web/development-tools/#angular-cli)

Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![luclib](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@luclib](https://community.cumulocity.com/u/luclib)\
**Post date:** [August 10, 2023, 5:36pm UTC](https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317/3 "2023-08-10T17:36:13Z")

</div>

Thanks! It worked.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [February 6, 2024, 5:36pm UTC](https://community.cumulocity.com/t/how-do-i-add-c8y-cli-to-an-angular-project/7317/4 "2024-02-06T17:36:28Z")

</div>

Closed on February 6, 2024, 5:36pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
