Using the CLI - dbdev

The dbdev CLI can be used for:

Installation

Installation is available through a native package, binary download or building from source.

Native Package

Install the CLI with Homebrew:

brew install supabase/tap/dbdev

Install the CLI with Homebrew:

brew install supabase/tap/dbdev

Linux packages

Debian Linux packages are provided in Releases. To install, download the .deb file and run the following:

Install the CLI with Scoop.

scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install dbdev

Upgrading

Use dbdev --version to check if you are on the latest version of the CLI.

Native Package

Install the CLI with Homebrew:

Linux packages

Debian Linux packages are provided in Releases. To upgrade, download the .deb file and run the following:

Update the CLI with Scoop.

Binary Download

Binaries for dbdev CLI are available for Linux, Windows and macOS platforms. Visit the dbdev releases page to download a binary for your OS. The downloaded binary should be placed in a folder which is in your PATH.

Build From Source

Alternatively, you can build the binary from source. You will need to have Rust installed on your system. To build from source:

  1. Clone the repo: git clone https://github.com/supabase/dbdev.git.
  2. Change directory to dbdev: cd dbdev.
  3. Build: cargo install --release.
  4. Copy the dbdev binary in target/release to a folder in your PATH.

If you have cargo-install, you can perform all the above steps with a single command: cargo install --git https://github.com/supabase/dbdev.git dbdev.

Now you're ready to publish your first package.