Following the installation guide on github.com/getkirby/cli
I fail at the first step. This is what is returned.
composer global require getkirby/cli
Changed current directory to /Users/andy/.composer
In RequireCommand.php line 143:
file_put_contents(./composer.json): Failed to open stream: Permission denied
I changed the permissions on the .composer directory to Read Write.
I created a .bash_profile file in the same directory and added the following, as per the guide.