wpenv-console

WPEnv Console - Available Commands

WPEnv Console is a command-line tool that extends the functionality of the WPEnv WordPress development environment. It provides a set of convenient commands to simplify common development tasks when working with WordPress projects. Below is a list of available commands:

Table of Contents


Backup

Backup the WordPress web application (?).

Usage:

php bin/nino backup

Completion

Dump the shell completion script.

Usage:

php bin/nino completion

Config

Display a list of constants defined by Setup.

Usage:

php bin/nino config

Help

Display help for a command.

Usage:

php bin/nino help <command_name>

Install

Add a plugin or theme via composer using slug only.

Usage:

php bin/nino install <package_slug> [--type=<plugin_or_theme>]

List

List available commands.

Usage:

php bin/nino list

Serve

Start the built-in PHP web server.

Usage:

php bin/nino serve [--port=<port_number>] [--host=<host_name>] [--docroot=<document_root>] [--ini=<php_ini_file>]

Setup

Creates a fresh .env file .

Usage:

php bin/nino setup

SSL

Provisions SSL for a domain.

Usage:

php bin/nino ssl <domain>

Database (DB)

Database related commands:

DB Backup

Backup WordPress database.

Usage:

php bin/nino db:backup

Make

Generate files and directories:

Make Composer

Generate a fresh copy of composer.json file and run composer install.

Usage:

php bin/nino make:composer

Make DB Admin

Create DB admin directory.

Usage:

php bin/nino make:dbadmin [--_dir=<directory_name>]

Make Htpass

Create an .htpasswd file.

Usage:

php bin/nino make:htpass [--username=<username>] [--password=<password>]

WordPress (WP)

WordPress related commands:

WP Install

Installs WordPress.

Usage:

php bin/nino wp:install [--title=<blog_title>] [--user=<admin_username>] [--email=<admin_email>]

WP Login

Generate an auto-login URL for a user.

Usage:

php bin/nino wp:login [--user=<admin_username>]

Feel free to explore and use these commands to streamline your WordPress development workflow with WPEnv Console!