statamic / cli

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

zsh: command not found: statamic #26

Closed DrTrills closed 3 years ago

DrTrills commented 3 years ago

For some reason unable to install and get it working on my Mac.

laravel cd
➜  ~ composer global require statamic/cli

Changed current directory to /Users/DrTrills/.composer
Using version ^2.0 for statamic/cli
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
➜  laravel statamic new my-site

zsh: command not found: statamic
DrTrills commented 3 years ago

Solution from the Discord chat

add this to your .zshrc export PATH="$HOME/.composer/vendor/bin:$PATH"

then reload the terminal (zsh) exec zsh -l

or if bash

exec bash -l