• Resolved emmebi74

    (@emmebi74)


    ‘wp pods add’ CLI command seems to be missing, I get:
    Error: ‘add’ is not a registered subcommand of ‘pods’. See ‘wp help pods’ for available subcommands.
    Did you mean ‘pod’?

    I am running Pods 2.9.3 and Core 6.0.1

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter emmebi74

    (@emmebi74)

    In Pods 2.7.16.2 I had two subcommands available, pods and pods-api:

    # wp pods
    usage: wp pods add --pod=<pod> --<field>=<value>
       or: wp pods delete --pod=<pod> --item=<item>
       or: wp pods duplicate --pod=<pod> --item=<item>
       or: wp pods export --pod=<pod> --file=<file> [--fields=<fields>] [--depth=<depth>] [--params=<params>]
       or: wp pods export-item --pod=<pod> --file=<file> [--item=<item>] [--fields=<fields>] [--depth=<depth>]
       or: wp pods save --pod=<pod> [--item=<item>] --<field>=<value>
    
    # wp pods-api
    usage: wp pods-api activate-component --component=<component>
       or: wp pods-api add-pod --name=<name> [--<field>=<value>]
       or: wp pods-api clear-cache
       or: wp pods-api deactivate-component --component=<component>
       or: wp pods-api delete-pod --name=<name> [--delete-all]
       or: wp pods-api duplicate-pod --name=<name> [--new_name=<new_name>] [--<field>=<value>]
       or: wp pods-api export-pod --file=<file> [--pods=<pods>] [--templates=<templates>] [--pages=<pages>]
       or: wp pods-api import-pod --file=<file> [--replace]
       or: wp pods-api reset-pod --name=<name>
       or: wp pods-api save-pod --name=<name> [--<field>=<value>]

    whereas, after updating to Pods 2.9.3, I have only:

    # wp pods
    usage: wp pods field <command>
       or: wp pods group <command>
       or: wp pods playbook <command>
       or: wp pods pod <command>
    

    Is this a bug ? do I have to create an issue on Github ? please help

    • This reply was modified 3 years, 9 months ago by emmebi74.
    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    This looks like it happened in Pods 2.8.x, I’ll work on getting this back in the next Pods 2.9.x release for you. Thanks for your patience.

    Thread Starter emmebi74

    (@emmebi74)

    Thanks Scott. When will the new minor version be released ?

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Probably this upcoming week based on what I’ve got going on. I’ve already added it back in the current dev build of Pods 2.9.4

    Any word on this fix? It appear that a whole ton of options are broken/no longer exist for the WP-CLI. I just tried

    wp pods export --pod=theme_options --file="wp-content/config/pods-theme_options.json"
    Error: 'export' is not a registered subcommand of 'pods'. See 'wp help pods' for available subcommands.
    • This reply was modified 3 years, 8 months ago by Tim Nolte.
    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    This is already in Pods 2.9.4 which should go out this week.

    Just a heads up that the command will be wp pods-legacy .. instead of just the normal wp pods .. as there are many things that will be refactored for the newer CLI endpoints we have (which mirror our REST API endpoints).

    @sc0ttkclark thanks so much for the update!

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    2.9.4 is out now and includes these legacy commands.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘wp pods add – missing ?’ is closed to new replies.