See https://help.apiary.io/tools/apiary-cli/ This requires to install a sandboxed version of Ruby (`brew install ruby` should do) as well, in order not to mess with Apple's preinstalled version.