When to use Site SSH vs local filesystem?

I understand that to run WP CLI for example, I use site ssh.

What about if I am using npm install (for a theme) or gulp etc? Can I run these directly in ~/Local\ Sites/mysite ? Or should these by via Site SSH?

Hi Richard,

I recommend running npm, gulp, and all of that outside of the site container. It’s best to use the site container when you’re using the site’s PHP binaries or MySQL connection.

It’s also handy to use the site’s SSH if you want to run Linux commands that simply aren’t readily available on macOS.

Thanks Clay, that makes sense.

@clay what do you mean by site container? outside of the root folder containing app, conf, logs ?