An open API service indexing awesome lists of open source software.

https://github.com/ernilambar/devtools

Helper tools which are commonly used in WordPress development.
https://github.com/ernilambar/devtools

wordpress wp-cli wp-cli-package

Last synced: 7 months ago
JSON representation

Helper tools which are commonly used in WordPress development.

Awesome Lists containing this project

README

          

ernilambar/devtools
===================

Helper tools which are commonly used in WordPress development.

Quick links: [Using](#using) | [Installing](#installing)

## Using

This package implements the following commands:

- [wp dt home](#wp-dt-home)
- [wp dt open](#wp-dt-open)
- [wp dt social](#wp-dt-social)

### wp dt home

Homepage settings.

~~~
wp dt home
~~~

**OPTIONS**


Homepage mode.
---
options:
- page
- post
---

**EXAMPLES**

# Set homepage display to latest posts.
$ wp dt home post
Success: Homepage displays set to Latest Posts.

# Set homepage display to static page.
$ wp dt home page
Success: Homepage displays set to Static Page.

### wp dt open

Open site URLs.

~~~
wp dt open
~~~

**OPTIONS**


Mode.
---
options:
- admin
- front
- customizer
- editor
---

**EXAMPLES**

# Open admin.
$ wp dt open admin

# Open frontend.
$ wp dt open front

### wp dt social

Create a new social menu.

~~~
wp dt social [--count=] [--porcelain]
~~~

**OPTIONS**


A descriptive name for the menu.

[--count=]
How many social icons?
---
default: 5
---

[--porcelain]
Output just the new menu id.

**EXAMPLES**

# Create social menu.
$ wp dt social "My Social Menu"
Success: Created menu 202.

## Installing

Installing this package requires WP-CLI v2.0 or greater. Update to the latest stable release with `wp cli update`.

Once you've done so, you can install the latest stable version of this package with:

```bash
wp package install ernilambar/devtools:@stable
```

To install the latest development version of this package, use the following command instead:

```bash
wp package install ernilambar/devtools:dev-master
```

*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*