statamic / cli

Install and manage your Statamic projects from the command line.
71 stars 19 forks source link

Weird issues trying to get the CLI to work on Ubuntu #73

Open danielrosehill opened 4 months ago

danielrosehill commented 4 months ago

I'm sure something I'm doing wrong but thought I'd open this issue just in case it's not just me.

Added Statamic as a Bash pass, installed and reinstalled Compose, but still can't get the command to recognise on the terminal for some reason.

image

And .bashrc:

image

OS = Ubuntu LTS

jackmcdade commented 4 months ago

Did you reload your bash session?

danielrosehill commented 4 months ago

Did you reload your bash session?

I did! Also tried a restart. I'll see what else I can think of.

wesort commented 4 months ago

I just experienced this too, but fixed it.

As per the {s} troubleshooting tip, but with this instead (via SO) in the ~/.bashrc: export PATH=~/.config/composer/vendor/bin:$PATH

This has worked for me, but I have no idea if this is better for that troubleshooting page.

FWIW, this is my context: Digitalocean Droplet provisioned yesterday with Laravel Forge Ubuntu 22.04.4. I'll file this with Forge, but feels like this should be part of standard Forge provisioning?

danielrosehill commented 4 months ago

I just experienced this too, but fixed it.

As per the {s} troubleshooting tip, but with this instead (via SO) in the ~/.bashrc: export PATH=~/.config/composer/vendor/bin:$PATH

This has worked for me, but I have no idea if this is better for that troubleshooting page.

FWIW, this is my context: Digitalocean Droplet provisioned yesterday with Laravel Forge Ubuntu 22.04.4. I'll file this with Forge, but feels like this should be part of standard Forge provisioning?

Thanks, Ben. Worked for me too although the next command is failing. But hey ... the Statamic CLI can run on Linux at least in theory!