Using the CLI
The dbdev
CLI can be used for:
- Installing TLEs from [database.dev] or your local machine.
- Updating TLEs from [database.dev] or your local machine.
- Publishing TLEs to database.dev.
Installation
Installation is available through a native package, binary download or building from source.
Native Package
Install the CLI with Homebrew:
1 |
|
Install the CLI with Homebrew:
1 |
|
Linux packages
Debian Linux packages are provided in Releases.
To install, download the .deb
file and run the following:
1 |
|
Install the CLI with Scoop.
1 2 |
|
Upgrading
Use dbdev --version
to check if you are on the latest version of the CLI.
Native Package
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:
- Clone the repo:
git clone https://github.com/supabase/dbdev.git
. - Change directory to
dbdev
:cd dbdev
. - Build:
cargo install --release
. - Copy the
dbdev
binary intarget/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.