@agimonai/cms-cli
v0.0.5
Published
Agimon cms cli to setup project
Readme
@agimonai/cms-cli
A command-line tool to set up and manage Agimon CMS projects.
Installation
You can install the Agimon CMS CLI globally to use it across projects:
# Using npm
npm install -g @agimonai/cms-cli
# Using yarn
yarn global add @agimonai/cms-cli
# Using pnpm
pnpm add -g @agimonai/cms-cliOr use it directly with npx/pnpm dlx/yarn dlx:
npx @agimonai/cms-cli <command>Commands
Generate Blog Pages
Generate blog pages based on your Agimon CMS configuration:
agimon generateOptions:
-t, --api-key [string]- Your Agimon domain API key-f, --force- Overwrite existing files if matched-y, --yes- Auto confirm all prompts
If you don't provide the API key through the command line, you will be prompted to enter it interactively.
Update API Keys
Update API keys for your Agimon configuration:
agimon update api-keyOptions:
-s, --stage [string]- Stage: development or production-k, --key [string]- API key-y, --yes- Auto confirm all prompts
Framework Support
Currently, @agimonai/cms-cli primarily supports:
- Next.js projects
Support for more frameworks is planned for future releases.
Getting Started
Install the CLI:
npm install -g @agimonai/cms-cliGenerate Blog Pages:
agimon generateFollow the interactive prompts to select your framework and provide your API key.
Update API Keys (when needed):
agimon update api-keyFollow the prompts to select the environment stage and enter your API key.
Requirements
- Node.js 18.x or higher
- An active Agimon CMS account with API keys
Documentation
For more detailed information, refer to our developer documentation:
Common Issues
API Key Not Found
If you receive an error about invalid API keys:
- Log in to your Agimon dashboard
- Navigate to Settings > API Keys
- Copy the appropriate API key for your environment
- Run
agimon update api-keyto update your configuration
File Already Exists
When generating pages, you may encounter warnings about files that already exist. Use the --force flag to overwrite existing files:
agimon generate --forceLicense
MIT
Author
Vuong Ngo @ https://agimon.ai
Keywords
- cms
- blog generator
- nextjs
- content management
- cli tool
- web development
- page generator
- api integration
