brew services install code example
Example: brew help service
$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)