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.
Before starting, verify you have:
- Python 3.11+ installed (
python --version) - Cloud credentials configured in your environment, credentials file, or ambient role
- Docker (optional; only needed if building container images)
1. Install devinfra CLI via uv or pip
Install devinfra using uv (recommended for ultra-fast, isolated tool execution) or standard pip:
# 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
# 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
# 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]"
DevInfra Desktop Application (v0.1.3 Stable)
Standalone GUI client with embedded FastAPI runtime, interactive topology visualizer, and operations console.
2. Run automated diagnostics
Verify local SQLite state storage and check active cloud caller identity:
# 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:
devinfra init
Example platform.yaml generated:
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:
# 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
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:
devinfra destroy