@omegaengine/cli
v0.1.1
Published
OmegaEngine CLI for governance management
Maintainers
Readme
✨ Features
- 🚀 Deploy Policies — Push policies from terminal
- 📡 Stream Logs — Real-time decision streaming
- 🔑 Manage API Keys — Create and rotate keys
- 🔧 Configuration Sync — Sync org settings
- 🧪 Local Testing — Test policies before deploy
- 📊 Analytics — View usage and metrics
📦 Installation
npm install -g @omegaengine/cliRequires Node.js 18+. Then run omega --help.
🚀 Quick Start
# Authenticate
omega login
# Deploy a policy
omega policy push ./policies/my-policy.yaml
# Stream live decisions
omega logs --tail
# Check status
omega status📋 Commands
Authentication
# Login with browser
omega login
# Login with API key
omega login --api-key sk_live_xxx
# Check authentication
omega whoami
# Logout
omega logoutPolicy Management
# Push policy to OmegaEngine
omega policy push ./policy.yaml
# Push multiple policies
omega policy push ./policies/
# Push to specific environment
omega policy push ./policy.yaml --env staging
# List policies
omega policy list
# Get policy details
omega policy get pol_abc123
# Delete policy
omega policy delete pol_abc123
# Validate locally
omega policy validate ./policy.yamlLogs & Streaming
# Stream live logs
omega logs --tail
# Filter by policy
omega logs --policy pol_abc123
# Filter by decision
omega logs --decision DENY
# Export logs
omega logs --since 24h --format json > logs.jsonAPI Keys
# List API keys
omega keys list
# Create new key
omega keys create --name "Production Server"
# Rotate key
omega keys rotate sk_live_xxx
# Revoke key
omega keys revoke sk_live_xxxAnalytics
# View usage summary
omega analytics
# Decision breakdown
omega analytics decisions --since 7d
# Export metrics
omega analytics export --format csvConfiguration
# View config
omega config show
# Set default environment
omega config set environment production
# Set organization
omega config set org org_abc123⚙️ Configuration File
# ~/.omega/config.yaml
apiKey: sk_live_xxx
baseUrl: https://omegaengine.ai
organization: org_abc123
environment: production
output: table # table, json, yaml🔧 Environment Variables
| Variable | Description |
|----------|-------------|
| OMEGA_API_KEY | API key for authentication |
| OMEGA_BASE_URL | API base URL |
| OMEGA_ORG | Default organization ID |
| OMEGA_ENV | Default environment |
📊 Output Formats
# Table format (default)
omega policy list
# JSON format
omega policy list --format json
# YAML format
omega policy list --format yaml
# Quiet (IDs only)
omega policy list --quiet🔄 CI/CD Integration
GitHub Actions
- name: Deploy Policies
run: |
omega login --api-key ${{ secrets.OMEGA_API_KEY }}
omega policy push ./policies/ --env productionGitLab CI
deploy:
script:
- omega login --api-key $OMEGA_API_KEY
- omega policy push ./policies/ --env production📄 License
Licensed under Apache-2.0.
