@ylstack-dev/cf-cms-cli
v3.1.10
Published
CLI tools for cf-cms.js - plugin management, migration, and scaffolding
Downloads
1,357
Maintainers
Readme
@ylstack-dev/cf-cms-cli
CLI tools for cf-cms.js - plugin management, migration, and scaffolding.
Installation
npm install -g @ylstack-dev/cf-cms-cliCommands
migrate
Migrate a CfCms project to cf-cms.js:
cf-cms migrate [path] [options]Options:
--dry-run- Preview changes without modifying files--skip-backup- Skip creating backup before migration
Examples:
# Migrate current directory
cf-cms migrate
# Migrate specific project
cf-cms migrate ./my-project
# Dry run to preview changes
cf-cms migrate --dry-runplugin create
Create a new plugin from template:
cf-cms plugin create [name] [options]Options:
-t, --template <template>- Plugin template (basic, admin-page, api, ecommerce)-d, --dir <directory>- Output directory (default: ./src/plugins)
Examples:
# Create basic plugin
cf-cms plugin create my-plugin
# Create admin page plugin
cf-cms plugin create my-admin-plugin --template admin-page
# Create API plugin in custom directory
cf-cms plugin create my-api --template api --dir ./pluginsplugin install
Install a plugin from npm or local path:
cf-cms plugin install <plugin> [options]Options:
--local- Install from local path
Examples:
# Install from npm
cf-cms plugin install @cf-cms/ecommerce
# Install from local path
cf-cms plugin install ./my-plugin --localDevelopment
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Type check
npm run type-check
# Test
npm testLicense
MIT
