Skip to content

AniketDev7/cli-ai-assistant

Repository files navigation

CLI AI Assistant

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.

Quick Start

# 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

Usage

$ 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.

Prerequisites

Configuration

OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-3.5-turbo

Contributing

Contributions are welcome. Fork, branch, commit, PR.

License

MIT — see LICENSE.

Disclaimer

Personal project. Not affiliated with or endorsed by any company.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors