distributewp-cli

    0.1.1 • Public • Published

    distributewp-cli

    Command line interface that helps with the deployment of plugins on WordPress.org

    oclif Version Downloads/week License

    How it works

    DistributeWP deploys files and folders on your computer to the WordPress.org plugin's SVN repository. With this tool you can release new versions of plugins, update only the assets folder or update only the readme.txt file.

    DistributeWP requires .json file in your plugin's folder which contains all the settings required for deployment. This file can be created by running command distribute-wp init once you've answered a few questions, the configuration file will be automatically created for you.

    The CLI will ask you the following questions:

    • What's the slug of your plugin?
    • What's the folder you wish to deploy?
    • Do you wish to deploy plugin's assets too?
    • What's the folder where assets are stored?

    Deployment of new releases works by uploading the content of the folder you've specified when answering the 2nd configuration question.

    Requirements

    • SVN on your computer.
    • Preapproved plugin on wordpress.org
    • Node.js

    Installation

    npm install -g distributewp-cli

    Usage

    $ npm install -g distributewp-cli
    $ distribute-wp COMMAND
    running command...
    $ distribute-wp (-v|--version|version)
    distributewp-cli/0.1.1 darwin-x64 node-v12.8.1
    $ distribute-wp --help [COMMAND]
    USAGE
      $ distribute-wp COMMAND
    ...

    Commands

    distribute-wp assets

    Updates the plugin's assets on WordPress.org.

    USAGE
      $ distribute-wp assets
    

    See code: src/commands/assets.js

    distribute-wp deploy

    Release a new version of a WordPress plugin.

    USAGE
      $ distribute-wp deploy
    

    See code: src/commands/deploy.js

    distribute-wp help [COMMAND]

    display help for distribute-wp

    USAGE
      $ distribute-wp help [COMMAND]
    
    ARGUMENTS
      COMMAND  command to show help for
    
    OPTIONS
      --all  see all commands in CLI
    

    See code: @oclif/plugin-help

    distribute-wp init

    Configure deployment from the current folder.

    USAGE
      $ distribute-wp init
    

    See code: src/commands/init.js

    distribute-wp readme

    Updates the readme.txt file on WordPress.org.

    USAGE
      $ distribute-wp readme
    

    See code: src/commands/readme.js

    Keywords

    Install

    npm i distributewp-cli

    DownloadsWeekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    27.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • alessandrotesoro