Skip to content

Getting Started with Ahoy

Terminal window
brew install ahoy

Verify it’s working:

Terminal window
ahoy --version

The quickest way to get going is to initialise a project with our curated examples file. It includes 30+ ready-to-use commands for common development workflows.

Terminal window
cd my-project
ahoy config init

This creates an .ahoy.yml in the current directory. Run ahoy on its own to see what’s available:

Terminal window
ahoy

Create an .ahoy.yml file in your project root:

ahoyapi: v2
commands:
hello:
usage: Say hello to someone
cmd: echo "Hello, $1!"
start:
usage: Start the dev environment
cmd: docker-compose up -d
logs:
usage: Follow container logs
cmd: docker-compose logs -f $@

Run your commands from anywhere in the project tree:

Terminal window
ahoy hello World # Hello, World!
ahoy start
ahoy logs web
ahoy # Shows all commands and their usage text