
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@devopsagent/cli
Advanced tools
CLI for DevOps Agent - AI-powered infrastructure management from your terminal
A terminal-first interface to DevOps Agent — run infrastructure commands directly, pipe output to scripts, and skip the browser entirely.
npm install -g @devopsagent/cli
Requires Node.js 18+.
Log in to devopsagent.io, go to Settings → API Keys → Create Key.
devopsagent login
You'll be prompted for your API key. It's stored at ~/.devopsagent/config.json.
devopsagent whoami
Talk to the agent in natural language — same as the web UI:
# One-shot question
devopsagent ask "why is my pod in CrashLoopBackOff?"
# Pipe a question
echo "list ec2 instances in us-east-1" | devopsagent ask
# Interactive session
devopsagent chat
# EC2
devopsagent aws ec2 list
devopsagent aws ec2 list --region eu-west-1
devopsagent aws ec2 list --output json | jq '.[] | select(.state=="running")'
devopsagent aws ec2 describe i-0abc123def456
# S3
devopsagent aws s3 list
# RDS
devopsagent aws rds list --region us-east-1
# EKS
devopsagent aws eks list --region us-west-2
# Lambda
devopsagent aws lambda list
Flags:
| Flag | Description |
|---|---|
-r, --region <region> | AWS region (default: your configured region) |
-o, --output <format> | table (default) or json |
# Pods
devopsagent k8s pods
devopsagent k8s pods --namespace production
devopsagent k8s pods --context my-cluster --output json
# Deployments
devopsagent k8s deployments -n kube-system
# Services
devopsagent k8s services --namespace staging
# Nodes
devopsagent k8s nodes
# Logs
devopsagent k8s logs my-pod-abc123
devopsagent k8s logs my-pod-abc123 --namespace production --lines 200
devopsagent k8s logs my-pod-abc123 --container sidecar
Flags:
| Flag | Description |
|---|---|
-n, --namespace <ns> | Kubernetes namespace (default: default) |
-c, --context <ctx> | Kubeconfig context |
-o, --output <format> | table (default) or json |
devopsagent terraform plan --dir ./infra
devopsagent terraform apply --dir ./infra --auto-approve
devopsagent terraform output --dir ./infra
devopsagent terraform output --json
devopsagent terraform workspaces --dir ./infra
devopsagent terraform validate --dir ./infra
# Alias: tf
devopsagent tf plan --dir ./infra
Flags:
| Flag | Description |
|---|---|
-d, --dir <path> | Working directory (default: .) |
--auto-approve | Skip interactive approval (apply only) |
--var-file <file> | Terraform var file |
--json | JSON output (output command only) |
# Containers
devopsagent docker ps
devopsagent docker ps --all
# Images
devopsagent docker images
devopsagent docker images --output json
# Logs
devopsagent docker logs my-container
devopsagent docker logs my-container --lines 500
# Stats
devopsagent docker stats
All list commands support --output table (default) and --output json.
JSON output is designed for piping:
# Find all stopped EC2 instances
devopsagent aws ec2 list --output json | jq '.[] | select(.state=="stopped") | .instance_id'
# Count running pods per namespace
devopsagent k8s pods -n production --output json | jq 'length'
# Get a specific Terraform output value
devopsagent terraform output --json | jq '.database_url.value'
Config is stored at ~/.devopsagent/config.json:
{
"api_key": "doa_live_...",
"server_url": "https://devopsagent.io"
}
To point the CLI at a self-hosted instance:
devopsagent config set server_url http://localhost:5000
| Command group | Required tier |
|---|---|
ask / chat | Free and above |
aws, k8s, terraform, docker | Professional ($99/mo) or Business ($299/mo) |
Direct tool commands (aws, k8s, etc.) call the DevOps Agent API and use your stored cloud credentials — no local AWS CLI or kubeconfig needed on the machine running the CLI.
"Not logged in" — run devopsagent login
"api_access_restricted" — direct tool commands require Professional or Business tier. Use devopsagent ask for AI-mediated queries on lower tiers.
"Invalid API key" — regenerate your key at Settings → API Keys
Wrong server — check ~/.devopsagent/config.json for server_url
FAQs
CLI for DevOps Agent - AI-powered infrastructure management from your terminal
We found that @devopsagent/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.