# Is it possible to deploy app using dt-app from a Jenkins job

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-deploy-app-using-dt-app-from-a-jenkins-job/40661>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, custom-app\
**Created:** [July 12, 2023, 2:33pm UTC](https://community.dynatrace.com/t/is-it-possible-to-deploy-app-using-dt-app-from-a-jenkins-job/40661 "2023-07-12T14:33:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott-smith](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@scott-smith](https://community.dynatrace.com/u/scott-smith)\
**Post date:** [July 12, 2023, 2:33pm UTC](https://community.dynatrace.com/t/is-it-possible-to-deploy-app-using-dt-app-from-a-jenkins-job/40661/1 "2023-07-12T14:33:49Z")

</div>

We are looking into developing an application using the app toolkit.&nbsp; However, we want to be able to deploy from a CI/CD Jenkins pipeline.&nbsp; I believe I can just run “npm run deploy”&nbsp;from the Jenkins job which has node and npm installed.&nbsp; However, are there authentication/authorization that I will have to account for since this will not be running in the context of a user?&nbsp; Is there some documentation on doing this?

---

<div class="post-metadata">

**Author:** ![imsingh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imsingh/32/7858_2.png) [@imsingh](https://community.dynatrace.com/u/imsingh)\
**Post date:** [July 14, 2023, 8:24am UTC](https://community.dynatrace.com/t/is-it-possible-to-deploy-app-using-dt-app-from-a-jenkins-job/40661/2 "2023-07-14T08:24:40Z")

</div>

Yes, you can run the **npm run deploy** in the Jenkins pipeline to deploy your application.

To authenticate, you can use oauth Client and configure them using **DT\_APP\_OAUTH\_CLIENT\_ID** and **DT\_APP\_OAUTH\_CLIENT\_SECRET** environment&nbsp; variables.

Following are the docs that will help you:

- [How to create OAuth client](https://developer.dynatrace.com/develop/access-platform-apis-from-outside/#create-an-oauth-client)
- [Dynatrace App Toolkit configuration](https://developer.dynatrace.com/reference/app-toolkit/configuration/#environment-variables)

Let me know if it works for you.
