# Nextcloud and occ command

**URL:** <https://syncloud.discourse.group/t/nextcloud-and-occ-command/71>\
**Category:** Existing Apps\
**Tags:** nextcloud\
**Created:** [2 June 2021 20:44 UTC](https://syncloud.discourse.group/t/nextcloud-and-occ-command/71 "2021-06-02T20:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karol](https://yyz2.discourse-cdn.com/free1/user_avatar/syncloud.discourse.group/karol/32/25_2.png) [@Karol](https://syncloud.discourse.group/u/Karol)\
**Post date:** [2 June 2021 20:44 UTC](https://syncloud.discourse.group/t/nextcloud-and-occ-command/71/1 "2021-06-02T20:44:09Z")

</div>

HI,  
How can I run the occ command, for example this:

php /snap/nextcloud/…/occ preview:generate-all -vvv

I can’t find the absolute path to php.

---

<div class="post-metadata">

**Author:** ![marxistvegan](https://yyz2.discourse-cdn.com/free1/user_avatar/syncloud.discourse.group/marxistvegan/32/22_2.png) [@marxistvegan](https://syncloud.discourse.group/u/marxistvegan)\
**Post date:** [4 June 2021 13:26 UTC](https://syncloud.discourse.group/t/nextcloud-and-occ-command/71/2 "2021-06-04T13:26:48Z")

</div>

Hey the way i have run it is `root@syncloud:~# snap run nextcloud.occ`

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [4 June 2021 17:51 UTC](https://syncloud.discourse.group/t/nextcloud-and-occ-command/71/3 "2021-06-04T17:51:33Z")

</div>

More info [Nextcloud · syncloud/platform Wiki · GitHub](https://github.com/syncloud/platform/wiki/Nextcloud)

---

<div class="post-metadata">

**Author:** ![Karol](https://yyz2.discourse-cdn.com/free1/user_avatar/syncloud.discourse.group/karol/32/25_2.png) [@Karol](https://syncloud.discourse.group/u/Karol)\
**Post date:** [17 June 2021 13:09 UTC](https://syncloud.discourse.group/t/nextcloud-and-occ-command/71/4 "2021-06-17T13:09:56Z")

</div>

Thanks for your help. It’s not easy to find the page you wrote about.
