Development toolkit for setting up and managing your local WordPress Theme/Plugin
Last updated 21 days ago by wordup .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install wordup-cli 
SYNC missed versions from official npm registry.

Wordup CLI


Version Downloads/week Wordup docs Twitter Follow

⚠️CAUTION: The 1.0.0 major release is not backwards compatible

Wordup CLI is an open-source development toolkit for setting up and managing your local WordPress Theme/Plugin development, so that you can totally focus on coding.

It is based on docker-compose and uses a docker containerized LAMP-stack with all WordPress Plugins/Themes you need for your current project.


What you can do with wordup-cli:

  • ????Rapidly test new ideas - And develop your new WordPress theme/plugin projects in wordup.
  • Speed up your development - Install a new project with a blank WordPress installation in a matter of minutes
  • ????️Boilerplate - Scaffold your theme/plugin with the official source code from WordPress (e.g. underscore). You can also add code snippets like Gutenberg blocks to your source code.
  • ⚙️Automatic installation of dependencies - Automatically download and activate public WordPress Plugins/Themes or even Github hosted projects (like e.g. wp-graphql)
  • ????Easy portability - Export your theme/project or your whole WordPress installation. So that you can install it on a remote server.
  • ????Backup your installation - And (re)install a project from an exported wordup project.
  • ????Share your stack - wordup is the easiest way to share your WordPress project with the world or just your team members. Just type: git clone, and then wordup install
  • ✉️Catch emails - Catch all emails from WordPress and view the outgoing emails in a web UI

Installation / Requirements

Make sure you have node >= 8.3 (npm >= 5.2) and docker-compose installed on your machine.

We recommend to install wordup-cli globally:

$ npm install -g wordup-cli

After installing wordup-cli, you can create your first project with wordup init


For detailed information visit docs.wordup.dev


$ npm install -g wordup-cli
$ wordup COMMAND
running command...
$ wordup (-v|--version|version)
wordup-cli/1.0.0 darwin-x64 node-v10.15.0
$ wordup --help [COMMAND]
  $ wordup COMMAND


wordup cloud:auth

Authenticate the CLI with your wordup account

  $ wordup cloud:auth

  -l, --logout  Logout of your account

  You will be redirect to the wordup.dev page.

See code: src/commands/cloud/auth.js

wordup cloud:clone

Clone current running WordPress installation to a new node in your wordup account

  $ wordup cloud:clone

  This command will automatically backup and upload your running WordPress installation to wordup.

  After cloning the project, your data will be deleted from our servers.

See code: src/commands/cloud/clone.js

wordup cloud:project

Create a new remote project on wordup.dev

  $ wordup cloud:project

  --public  Create a public project

  Use this function to create a remote project on wordup.dev from your local project config.

See code: src/commands/cloud/project.js

wordup cloud:publish

Publish your WordPress theme or plugin to your private theme/plugin directory on wordup.

  $ wordup cloud:publish

  --env=release|staging          (required) Specify the environment you want to publish to
  --increment=major|minor|patch  [default: minor] Increment a version by the specified level
  --token=token                  A provided project token

  The private directory on wordup manages your WordPress plugin and theme projects in the cloud.

  After publishing the project, all WordPress installations can update your theme/plugin to the new project version.

See code: src/commands/cloud/publish.js

wordup export TYPE

Export your plugin/theme or the whole WordPress installation

  $ wordup export TYPE

  TYPE  (src|installation|sql) [default: src] What type do you want to export

  --logs  Shows all stdout logs of this process

  The exported zip-file of a plugin/theme are ready for distribution.

  An exported installation file can be used for setting up a remote WordPress installation or
  for backing up your current development stack.

See code: src/commands/export.js

wordup help [COMMAND]

display help for wordup

  $ wordup help [COMMAND]

  COMMAND  command to show help for

  --all  see all commands in CLI

See code: @oclif/plugin-help

wordup init

Create a new wordup project in the current directoy

  $ wordup init

  --name=name                         A name for the new project
  --type=plugins|themes|installation  What type of WordPress project

  After you have initialized a new project, you can start the docker development server with 'wordup local:install'

