Introducing Toolset CLI

   Dario

December 23, 2020

We’re happy to announce the release of WP-CLI commands for Toolset. You can use Toolset CLI to perform various Toolset-related tasks right from the command interface.

If you’re a fan of WP-CLI and command-line interface in general, Toolset CLI is for you.

Toolset CLI currently features three top-level commands:

  • wp toolset – post relationship commands
  • wp types – general Types commands
  • wp views – commands for Views, templates, and archives

You can find documentation and usage examples of all commands on the Toolset CLI repo.

Support and collaboration

We created Toolset CLI for our own internal needs and the Toolset development and QA teams use it on a daily basis.

It’s a tool by developers, for developers which is why we chose to publish it on GitHub. If you encounter any issues (including documentation) or have pull requests, simply use the GitHub repo. 

This repo is active and fully supported.

How to install Toolset CLI

The package is available on the Toolset CLI GitHub repo.

You can install it in three easy steps:

  1. Clone the Toolset CLI repository in your site’s /wp-content/plugins/ directory.
cd wp-content/plugins
git clone https://github.com/OnTheGoSystems/toolset-cli.git toolset-cli
  1. Install composer dependencies.
cd toolset-cli
composer install
  1. Activate the Toolset CLI plugin on your WordPress site.
wp plugin activate toolset-cli

That’s it, you can now run Toolset CLI commands.

Feedback?

Are you using WP-CLI? Interested in using Toolset CLI? Any suggestions?

Leave us a comment and we’ll reply!

 

Comments 6 Responses

    • Thank you, Amy! We’re glad that you find it useful. WP CLI rocks ๐Ÿ™‚

      If you miss any features in Toolset CLI, don’t hesitate to let us know in a new GitHub issue.

  1. For anyone reading this after the original announcement, import and export commands have been added to the top-level views command, and for sites using the legacy Layouts plugin, I just submitted a pull request via GitHub to support importing and exporting layouts.

    Bon appรฉtit!