Skip to content

Install

Rooster is a single binary called rooster. This page shows how to install it, check that it works, start it for the first time, upgrade it and remove it.

  • macOS on Apple silicon and Intel.
  • Linux on x86-64 (amd64) and arm64.

There is no Windows build. On Windows, run Rooster inside WSL2. Install WSL2, then follow the Linux steps inside it.

brew install roosterbuild/tap/rooster

Rooster is not in Homebrew’s main repository, so the command names Rooster’s own tap.

If brew says the cask definition is invalid, your Homebrew is out of date. Run brew update, then install again.

curl -fsSL https://roosterbuild.com/install.sh | sh

What the script does:

  • It downloads the release for your system and checks it against the release’s checksums.
  • If rooster is already on your PATH, it installs over that copy.
  • Otherwise it installs into /usr/local/bin when it can write there, and into ~/.local/bin when it can’t. It says which one it picked.
  • If that directory is not on your PATH, it tells you how to add it.

It never runs sudo itself. To install into /usr/local/bin as root, pipe it to sudo sh:

curl -fsSL https://roosterbuild.com/install.sh | sudo sh

The script reads two optional settings. Put them before sh, not before curl:

  • ROOSTER_VERSION: the version to install, for example v0.2.0. The default is the latest stable release.
  • ROOSTER_INSTALL_DIR: the directory to install into.
curl -fsSL https://roosterbuild.com/install.sh | ROOSTER_VERSION=v0.2.0 sh

Each release has a .deb and an .rpm package for amd64 and arm64. Download the one for your system from the releases page. The file names have no v before the version, for example rooster_0.2.0_linux_amd64.deb.

On Debian and Ubuntu:

sudo apt install ./rooster_<version>_linux_<arch>.deb

On Fedora, RHEL and similar:

sudo dnf install ./rooster_<version>_linux_<arch>.rpm

Use dnf, not plain rpm -i. The package is not signed, so rpm -i refuses it on rpm 6 and newer.

The packages install rooster into /usr/bin.

Print the version:

rooster version

It prints a line such as rooster v0.2.0.

You need a dbt project that already works with dbt run in your terminal. Point Rooster at its folder:

rooster serve ~/path/to/your/dbt-project

If you have no config file yet, Rooster writes ~/.config/rooster/rooster.yaml with your project in it. If you already have one, Rooster adds the project to that file. Then it starts. It prints this line:

wrote ~/.config/rooster/rooster.yaml with project my_project

The project name comes from name: in your project’s dbt_project.yml, not from the folder name.

Open http://127.0.0.1:8080 in your browser. That is the default address.

Rooster runs dbt with the project’s own profile and that profile’s default output, the same as dbt run with no flags.

dbt does not get all of your shell’s env vars, though. It gets a few basic ones, such as PATH and HOME, and the ones you list under the project’s env_inherit in the config file. If your profiles.yml reads a value with env_var(), list that name. The same goes for DBT_PROFILES_DIR if you use it. Add env_inherit under the project entry Rooster already wrote, then restart rooster serve:

projects:
- source_dir: /Users/you/path/to/your/dbt-project
name: my_project
env_inherit:
- DBT_PASSWORD

Next time, plain rooster serve is enough. The project is already in the config file.

If Rooster is already running, rooster serve <path> still adds the project. Then it exits without starting, and tells you to restart the running Rooster so that it reads the new project.

Use these steps on a server, or when you want to edit the config file before Rooster starts.

  1. Write the config file: rooster init. It prints the file and where it wrote it. By default that is ~/.config/rooster/rooster.yaml. If you already have a config file, skip this step: rooster init does not overwrite it without asking. To learn where Rooster looks for the file, see Config file.
  2. Edit rooster.yaml. Add your projects, and any targets beyond default. The comments in the file explain both. Add env_inherit to a project if its profiles.yml uses env_var(), as shown in the quick start.
  3. Start Rooster: rooster serve.

To add a project to the file without starting Rooster, run rooster init <path>. When there is no config file yet, it writes one first. It prints the same line as rooster serve <path>, for example wrote ~/.config/rooster/rooster.yaml with project my_project, and the name comes from dbt_project.yml in the same way. If the project is already in the file, nothing changes.

By default, Rooster listens only on 127.0.0.1, at http://127.0.0.1:8080. If you installed it on a remote server, open an SSH tunnel from your computer first, then open that address:

ssh -L 8080:127.0.0.1:8080 <your-server>

For what comes next, see the docs home.

Stop rooster serve before you upgrade, and start it again after. To stop it, press Ctrl-C where it runs, or run rooster stop from any shell. rooster stop waits until the daemon has exited.

  • Homebrew: run brew upgrade rooster.
  • Install script: run the script again. It replaces the binary it installed before. If you set ROOSTER_INSTALL_DIR when you installed, set it again. If your rooster came from Homebrew or a package, the script stops and tells you how to upgrade that one instead.
  • Linux packages: download the newer .deb or .rpm and install it with the same command as before.

While rooster serve runs, rooster version tells you when a newer release is out. For Homebrew and the install script, it also prints the command that upgrades Rooster. For a Linux package, it prints a link to the release. See the update check.

rooster serve checks for a new release when it starts, and then once a day. It reads one small file: https://roosterbuild.com/releases/latest.json. That address redirects to GitHub, where the release files live.

The request carries only a rooster/<version> User-Agent. It sends no ID and no data about your projects.

To turn the check off, add this line to your config file. The file Rooster writes, with rooster init or rooster serve <path>, already has it at the end, commented out.

check_for_updates: false

Or set the environment variable ROOSTER_CHECK_FOR_UPDATES=false where rooster serve runs. Either way, restart rooster serve for the change to apply. Rooster then never contacts the update server. When rooster serve starts, its log says whether the update check is on or off.

  • Homebrew: run brew uninstall rooster.
  • Install script: delete the binary. To find it, run command -v rooster. If it is in /usr/local/bin and you installed with sudo sh, delete it with sudo rm.
  • Linux packages: run sudo apt remove rooster or sudo dnf remove rooster.

Uninstalling removes only the binary. Your config file, your database and Rooster’s other data stay where they are. Delete them yourself if you no longer need them. By default they are here:

  • The config file: ~/.config/rooster/rooster.yaml.
  • The database and other data on macOS: ~/Library/Application Support/rooster/.
  • The database and other data on Linux: ~/.local/share/rooster/.

If you set XDG_CONFIG_HOME, the config file is under that directory instead. On Linux, XDG_DATA_HOME moves the data the same way. If your config file sets db or data_dir, the data is where those settings point.