See code: src/commands/init.js

wordup list

List all executable wordup projects

  $ wordup list

  --clear  Clears the project list from non-existing projects

  If you see deleted projects in this list, run with --clear flag.

  $ wordup ls

See code: src/commands/list.js

wordup local:install

Install and start the WordPress development server

  $ wordup local:install

  -p, --port=port    [default: 8000] Install on a different port
  --archive=archive  Install from a wordup archive (needs to be located in your dist folder).
  --build            Build the WordPress docker container on your system
  --logs             Shows all stdout logs of this process
  --prompt           If you want to do the setup again

  If there is no wpInstall config in .wordup/config.yml, a setup for your installation will be shown.

  The web frontend for the catched emails (MailHog) is available on localhost:[WORDPRESS_PORT + 1]

  Wordup will assign automatically a different default port, if the default port of 8000 is taken by another wordup 

  Note: Flags in this command overrule the wordup config.yml.

  $ wordup install

See code: src/commands/local/install.js

wordup local:start

Start the WordPress development server

  $ wordup local:start

  --logs  Shows all stdout logs of this process

  You can onl run this command if your development stack is installed.

  $ wordup run
  $ wordup start

See code: src/commands/local/start.js

wordup local:stop

Stop the development server

  $ wordup local:stop

  -d, --delete           Deletes all attached volumes/data (WARNING: Your content in your WordPress installation will be

  -p, --project=project  A project slug name

  --force                Force delete

  --logs                 Shows all stdout logs of this process

  Optionally you can use -d to delete the whole installation, this includes all files in your WordPress installation.

  $ wordup stop

See code: src/commands/local/stop.js

wordup snippet TYPE NAME

Add code snippets like Gutenberg blocks, custom post types or taxonomies to your code

  $ wordup snippet TYPE NAME

  TYPE  (block|post-type|taxonomy) What type do you want to add to your project
  NAME  Name of the element you want to add

  --logs  Shows all stdout logs of this process

  This code snippets will be added to your current project source code. You can add as many as you want.
  Just include the generated php file in your main project file.

  As an example: wordup snippet block MyGutenbergBlock

See code: src/commands/snippet.js

wordup wpcli [COMMAND]

Use an official WordPress CLI command on the current running project

  $ wordup wpcli [COMMAND]

  COMMAND  the wp cli command

  --logs  Shows all stdout logs of this process

  As an example: wordup wpcli post list. 

  If you run wordup wpcli without any argument, you will directly access the command line of the underlying docker 

See code: src/commands/wpcli.js

Wordup for Visual Studio Code

If you use VSCode for your development, you can install our VSCode extension. This extension will integrate all wordup features in your favorite editor.

Learn more

To learn more about wordup in general, visit: https://wordup.dev

License / Contributing

wordup-cli is an open-source project. If you are interested in contributing to wordup-cli, feel free to join us.

See the LICENSE file for details.

Current Tags

  • 1.0.0-alpha.8                                ...           alpha (a month ago)
  • 1.0.0                                ...           latest (21 days ago)

39 Versions

  • 1.0.0                                ...           21 days ago
  • 0.7.5                                ...           a month ago
  • 1.0.0-alpha.8                                ...           a month ago
  • 0.7.4                                ...           2 months ago
  • 1.0.0-alpha.7                                ...           6 months ago
  • 1.0.0-alpha.6                                ...           6 months ago
  • 1.0.0-alpha.5                                ...           6 months ago
  • 1.0.0-alpha.4                                ...           6 months ago
  • 1.0.0-alpha.3                                ...           6 months ago
  • 1.0.0-alpha.2                                ...           6 months ago
  • 1.0.0-alpha.1                                ...           6 months ago
  • 1.0.0-alpha.0                                ...           6 months ago
  • 0.7.3                                ...           9 months ago
  • 0.7.2                                ...           10 months ago
  • 0.7.1                                ...           10 months ago
  • 0.7.0                                ...           10 months ago
  • 0.6.2                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.9                                ...           a year ago
  • 0.2.8                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 51
Last Day 0
Last Week 0
Last Month 52
Dependencies (23)
Dev Dependencies (10)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |