A CLI plugin that uses AI to generate precise Contentstack CLI commands from natural language. No more memorizing complex syntax — just describe what you want to do.
# Install Contentstack CLI (required for csdx commands)
npm install -g @contentstack/cli
# Clone and install
git clone https://github.com/AniketDev7/cli-ai-assistant.git
cd cli-ai-assistant
npm install
npm run build
# Configure
cp .env.example .env
# Add your OpenAI API key to .env
# Link as a plugin
csdx plugins:link .
# Run
csdx ai:assistant$ csdx ai:assistant
╔═══════════════════════════════════════════════════╗
║ 🤖 CLI AI Assistant ║
╚═══════════════════════════════════════════════════╝
❯ Describe what you'd like to accomplish:
"Publish blog_post entries in en-us and fr-fr locales on preview branch"
✓ Generated Command:
csdx cm:entries:publish --stack-api-key <key> --content-types blog_post --locales en-us fr-fr --branch preview
Describe your intent in plain English and the assistant generates the right command(s) with proper flags, multi-step workflows, and documentation links.
- Node.js >= 14
- Contentstack CLI installed and authenticated
- OpenAI API key
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-3.5-turboContributions are welcome. Fork, branch, commit, PR.
MIT — see LICENSE.
Personal project. Not affiliated with or endorsed by any company.