Skip to content

Getting Started

Prerequisites

The fastest way to set up your environment is with the built-in health check:

bash
devx doctor            # audit tools, credentials, and feature readiness
devx doctor install    # install any missing tools via your package manager
devx doctor auth       # walk through authenticating required services

devx doctor checks for all 9 CLI tools and 7 credentials that devx uses, and tells you exactly what's ready and what needs attention.

Manual Setup

If you prefer to install manually:

ToolInstallPurposeRequired?
Podmanbrew install podmanVM and container runtimeYes
cloudflaredbrew install cloudflare/cloudflare/cloudflaredCloudflare tunnel daemonYes
butanebrew install butaneIgnition config compilerYes
ghbrew install ghGitHub CLI (for devx sites)Yes
dockerbrew install dockerAlternative VM backendOptional
orbstackbrew install orbstackAlternative VM backendOptional
1Password CLIbrew install 1password-cliVault secret syncOptional
Bitwarden CLIbrew install bitwarden-cliVault secret syncOptional
gcloudbrew install google-cloud-sdkGCP Secret ManagerOptional

Installation

bash
# macOS (Apple Silicon)
curl -sL https://github.com/VitruvianSoftware/devx/releases/latest/download/devx_darwin_arm64.tar.gz | tar xz
sudo mv devx /usr/local/bin/

# macOS (Intel)
curl -sL https://github.com/VitruvianSoftware/devx/releases/latest/download/devx_darwin_amd64.tar.gz | tar xz
sudo mv devx /usr/local/bin/

# Linux (amd64)
curl -sL https://github.com/VitruvianSoftware/devx/releases/latest/download/devx_linux_amd64.tar.gz | tar xz
sudo mv devx /usr/local/bin/

From Source

bash
go install github.com/VitruvianSoftware/devx@latest

Quick Start

0. Check your environment (one-time)

bash
devx doctor

This audits all prerequisites — tools, credentials, and authentication sessions — and tells you exactly what's ready and what needs fixing. If anything is missing, follow the prompts or run devx doctor install.

1. Provision your dev environment

bash
devx vm init

This creates a Fedora CoreOS VM via Podman Machine with Cloudflare Tunnel and Tailscale pre-configured. The process takes about 2-3 minutes on the first run.

2. Verify everything is running

bash
devx vm status

You should see all three components — VM, Cloudflare Tunnel, and Tailscale — reporting as healthy.

3. Expose a port

bash
# Start a web server inside the VM
devx exec podman run -d -p 8080:80 docker.io/nginx

# Expose it to the internet
devx tunnel expose 8080 --name demo
# → https://demo.your-name.ipv1337.dev

4. Spin up a database

bash
devx db spawn postgres --name mydb
# → PostgreSQL running on localhost:5432

Configuration

devx uses a .env file in your project root for secrets:

bash
# .env
CF_API_TOKEN=your-cloudflare-api-token
CF_TUNNEL_TOKEN=your-tunnel-token
DEV_HOSTNAME=your-machine-name

TIP

Run devx doctor auth to set up your .env interactively — it will prompt for tokens and save them automatically.

Global flags available on all commands:

FlagDescription
--dry-runPreview destructive actions without executing
--jsonMachine-readable output for AI agents
-y, --non-interactiveSkip confirmation prompts
--env-filePath to secrets file (default: .env)

Released under the MIT License.