Skip to content

Welcome to Ahoy

Give each project its own command-line tool, written in a YAML file.

Ahoy turns the commands you run on a project into short, named commands that everyone on the team can use. You list them in an .ahoy.yml file, and Ahoy runs them from anywhere in the project, with help text and tab completion included.

So instead of typing this:

Terminal window
docker-compose exec --user=82 web drush cache:rebuild --uri=https://example.com

you type this:

Terminal window
ahoy cr

Ahoy is a single binary. It works with Docker, SSH, local scripts, or anything else you can run from a shell.

Just YAML

Write a command once and it works the same way for everyone on the team.

Self-documenting

Run ahoy to list every command with its description.

Runs from any directory

Ahoy finds your .ahoy.yml and always runs commands from the directory it’s in.

Good with Docker

Long Docker and docker-compose commands become short names that are easy to remember.

Terminal window
# Install (macOS)
brew install ahoy
# Add an .ahoy.yml full of example commands
cd my-project
ahoy config init
# See what's available
ahoy

The examples file has around 30 commands for Docker, testing, databases and Drupal. Keep the ones you want and delete the rest.

Get started

Writing commands

Arguments, aliases, multi-line scripts and wrapping other tools.

Writing commands

Importing & overriding

Split commands across several files and share them between projects.

Importing & overriding

YAML schema

Every field you can use in .ahoy.yml.

YAML schema