Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ylstack-dev/cf-cms-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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