# Api to run chef-client on node

**URL:** <https://discourse.chef.io/t/api-to-run-chef-client-on-node/12780>\
**Category:** Chef Infra (archive)\
**Created:** [March 16, 2018, 7:57am UTC](https://discourse.chef.io/t/api-to-run-chef-client-on-node/12780 "2018-03-16T07:57:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyanshu](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@priyanshu](https://discourse.chef.io/u/priyanshu)\
**Post date:** [March 16, 2018, 7:57am UTC](https://discourse.chef.io/t/api-to-run-chef-client-on-node/12780/1 "2018-03-16T07:57:34Z")

</div>

We have the case where through api we are creating data bag item and then role on chef-server using node.js api.  
now we need to run chef-client on the node being on node.js application.  
Is there any api to run chef-client on node by being on node.js application

---

<div class="post-metadata">

**Author:** ![cheeseplus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/cheeseplus/32/960_2.png) [@cheeseplus](https://discourse.chef.io/u/cheeseplus)\
**Post date:** [March 16, 2018, 5:14pm UTC](https://discourse.chef.io/t/api-to-run-chef-client-on-node/12780/2 "2018-03-16T17:14:52Z")

</div>

Closed on March 16, 2018, 5:14pm UTC

Duplicate post
