Skip to content
Command line interface that helps with the deployment of plugins on WordPress.org
Branch: master
Clone or download
Latest commit 148860f Jun 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src prepack Jun 20, 2019
.editorconfig remove eslint for now May 29, 2019
.gitignore hello world May 29, 2019
LICENSE Create LICENSE Jun 20, 2019
README.md updated readme Jun 20, 2019
oclif.manifest.json prepack Jun 20, 2019
package.json finish the readme command Jun 1, 2019
yarn.lock finish the readme command Jun 1, 2019

README.md

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.0 darwin-x64 node-v10.13.0
$ 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

You can’t perform that action at this time.