skip to navigation
skip to content

Not Logged In

wpadmin 0.1.0

Command line tool for WordPress

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
 
File Type Py Version Uploaded on Size
wpadmin-0.1.0-py2.7.egg (md5) Python Egg 2.7 2014-06-15 5KB
wpadmin-0.1.0.win32-py2.7.exe (md5) MS Windows installer any 2014-06-15 233KB
wpadmin-0.1.0.zip (md5) Source 2014-06-15 6KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 47 downloads in the last week
  • 341 downloads in the last month