Installation
Welcome to the documentation for datumctl, the command-line interface for interacting with Datum Cloud.
Let’s start installing the binary itself, but if you want to get deeper, make a contribution or you are a curious developer nativate to the documentation we wrote specifically for you.
Homebrew (macOS)
Section titled “Homebrew (macOS)”If you are using macOS and have Homebrew installed, you can install datumctl via our official tap:
# Tap the Datum Cloud formula repository (only needs to be done once)brew tap datum-cloud/homebrew-tap
# Install datumctlbrew install datumctl
# Upgrade datumctlbrew upgrade datumctlnix (Linux and macOS)
Section titled “nix (Linux and macOS)”datumctl ships with a flake.nix so you don’t have to install anything:
# Pick latest from gitnix run github:datum-cloud/datumctl
# Specify versionnix run github:datum-cloud/datumctl/b044455d877b800812e4fd78e42429c1617c011b
# Run from local git clonenix run
# Start shell with all dependencies availablenix develop --command zsh
# Build locallynix build
# ...or for specific platformnix build .#packages.x86_64-linux.defaultnix build .#packages.aarch64-linux.defaultYou can, however, incorporate it into your home-manager build or other flake so that it’s always available in your profile.
Pre-built binaries (recommended)
Section titled “Pre-built binaries (recommended)”The easiest way to install datumctl is by downloading the pre-built binary for your operating system and architecture from the GitHub Releases page.
Manual Download:
- Go to the Latest Release.
- Find the appropriate archive (
.tar.gzor.zip) for your system (e.g.,datumctl_Linux_x86_64.tar.gz,datumctl_Windows_amd64.zip,datumctl_Darwin_arm64.tar.gz). - Download and extract the archive.
- Move the
datumctl(ordatumctl.exe) binary to a directory in your system’sPATH(e.g.,/usr/local/binon Linux/macOS, or a custom directory you’ve added to the PATH on Windows). - Ensure the binary is executable (
chmod +x /path/to/datumctlon Linux/macOS).
Using curl (Example for Linux/macOS):
This example shows how to download and install a specific version. You must:
- Replace
<version>with the desired release tag (e.g.,v0.1.0). - Replace
<archive_filename>with the exact filename for your OS and architecture found on the releases page (e.g.,datumctl_Darwin_arm64.tar.gz).
VERSION="<version>"ARCHIVE="<archive_filename>"curl -sSL "https://github.com/datum-cloud/datumctl/releases/download/${VERSION}/${ARCHIVE}" | tar xzsudo mv datumctl /usr/local/bin/[!NOTE] The
sudo mvcommand might require administrator privileges. Adjust the destination path/usr/local/bin/if needed for your system.
Building from source
Section titled “Building from source”If you prefer, you can build datumctl from source:
- Prerequisites:
- Go (version 1.21 or later)
- Git
- Clone the repository:git clone https://github.com/datum-cloud/datumctl.gitcd datumctl
- Build the binary:go build -o datumctl .
- Install: Move the resulting
datumctlbinary to a directory in yourPATHas described in the pre-built binaries section.
Verification
Section titled “Verification”To verify the installation, run:
datumctl versionThis should output the installed version of datumctl.