cargo-adk-0.8.2 is not a library.
Visit the last successful build:
cargo-adk-0.9.1
cargo-adk
Scaffolding and deployment CLI for ADK-Rust — generate agent projects from templates and deploy them to ADK Platform.
Install
Commands
cargo adk new — Scaffold a new agent
# Create a basic Gemini agent
# Create with a specific template
# Use a different provider
# List available templates
cargo adk deploy — Deploy to ADK Platform
# Deploy to local platform (default)
# Deploy to a specific environment and server
# Use a specific auth token
# Skip build (use existing binary)
# Validate without pushing (CI-friendly)
Options
| Flag | Default | Description |
|---|---|---|
--environment |
production |
Target deployment environment |
--token |
ADK_DEPLOY_TOKEN env |
Auth token for the platform server |
--server |
http://127.0.0.1:8090 |
Platform server URL |
--skip-build |
false |
Skip cargo build --release |
--dry-run |
false |
Validate everything without pushing |
Authentication
The deploy command authenticates in this order:
--tokenflag (highest priority)ADK_DEPLOY_TOKENenvironment variable- Cached credentials from
~/.config/adk-deploy/config.json - Ephemeral login (requires
ADK_DEPLOY_EMAILenv var)
Secret Upload
If your adk-deploy.toml declares secrets and a .env file exists, the CLI automatically uploads matching secrets before pushing:
# adk-deploy.toml
[[]]
= "google-api-key"
= true
# .env
GOOGLE_API_KEY=your-actual-key
The convention maps UPPER_SNAKE_CASE env var names to lower-kebab-case secret keys:
GOOGLE_API_KEY→google-api-keyOPENAI_API_KEY→openai-api-keyDATABASE_URL→database-url
Deploy Flow
- Load and validate
adk-deploy.toml - Authenticate with the platform
- Upload secrets from
.env(if present) - Build the release binary
- Create a
.tar.gzbundle (manifest + binary) - Compute SHA-256 checksum
- Push to the platform server
Templates
| Template | What you get |
|---|---|
basic |
Gemini agent with interactive console (default) |
tools |
Agent with #[tool] macro custom tools |
rag |
RAG pipeline with Gemini embeddings + in-memory vector store |
api |
REST server with health check, ready for deployment |
openai |
OpenAI GPT-5-mini agent with console |
Each template generates:
Cargo.tomlwith the right dependencies and feature flagssrc/main.rsthat compiles and runs immediately.env.examplewith the required API key variables.gitignore
Generated Project
my-agent/
├── Cargo.toml
├── src/
│ └── main.rs
├── .env.example
└── .gitignore
Part of ADK-Rust
This tool is part of the ADK-Rust framework for building AI agents in Rust.
License
Apache-2.0