Need help using Homebrew 'Services' command
services was a "hidden" command in Homebrew. There were a bunch of them that weren't present in the brew help output. It has, as undocumented commands are wont to do, gone away in the official repository and has become an "external command" maintained in another add-on repository (in this case a gist as it is so simple).

You can install it in your Homebrew setup by running:

&gt; curl -o /usr/local/bin/brew-services.rb https://gist.githubusercontent.com/lwe/766293/raw/75a7907004bbff0eb3b072d1d951be2cfe7e5020/brew-services.rb
&gt; chmod +x /usr/local/bin/brew-services.rb
&gt; brew services help
usage: [sudo] brew services [--help] &lt;command&gt; [&lt;formula&gt;]

Small wrapper around `launchctl` for supported formulas, commands available:
   cleanup Get rid of stale services and unused plists
   list    List all services managed by `brew services`
   restart Gracefully restart selected service
   start   Start selected service
   stop    Stop selected service

Options, sudo and paths:

  sudo   When run as root, operates on /Library/LaunchDaemons (run at boot!)
  Run at boot:  /Library/LaunchDaemons
  Run at login: /Users/ian/Library/LaunchAgents


Alternatively you can skip services and just make a plist file for it. For example, create ~/Library/LaunchAgents/org.mongodb.mongod.plist with:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
  &lt;key&gt;Label&lt;/key&gt;
  &lt;string&gt;org.mongodb.mongod&lt;/string&gt;
  &lt;key&gt;ProgramArguments&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;/usr/local/Cellar/mongodb/2.6.4/bin/mongod&lt;/string&gt;
    &lt;string&gt;run&lt;/string&gt;
    &lt;string&gt;--config&lt;/string&gt;
    &lt;string&gt;/usr/local/Cellar/mongodb/2.6.4/mongod.conf&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;RunAtLoad&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;KeepAlive&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;UserName&lt;/key&gt;
  &lt;string&gt;{your_username}&lt;/string&gt;
  &lt;key&gt;WorkingDirectory&lt;/key&gt;
  &lt;string&gt;/usr/local&lt;/string&gt;
  &lt;key&gt;StandardErrorPath&lt;/key&gt;
  &lt;string&gt;/usr/local/var/log/mongodb/output.log&lt;/string&gt;
  &lt;key&gt;StandardOutPath&lt;/key&gt;
  &lt;string&gt;/usr/local/var/log/mongodb/output.log&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;


Just change {your_username} to your actual username then run:

launchctl load ~/Library/LaunchAgents/org.mongodb.mongod.plist 


to register the plist with launchd. You can now start and stop MongoDB with:

launchctl start org.mongodb.mongod
launchctl stop org.mongodb.mongod


Note, the above plist solution was taken from this excellent Stack Overflow answer.