# What is executed first, the dependencies or the deploy commands?

**URL:** <https://community.okteto.com/t/what-is-executed-first-the-dependencies-or-the-deploy-commands/680>\
**Category:** How Do I?\
**Created:** [March 2, 2023, 2:28am UTC](https://community.okteto.com/t/what-is-executed-first-the-dependencies-or-the-deploy-commands/680 "2023-03-02T02:28:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [March 2, 2023, 2:28am UTC](https://community.okteto.com/t/what-is-executed-first-the-dependencies-or-the-deploy-commands/680/1 "2023-03-02T02:28:07Z")

</div>

Are the `dependencies` in my `okteto.yml` file executed before or after the `deploy` command? What about in the case of the `destroy` commands?

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [March 2, 2023, 8:30am UTC](https://community.okteto.com/t/what-is-executed-first-the-dependencies-or-the-deploy-commands/680/2 "2023-03-02T08:30:27Z")

</div>

Hi @ramiro !

In both the `okteto deploy` and `okteto destroy` commands, `dependencies` are executed before the commands in the deploy/destroy sections.
