Getting Started with devinfra

Install the CLI, verify your ambient cloud credentials, generate a declarative application manifest, and preview your execution DAG in under five minutes.

Prerequisites

Before starting, verify you have:

1. Install devinfra CLI via uv or pip

Install devinfra using uv (recommended for ultra-fast, isolated tool execution) or standard pip:

bash
# Option 1: Standalone CLI tool via uv (isolated environment, no activation needed)
uv tool install devinfra

# Option 2: Add devinfra to your uv project / pyproject.toml
uv add devinfra

# Option 3: In an existing activated virtual environment
uv pip install devinfra
bash
# Create and activate virtual environment
python -m venv .venv

# Windows PowerShell:
.venv\Scripts\Activate.ps1
# Linux / macOS:
source .venv/bin/activate

# Install devinfra CLI
pip install devinfra
bash
# Clone repository and install in editable mode
git clone https://github.com/Move2Move/cloud-monitoring.git
cd cloud-monitoring
python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\Activate.ps1
pip install -e ".[dev]"
# Or with uv: uv pip install -e ".[dev]"

2. Run automated diagnostics

Verify local SQLite state storage and check active cloud caller identity:

bash
# Verify CLI version and environment
devinfra version

# Inspect detected cloud credentials & identity
devinfra configure show

# Run permission & storage pre-flight checks
devinfra doctor

3. Initialize your project

Navigate to your project folder and run devinfra init. It inspects your project files (Node.js, Python, Go, Rust, Docker, or static HTML) and creates platform.yaml:

bash
devinfra init

Example platform.yaml generated:

yaml
project:
  name: my-app
  provider: cloud
  region: us-east-1
  environment: production

services:
  web:
    type: static
    source: ./dist
    deploy: object-storage
    cdn: true

4. Validate, plan, and deploy

Compute the topological DAG diff and deploy live to your cloud account:

bash
# Validate configuration schema
devinfra validate

# Preview execution plan diff
devinfra plan

# Deploy live infrastructure
devinfra deploy

# Check status and detect out-of-band drift
devinfra status --drift

# Open local dashboard on 127.0.0.1:8765
devinfra dashboard
Interactive Local Web Console

Running devinfra dashboard launches an integrated web console on http://127.0.0.1:8765. It displays your interactive Topology DAG, real-time Performance Telemetry, and Workload Cost Simulations with in-browser deployment controls. See the Local Web Console Guide →.

5. Clean teardown

When finished, tear down all tracked resources cleanly:

bash
devinfra destroy
← Back to Overview CLI Reference →