JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q99128F
  • License MIT

CLI tools for cf-cms.js - plugin management, migration, and scaffolding

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-cli

    Commands

    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-run

    plugin 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 ./plugins

    plugin 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 --local

    Development

    # Install dependencies
    npm install
    
    # Build
    npm run build
    
    # Watch mode
    npm run dev
    
    # Type check
    npm run type-check
    
    # Test
    npm test

    License

    MIT