Skip to main content

Command line tool for WordPress

Project description

wpadmin is a Python module for managing WordPress installations from the command line. Inspiration comes from both django-admin.py and WP-CLI.

Installing

$ pip install wpadmin

Usage

From the root of your WordPress project (directory containing wp-load.php):

$ wpadmin starttheme [--classic] my-theme-name

The starttheme command will create the following directory structure within the wp-contents/themes/ directory:

- my-theme-name
  - templates/
    - base.twig
  - static/
    - css/
    - images/
    - js/
  - 404.php
  - functions.php
  - index.php
  - README.md
  - style.css

The above structure assumes you will be using the Twig template engine via the Timber plugin. The starttheme command with the --classic option will create the following directory structure within the wp-contents/themes/ directory:

- my-theme-name
  - css/
  - images/
  - js/
  - 404.php
  - functions.php
  - index.php
  - README.md
  - style.css

To create a plugin skeleton:

$ wpadmin startplugin my-plugin-name

The startplugin command will create the following directory structure within the wp-contents/plugins/ directory:

- my-plugin-name
  - my-plugin.name.php
  - README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wpadmin, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size wpadmin-0.1.0-py2.7.egg (5.7 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size wpadmin-0.1.0.win32-py2.7.exe (239.3 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size wpadmin-0.1.0.zip (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page