DoublewordDoubleword

Installation

curl -fsSL https://raw.githubusercontent.com/doublewordai/dw/main/install.sh | sh

This downloads the latest release binary for your platform and installs it to ~/.local/bin/. The script detects your OS (Linux, macOS) and architecture (x86_64, arm64) automatically.

pip

pip install --user dw-cli

If pip warns that the script directory is not on PATH, add it:

# macOS
export PATH="$HOME/Library/Python/3.12/bin:$PATH"

# Linux
export PATH="$HOME/.local/bin:$PATH"

Add the appropriate line to your ~/.zshrc or ~/.bashrc to make it permanent.

From Source

git clone https://github.com/doublewordai/dw.git
cd dw
cargo build --release
cp target/release/dw ~/.local/bin/

Requires Rust 2024 edition (1.85+).

Verify

dw --version

Shell Completions

Generate shell completions for your shell:

# Bash
dw completions bash > ~/.local/share/bash-completion/completions/dw

# Zsh
dw completions zsh > ~/.zfunc/_dw

# Fish
dw completions fish > ~/.config/fish/completions/dw.fish

Updating

dw update

This downloads the latest release from GitHub, verifies the checksum, and replaces the binary in place.