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.
Supported systems
Section titled “Supported systems”- 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.
Homebrew (macOS and Linux)
Section titled “Homebrew (macOS and Linux)”brew install roosterbuild/tap/roosterRooster 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.
Install script (macOS and Linux)
Section titled “Install script (macOS and Linux)”curl -fsSL https://roosterbuild.com/install.sh | shWhat the script does:
- It downloads the release for your system and checks it against the release’s checksums.
- If
roosteris already on yourPATH, it installs over that copy. - Otherwise it installs into
/usr/local/binwhen it can write there, and into~/.local/binwhen 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 shThe script reads two optional settings. Put them before sh, not before curl:
ROOSTER_VERSION: the version to install, for examplev0.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 shLinux packages
Section titled “Linux packages”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>.debOn Fedora, RHEL and similar:
sudo dnf install ./rooster_<version>_linux_<arch>.rpmUse 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.
macOS and unsigned binaries
Section titled “macOS and unsigned binaries”Check the install
Section titled “Check the install”Print the version:
rooster versionIt prints a line such as rooster v0.2.0.
Quick start
Section titled “Quick start”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-projectIf 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_projectThe 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_PASSWORDNext 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.
Set up before the first start
Section titled “Set up before the first start”Use these steps on a server, or when you want to edit the config file before Rooster starts.
- 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 initdoes not overwrite it without asking. To learn where Rooster looks for the file, see Config file. - Edit
rooster.yaml. Add your projects, and any targets beyonddefault. The comments in the file explain both. Addenv_inheritto a project if itsprofiles.ymlusesenv_var(), as shown in the quick start. - 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.
Upgrade
Section titled “Upgrade”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_DIRwhen you installed, set it again. If yourroostercame from Homebrew or a package, the script stops and tells you how to upgrade that one instead. - Linux packages: download the newer
.debor.rpmand 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.
Update check
Section titled “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: falseOr 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.
Uninstall
Section titled “Uninstall”- Homebrew: run
brew uninstall rooster. - Install script: delete the binary. To find it, run
command -v rooster. If it is in/usr/local/binand you installed withsudo sh, delete it withsudo rm. - Linux packages: run
sudo apt remove roosterorsudo 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.