Command-line interface for deploying containerized applications to AWS EKS through the AstraOps platform.
AstraCLI is the entry point for developers to deploy applications. It handles:
- AWS Authentication: Creates IAM execution roles with least-privilege policies
- Credential Management: Generates temporary credentials via AWS STS
- Backend Communication: Submits deployment requests to AstraBack API
- Real-time Feedback: Streams deployment logs via SSE
- Simulation Mode: Test deployments without provisioning resources
Available as standalone binaries for Linux, Windows, and macOS, or via NPM.
Via NPM:
npm install -g @astraops/astraops-cliOr download binaries from GitHub Releases.
Set environment variables:
export AWS_ACCESS_KEY_ID="your-key"
export AWS_SECRET_ACCESS_KEY="your-secret"
export AWS_ACCOUNT_ID="123456789012"
export AWS_REGION="us-west-2"
export ASTRAOPS_API_KEY="your-api-key"
export ASTRAOPS_API_URL="https://api.astraops.com"Create astraops.yaml:
applicationName: my-app
services:
- name: frontend
image: my-frontend:latest
port: 80
- name: backend
image: my-backend:latest
port: 5000Deploy:
astraops-cli deploy --monitoringDestroy:
astraops-cli destroySimulate (no actual resources):
SIMULATE=true astraops-cli deploysrc/
├── commands/
│ ├── deploy.ts # Deploy orchestration
│ ├── deploy.simulate.ts # Simulation mode
│ └── destroy.ts # Infrastructure teardown
├── services/
│ ├── backend.ts # AstraBack API client
│ └── iam.ts # AWS IAM management
└── policies/
└── executionRolePolicy.ts # Least-privilege policies
- CLI creates AWS IAM execution role with necessary permissions
- Creates IAM user that assumes the execution role
- Sends deployment request to AstraBack with temporary credentials
- Streams real-time logs from backend via SSE
- Displays deployment URLs and monitoring access
Clone and install:
git clone https://github.com/AstraOpsOrg/AstraCLI.git
cd AstraCLI
bun installRun locally:
bun run index.ts deployBuild binaries:
bun run build:all # All platforms
bun run build:local # Current platformApache License 2.0