# DevKinsta CLI integration

**URL:** https://community.kinsta.com/t/devkinsta-cli-integration/1494
**Category:** Application Support
**Created:** [May 24, 2022, 1:51pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494 "2022-05-24T13:51:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rinogo](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rinogo](https://community.kinsta.com/u/rinogo)
#### Post date: [May 24, 2022, 1:51pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494/1 "2022-05-24T13:51:08Z")

</div>

Hello!

My development flow requires that I make a certain change before pushing to staging. (I need to update a “cachebuster” parameter)

There are two ways that I could do this:

1. If DevKinsta has a CLI integration, I can simply write a script that performs my pre-push actions and then triggers the push to staging with the CLI command.
2. If DevKinsta has some kind of a “hook” architecture, I can use the DevKinsta Electron (GUI) app to initiate the push to staging. The “hook” would call my script which would perform pre-push actions before pushing to staging.

Are either of these abilities available? Or, is there another approach to performing pre-push tasks?  
Thanks!

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [May 24, 2022, 4:50pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494/2 "2022-05-24T16:50:06Z")

</div>

Hi @rinogo, welcome to DevKinsta!

We unfortunately do not have a dedicated CLI, however, you can access the CLI through Docker to perform your actions. There’s just currently no way to trigger the push to staging from the CLI.

I definitely see the need for a CLI/hooks so please feel free to submit this as a [feature request](https://community.kinsta.com/c/feature-requests/) for our devs! They are actively working to make DevKinsta as developer-friendly as possible and I think this would be a great addition.

---

<div class="post-metadata">

### Author: ![rinogo](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rinogo](https://community.kinsta.com/u/rinogo)
#### Post date: [May 24, 2022, 5:01pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494/3 "2022-05-24T17:01:55Z")

</div>

Hi, @Kevin! Thanks for your prompt response!

You mentioned accessing via Docker - is there a way to push to staging once connected to a Docker CLI session?

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [May 24, 2022, 5:06pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494/4 "2022-05-24T17:06:21Z")

</div>

No unfortunately, not. The push can currently only be triggered by the app UI. The Push process is essentially a mysqldump followed by an rsync to the Staging site. You could technically write a script that does this but it wouldn’t trigger the backup/maintenance mode that an “official” push does.

---

<div class="post-metadata">

### Author: ![rinogo](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rinogo](https://community.kinsta.com/u/rinogo)
#### Post date: [May 24, 2022, 5:36pm UTC](https://community.kinsta.com/t/devkinsta-cli-integration/1494/5 "2022-05-24T17:36:06Z")

</div>

Bummer. Thanks for your excellent and thorough response, though! 🙌
