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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wpadmin-0.1.0.zip.
File metadata
- Download URL: wpadmin-0.1.0.zip
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4831bf52f383e1f50482ab66d421fbda3b607867cc7920b8661d94acfc26229
|
|
| MD5 |
362f2c1c66638ef87595e097bfe3be72
|
|
| BLAKE2b-256 |
49d676a2fe3693516fc6d6522ebcb5f53692b439262dbb6e4aa87bb9e92f72f0
|
File details
Details for the file wpadmin-0.1.0.win32-py2.7.exe.
File metadata
- Download URL: wpadmin-0.1.0.win32-py2.7.exe
- Upload date:
- Size: 239.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220d443bf90170370b3080afc0d7d4427aa53bd0c8bdf6e35429163b46168ea2
|
|
| MD5 |
48174a70ba608ead9cece4578d59f63a
|
|
| BLAKE2b-256 |
ae7054179959053cdfd94675d21fc0a54ee08e789d30d4d3c9fdfb23fae04a54
|
File details
Details for the file wpadmin-0.1.0-py2.7.egg.
File metadata
- Download URL: wpadmin-0.1.0-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f51457a1fbd603da55728ce78b5b6fe7b3c667e69ee4246a5cd673586b0a6e4
|
|
| MD5 |
893b5eb58ae0e35e38475a97c80377a5
|
|
| BLAKE2b-256 |
553e3df1d65062448a5e35c732c794eda182264f8b84d98ea4069525a12cc6dc
|