Nextcloud and occ command

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.

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

1 Like

More info Nextcloud · syncloud/platform Wiki · GitHub

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