Unyson WordPress Framework terminal interface
-
Make sure you have WP-CLI installed
Here you can find instructions: https://make.wordpress.org/cli/handbook/installing/
-
Update WP-CLI:
wp cli update
. -
Install Unyson-CLI package.
wp package install ThemeFuse/Unyson-CLI
All Unyson-CLI commands starts with wp unyson
followed by command name.
Use wp unyson install
to install the Unyson plugin.
Unyson wp unyson install
uses the wp plugin install <plugin-name>
command, so it is and alias for
wp plugin install unyson
command.
Provided commands below refer to unyson plugin management, the commands are required to be executed in a directory
with WordPress installation available or use the global parameter --path
to specify in what directory where the
command will be executed.
wp unyson install --path=/var/www/wordpress/
wp unyson install [--version=<version>] [--force] [--activate] [--activate-network]
Install unyson.
-
[--version=<version>]
If set, get that particular version from wordpress.org, instead of the stable version.
-
[--force]
If set, the command will overwrite any installed version of unyson, without prompting for confirmation.
-
[--activate-network]
If set, unyson will be network activated immediately after install
Install the latest version from wordpress.org and activate
$ wp unyson install --activate
Installing unyson (2.6.16)
Downloading install package from https://downloads.wordpress.org/plugin/unyson.2.6.16.zip...
Using cached file '/home/vagrant/.wp-cli/cache/plugin/unyson-2.6.16.zip'...
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Activating 'unyson'...
Plugin 'unyson' activated.
Success: Installed 1 of 1 plugins.
wp unyson uninstall [--deactivate] [--skip-delete]
Uninstall Unyson.
-
[--deactivate]
Deactivate unyson before uninstalling. Default behavior is to warn and skip if unyson is active.
-
[--skip-delete]
If set, the unyson files will not be deleted. Only the uninstall procedure will be run.
Install the latest version from wordpress.org and activate
$ wp unyson uninstall
Uninstalled and deleted 'unyson' plugin.
Success: Uninstalled 1 of 1 plugins.
wp unyson version
Prints Unyson current version.
Print current version
$wp unyson version
2.6.15
wp unyson activate [--network]
Activate Unyson.
-
[--network]
If set, unyson will be activated for the entire multisite network.
Activate unyson
$ wp unyson activate
Plugin 'unyson' activated.
Success: Activated 1 of 1 plugins.
Activate plugin in entire multisite network
$ wp unyson activate --network
Plugin 'unyson' network activated.
Success: Network activated 1 of 1 plugins.
wp unyson deactivate [--uninstall] [--network]
Deactivate unyson.
-
[--uninstall]
Uninstall unyson after deactivation.
-
[--network]
If set, unyson will be deactivated for the entire multisite network.
Deactivate unyson
$ wp unyson deactivate
Plugin 'unyson' deactivated.
Success: Deactivated 1 of 1 plugins.
wp unyson get [--field=<field>] [--fields=<fields>] [--format=<format>]
Get details about current unyson installation.
-
[--field=<field>]
Instead of returning the whole unyson data, returns the value of a single field.
-
[--fields=<fields>]
Limit the output to specific fields. Defaults to all fields.
-
[--format=<format>]
Render output in a particular format.
Formats:
table
,csv
,json
,yaml
Default:
table
Get Unyson data
+-------------+------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------+------------------------------------------------------------------------------------------------------------------------------------+
| name | unyson |
| title | Unyson |
| author | ThemeFuse |
| version | 2.6.15 |
| description | A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy. |
| status | active |
+-------------+------------------------------------------------------------------------------------------------------------------------------------+
Get Unyson data as json
$ wp unyson get --format=json
{"name":"unyson","title":"Unyson","author":"ThemeFuse","version":"2.6.15","description":"A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.","status":"active"}
wp unyson is_installed
Check if unyson is installed.
Check whether unyson is installed; exit status 0 if installed, otherwise 1
$ wp unyson is-installed
$ echo $?
1
wp unyson path [--dir]
Get the path to unyson or to the unyson directory.
-
[--dir]
If set, get the path to the closest parent directory, instead of the unyson file.
Get Unyson plugin path
$ wp unyson path
/var/www/wordpress/wp-content/plugins/unyson/unyson.php
Get Unyson plugin directory
$ wp unyson path --dir
/var/www/wordpress/wp-content/plugins/unyson
wp unyson status
See unyson status.
Display unyson status
$ wp unyson status
Plugin unyson details:
Name: Unyson
Status: Active
Version: 2.6.16
Author: ThemeFuse
Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
wp unyson toggle [--network]
If unyson is active, then it will be deactivated. If unyson is inactive, then it will be activated.
-
[--network]
If set, unyson will be toggled for the entire multisite network.
Unyson is currently activated
$ wp unyson toggle
Plugin 'unyson' deactivated.
Success: Toggled 1 of 1 plugins.
Unyson is currently deactivated
$ wp plugin toggle unyson
Plugin 'unyson' activated.
Success: Toggled 1 of 1 plugins.
wp unyson update [--format=<format>] [--version=<version>]
Update unyson.
-
[--format=<format>]
Output summary as table or summary. Defaults to
table
. -
[--version=<version>]
If set, unyson will be updated to the specified version.
Update unyson to version 2.5.4
$ wp unyson update --version=2.5.4
Installing unyson
Downloading install package from https://downloads.wordpress.org/plugin/unyson-2.5.4.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Updated 1 of 1 plugins.
wp unyson upgrade
Upgrades unyson to the next available version.
Upgrade unyson 2.5.4
$ wp unyson upgrade
Installing unyson
Downloading install package from https://downloads.wordpress.org/plugin/unyson-2.5.5.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Updated 1 of 1 plugins.
wp unyson downgrade
Downgrades unyson to the previous version.
Downgrade unyson 2.5.4
$ wp unyson downgrade
Installing unyson
Downloading install package from https://downloads.wordpress.org/plugin/unyson-2.5.3.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Updated 1 of 1 plugins.
wp unyson versions
List all unyson available versions.
List all Unyson versions
$ wp unyson versions
...
2.1.6
2.1.7
* 2.1.8
2.1.9
2.1.10
2.1.11
...
wp unyson exts update
Will update all extensions at once. If you want to upate only a specific extension use:
wp unyson exts update extensionName
Update unyson extensions:
$ wp unyson exts update
Downloading the Mailer extension...
Installing the Mailer extension...
The Mailer extension has been successfully updated.