Generate dx.yaml configurations from natural language prompts using AI
Transform natural language descriptions into complete dx configurations using AI. Just describe your workflow, and dx generates the perfect dx.yaml file.
# Provide specific context for better resultsdx ai generate --prompt "Node.js project with TypeScriptUses Jest for testing Deploys to VercelHas linting with ESLintNeeds database migrations"
# Interactive prompt builderdx ai generate --interactive# AI asks clarifying questions:# "What type of project is this?"# "What deployment platform do you use?"# "Do you need database commands?"# "What testing framework?"
# Add new commands to existing configdx ai extend --prompt "Add Docker commands for containerized deployment"# AI intelligently merges with existing dx.yaml
# ✅ Good - Specific with contextdx ai generate --prompt "Python FastAPI servicePostgreSQL database with Alembic migrations Docker deployment to AWS ECSUses pytest for testingGitHub Actions for CI/CD"# ✅ Good - Workflow focused dx ai generate --prompt "I need commands for:- Building and testing React app- Running Storybook for components- Deploying to Netlify - Managing environment configs"
# Local generation (no data sent to external AI)dx ai generate --local --prompt "Add build commands for Rust project"# Prompt sanitization (removes sensitive info) dx ai generate --sanitize --prompt "Add deploy to prod with secret key abc123"# AI receives: "Add deploy to prod with [REDACTED]"
dx ai generate --prompt "Generate CI/CD workflow:- Run on every PR to main- Build, test, security scan - Deploy to staging on merge- Manual production deployment"