Giter Club home page Giter Club logo

toolset-cli's Introduction

Toolset CLI

WP-CLI commands for Toolset plugins.

Requirements

Installation

  1. Clone this repository in the plugin directory (wp-content/plugins/) of your WordPress site.
    cd wp-content/plugins
    git clone https://github.com/OnTheGoSystems/toolset-cli.git toolset-cli
  2. Install composer dependencies.
    cd toolset-cli
    composer install
  3. Activate the Toolset CLI plugin your WordPress site.
    wp plugin activate toolset-cli

Documentation

At the moment, four top-level commands are available. Feel free to explore them and all their available subcommands here:

Of course, when installed, the same information will be available via the wp help command.

Support and collaboration

Please understand that this is not an official part of the Toolset plugins, but rather a tool used internally within our company, which we decided to share with our more advanced clients and Toolset users.

Therefore, the usual guarantees do not apply here, and support will be provided exclusively through this GitHub repository.

That being said, we are dedicated to keeping this tool up-to-date and grow its feature set.

You are very welcome to:

  • Report problems, including issues with documentation.
  • Send pull requests (we suggest reaching out to us first, if you want to contribute with a larger piece of code).

Credits

Many thanks to @baizmandesign for his contributions to this project.


Made with ❤️ for Toolset and OnTheGoSystems.

toolset-cli's People

Contributors

zaantar avatar baizmandesign avatar kmgalanakis avatar

Stargazers

 avatar Leho Kraav avatar smithart avatar Ahmed Hussein avatar Jay Fraser avatar Maciek Palmowski avatar  avatar

Watchers

Leho Kraav avatar Andrea avatar Ivan Guillen avatar James Cloos avatar Juan de Paco Moreno avatar  avatar Ana Couto avatar  avatar

toolset-cli's Issues

Remove version number from asset names in releases

There's a nifty magic URL to download the latest version of a GitHub release asset:

https://github.com/user/repo/releases/latest/download/asset-name.zip

However, the asset-name.zip for toolset-cli includes the version number in it:

toolset-cli-refs.tags.1.1.zip

The unfortunate consequence of this is that one must know the version number to take advantage of the magic URL.

Could the version number be removed? The end result would be something like this:

https://github.com/OnTheGoSystems/toolset-cli/releases/latest/download/toolset-cli.zip

If removal isn't an option, I certainly understand why it would be desirable to keep the version number in the filename. (Another option might be to create two assets, one with the version number and one without it. But this redundancy seems a bit much.)

List relationships between posts?

I have a couple custom post types (chapter and member) and a one-to-many relationship defined for those types. From the Web UI I can go to a "chapter" and see the list of "members" associated with it via that relationship. I would really love a way to do that same thing from toolset-cli, so I can grab a list of all of the members associated with a chapter and then can script doing operations on them. Does such a thing exist already in here and I haven't figured it out via the documentation, or would this be new code?

Thanks for any assistance!

Add import / export commands for Layouts

I've been in touch with @decodekult about adding import and export commands for Layouts. Via email he mentioned, "Layouts is probably more complex, as there is no initial CLI implementation for it, and it is considered a legacy plugin just in maintenance." With some guidance from Toolset staff, I'd like to add support for these commands, and this issue can be assigned to me.

Layout import and export commands aren't working

@zaantar Layout import and export commands aren't working. The culprit seems to be that my patch for layouts/inc/theme/wpddl.theme-support.class.php wasn't implemented, nor was my slight alteration to layouts/classes-auto/wpddl-options.class.php.

Do you know when these changes can be incorporated into the Layouts plugin? I've just written a great shell script to export types, views, and layouts, copy them to a remote server via scp, and then import them—but it doesn't handle the layouts! :-)

Specifying composer version in README.md

Hey @zaantar, I forgot to mention this sooner: the first time I tried to build the plugin, it didn't work. The reason it failed was that I was using the latest version of composer, 2.x, and the plugin needs to be built with the older 1.x version. The README.md file, however, doesn't mention a version. Should I submit a PR with an update to README.md that explicitly states the version number?

Notification of updates in the WP dashboard

It would be nice to be able to update the plugin automatically via the WP dashboard when a new version is released, as many other plugins can be (including the Toolset suite).

Plugin can't be installed via releases

I tried to download the latest version of the plugin's ZIP file from the releases page, and when I attempted to activate the plugin, a PHP fatal error occurred.
screenshot 2021-04-12 at 11 10 23

I think it's an issue with composer. It's trying to automatically load dependencies from a subfolder named vendor, which only gets created when composer dependencies are installed. I thought the new action @zaantar created obviated the need for composer. Is that understanding correct?

Or, put another way, will it ever be possible to just install the plugin without having to issue composer commands? What brought all of this on was an attempt to install the plugin via the command line like so:

$ wp plugin install https://github.co
m/OnTheGoSystems/toolset-cli/archive/refs/tags/1.1.zip --activate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.