Support » Plugin: Pods - Custom Content Types and Fields » How to Add fields using Cli

  • Resolved Ramakrishnan R


    Add a pod book successfully using below pods-wp-cli

    wp pods-api add-pod --name=book --label="Books" --type=settings --menu_location=top

    but can’t add fields as per pods docs

    wp pods add --pod=book --my_field_label1="Book Name" --my_field_name1=book_name --my_field_type1=Text

    How to add pods fields using wp-cli?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Kingsley Clark


    The original Pods WP-CLI commands do not support saving fields configurations. wp pods add is a command to add items to a pod, not define fields.

    Pods 2.8 introduces a completely revamped CLI interface based on the brand new REST API we built for Pods. Documentation will be updated when we get Pods 2.8 ready for release. It supports single and archive fetching for Pods, Groups, and Fields. It also supports adding, editing, and deleting Pods, Groups, and Fields too. I’m sure you’ll be very happy with what we’ve put together for you.

    Pods 2.8 is currently slated for Beta release by the end of September if all goes well in our final areas of work where we’re migrating our field type JS code into React.

    Thanks for the update Scott.
    I’m waiting for the Pods 2.8 beta release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.