Add wp connectors list and wp connectors get commands#9
Draft
Add wp connectors list and wp connectors get commands#9
wp connectors list and wp connectors get commands#9Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add connectors command to manage plugins
Add Mar 5, 2026
wp connectors list and wp connectors get commands
This comment was marked as resolved.
This comment was marked as resolved.
…gin_slug/type/auth_method by default Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
swissspidy
reviewed
Mar 5, 2026
swissspidy
reviewed
Mar 5, 2026
swissspidy
reviewed
Mar 5, 2026
This comment was marked as resolved.
This comment was marked as resolved.
…ove credentials commands Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes the WP 7.0 connector registry (
_wp_connectors_get_connector_settings()) via two new WP-CLI commands, giving operators visibility into available AI providers and their configuration state.New commands
wp connectors list— tabular view of all registered connectors. Default columns:name,description,status. Additional fields (type,auth_method,plugin_slug,credentials_url) are available via--fields. Supports--statusfiltering and--format(table/csv/json/yaml).wp connectors get <connector>— detail view for a single connector rendered as a Field/Value pivot table (likewp post get). Default fields:name,description,status,credentials_url,api_key(masked, via WP core'soption_*filter). Additional fields (type,auth_method,plugin_slug) available via--fields.The
statuscolumn reflects the connector's current state:connected— an API key is configuredactive— the provider plugin is active (or the provider is registered directly without a plugin slug)installed— the plugin is installed but not activatednot installed— the plugin is not presentPlugin install/active status is resolved by matching the connector's
plugin.slugagainstget_plugins()output.Removed
The
wp ai credentialsfamily of commands (list,get,set,delete) has been removed. API keys can be managed directly viawp option update <setting_name> <value>.Tests
Behat scenarios cover: built-in provider listing with
name,description, andstatusfields;not installed/active/connectedstatus transitions;--statusfilter;getpivot layout with masked API key;--fieldsfiltering including hidden fields; error on unknown connector ID; installing the OpenAI provider plugin to flip status; filtering byactivestatus; and a community plugin (ai-provider-for-azure-openai) appearing in the list withstatus: active.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.