{"id":42718335,"url":"https://github.com/wp-cli/ai-command","last_synced_at":"2026-01-29T16:02:56.659Z","repository":{"id":329639366,"uuid":"1117147916","full_name":"wp-cli/ai-command","owner":"wp-cli","description":"Interacts with the WordPress AI Client","archived":false,"fork":false,"pushed_at":"2025-12-20T21:57:51.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T20:49:18.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-cli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-15T22:41:21.000Z","updated_at":"2025-12-20T21:57:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wp-cli/ai-command","commit_stats":null,"previous_names":["wp-cli/ai-command"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wp-cli/ai-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fai-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fai-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fai-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fai-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-cli","download_url":"https://codeload.github.com/wp-cli/ai-command/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fai-command/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-29T16:02:23.185Z","updated_at":"2026-01-29T16:02:56.653Z","avatar_url":"https://github.com/wp-cli.png","language":"PHP","readme":"wp-cli/ai-command\n=================\n\nInteracts with the WordPress AI Client\n\n[![Testing](https://github.com/wp-cli/ai-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/ai-command/actions/workflows/testing.yml)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)\n\n## Using\n\nThis package implements the following commands:\n\n### wp ai\n\nInteracts with the WordPress AI Client for text and image generation.\n\n~~~\nwp ai\n~~~\n\n**EXAMPLES**\n\n    # Check AI capabilities status\n    $ wp ai status\n    +------------------+-----------+\n    | Capability       | Supported |\n    +------------------+-----------+\n    | Text Generation  | Yes       |\n    | Image Generation | No        |\n    +------------------+-----------+\n\n    # Generate text from a prompt\n    $ wp ai generate text \"Write a haiku about WordPress\"\n    Success: Generated text:\n    Open source and free\n    Empowering creators\n    WordPress shines bright\n\n    # Generate an image from a prompt\n    $ wp ai generate image \"A futuristic WordPress logo\" --destination-file=logo.png\n    Success: Image saved to logo.png\n\n    # Check if a prompt is supported\n    $ wp ai check \"Summarize this text\"\n    Success: Text generation is supported for this prompt.\n\n\n\n### wp ai credentials\n\nManages AI provider credentials.\n\n~~~\nwp ai credentials\n~~~\n\n**EXAMPLES**\n\n    # List all stored AI provider credentials\n    $ wp ai credentials list\n\n    # Get credentials for a specific provider\n    $ wp ai credentials get openai\n\n    # Set credentials for a provider\n    $ wp ai credentials set openai --api-key=sk-...\n\n    # Delete credentials for a provider\n    $ wp ai credentials delete openai\n\n\n\n\n\n### wp ai credentials get\n\nGets credentials for a specific AI provider.\n\n~~~\nwp ai credentials get \u003cprovider\u003e [--format=\u003cformat\u003e]\n~~~\n\n**OPTIONS**\n\n\t\u003cprovider\u003e\n\t\tThe AI provider name (e.g., openai, anthropic, google).\n\n\t[--format=\u003cformat\u003e]\n\t\tRender output in a particular format.\n\t\t---\n\t\tdefault: json\n\t\toptions:\n\t\t  - json\n\t\t  - yaml\n\t\t---\n\n**EXAMPLES**\n\n    # Get OpenAI credentials\n    $ wp ai credentials get openai\n    {\"provider\":\"openai\",\"api_key\":\"sk-*****\"}\n\n\n\n### wp ai credentials set\n\nSets or updates credentials for an AI provider.\n\n~~~\nwp ai credentials set \u003cprovider\u003e --api-key=\u003capi-key\u003e\n~~~\n\n**OPTIONS**\n\n\t\u003cprovider\u003e\n\t\tThe AI provider name (e.g., openai, anthropic, google).\n\n\t--api-key=\u003capi-key\u003e\n\t\tThe API key for the provider.\n\n**EXAMPLES**\n\n    # Set OpenAI credentials\n    $ wp ai credentials set openai --api-key=sk-...\n    Success: Credentials for provider \"openai\" have been saved.\n\n\n\n### wp ai credentials delete\n\nDeletes credentials for an AI provider.\n\n~~~\nwp ai credentials delete \u003cprovider\u003e\n~~~\n\n**OPTIONS**\n\n\t\u003cprovider\u003e\n\t\tThe AI provider name (e.g., openai, anthropic, google).\n\n**EXAMPLES**\n\n    # Delete OpenAI credentials\n    $ wp ai credentials delete openai\n    Success: Credentials for provider \"openai\" have been deleted.\n\n\n\n### wp ai credentials list\n\nLists all stored AI provider credentials.\n\n~~~\nwp ai credentials list [--format=\u003cformat\u003e]\n~~~\n\n**OPTIONS**\n\n\t[--format=\u003cformat\u003e]\n\t\tRender output in a particular format.\n\t\t---\n\t\tdefault: table\n\t\toptions:\n\t\t  - table\n\t\t  - csv\n\t\t  - json\n\t\t  - yaml\n\t\t---\n\n**EXAMPLES**\n\n    # List all credentials\n    $ wp ai credentials list\n    +----------+----------+\n    | provider | api_key  |\n    +----------+----------+\n    | openai   | sk-***** |\n    +----------+----------+\n\n\n\n### wp ai check\n\nChecks if a prompt is supported for generation.\n\n~~~\nwp ai check \u003cprompt\u003e [--type=\u003ctype\u003e]\n~~~\n\n**OPTIONS**\n\n\t\u003cprompt\u003e\n\t\tThe prompt to check.\n\n\t[--type=\u003ctype\u003e]\n\t\tType to check.\n\t\t---\n\t\toptions:\n\t\t  - text\n\t\t  - image\n\t\t---\n\n**EXAMPLES**\n\n    # Check if text generation is supported\n    $ wp ai check \"Write a poem\"\n\n    # Check if image generation is supported\n    $ wp ai check \"A sunset\" --type=image\n\n\n\n### wp ai generate\n\nGenerates AI content.\n\n~~~\nwp ai generate \u003ctype\u003e \u003cprompt\u003e [--model=\u003cmodels\u003e] [--provider=\u003cprovider\u003e] [--temperature=\u003ctemperature\u003e] [--top-p=\u003ctop-p\u003e] [--top-k=\u003ctop-k\u003e] [--max-tokens=\u003ctokens\u003e] [--system-instruction=\u003cinstruction\u003e] [--destination-file=\u003cfile\u003e] [--format=\u003cformat\u003e]\n~~~\n\n**OPTIONS**\n\n\t\u003ctype\u003e\n\t\tType of content to generate.\n\t\t---\n\t\toptions:\n\t\t  - text\n\t\t  - image\n\t\t---\n\n\t\u003cprompt\u003e\n\t\tThe prompt to send to the AI.\n\n\t[--model=\u003cmodels\u003e]\n\t\tComma-separated list of models in order of preference. Format: \"provider,model\" (e.g., \"openai,gpt-4\" or \"openai,gpt-4,anthropic,claude-3\").\n\n\t[--provider=\u003cprovider\u003e]\n\t\tSpecific AI provider to use (e.g., \"openai\", \"anthropic\", \"google\").\n\n\t[--temperature=\u003ctemperature\u003e]\n\t\tTemperature for generation, typically between 0.0 and 1.0. Lower is more deterministic.\n\n\t[--top-p=\u003ctop-p\u003e]\n\t\tTop-p (nucleus sampling) parameter. Value between 0.0 and 1.0.\n\n\t[--top-k=\u003ctop-k\u003e]\n\t\tTop-k sampling parameter. Positive integer.\n\n\t[--max-tokens=\u003ctokens\u003e]\n\t\tMaximum number of tokens to generate.\n\n\t[--system-instruction=\u003cinstruction\u003e]\n\t\tSystem instruction to guide the AI's behavior.\n\n\t[--destination-file=\u003cfile\u003e]\n\t\tFor image generation, path to save the generated image.\n\n[--stdout]\nOutput the whole image using standard output (incompatible with --destination-file=)\n\n\t[--format=\u003cformat\u003e]\n\t\tOutput format for text.\n\t\t---\n\t\tdefault: text\n\t\toptions:\n\t\t  - text\n\t\t  - json\n\t\t---\n\n**EXAMPLES**\n\n    # Generate text\n    $ wp ai generate text \"Explain WordPress in one sentence\"\n\n    # Generate text with specific settings\n    $ wp ai generate text \"List 3 WordPress features\" --temperature=0.1 --max-tokens=100\n\n    # Generate with top-p and top-k sampling\n    $ wp ai generate text \"Write a story\" --top-p=0.9 --top-k=40\n\n    # Generate with model preferences\n    $ wp ai generate text \"Write a haiku\" --model=openai,gpt-4,anthropic,claude-3\n\n    # Generate with system instruction\n    $ wp ai generate text \"Explain AI\" --system-instruction=\"Explain as if to a 5-year-old\"\n\n    # Generate image\n    $ wp ai generate image \"A minimalist WordPress logo\" --output=wp-logo.png\n\n\n\n### wp ai status\n\nChecks which AI capabilities are currently supported.\n\n~~~\nwp ai status [--format=\u003cformat\u003e]\n~~~\n\nChecks the environment and credentials to determine which AI operations\nare available. Displays a table showing supported capabilities.\n\n**OPTIONS**\n\n\t[--format=\u003cformat\u003e]\n\t\tRender output in a particular format.\n\t\t---\n\t\tdefault: table\n\t\toptions:\n\t\t  - table\n\t\t  - csv\n\t\t  - json\n\t\t  - yaml\n\t\t---\n\n**EXAMPLES**\n\n    # Check AI status\n    $ wp ai status\n    +------------------+-----------+\n    | Capability       | Supported |\n    +------------------+-----------+\n    | Text Generation  | Yes       |\n    | Image Generation | No        |\n    +------------------+-----------+\n\n## Installing\n\nInstalling this package requires WP-CLI v2.12 or greater. Update to the latest stable release with `wp cli update`.\n\nOnce you've done so, you can install the latest stable version of this package with:\n\n```bash\nwp package install wp-cli/ai-command:@stable\n```\n\nTo install the latest development version of this package, use the following command instead:\n\n```bash\nwp package install wp-cli/ai-command:dev-main\n```\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.\n\nFor a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\n\nBefore you create a new issue, you should [search existing issues](https://github.com/wp-cli/ai-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\nOnce you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/wp-cli/ai-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/wp-cli/ai-command/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See \"[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)\" for details specific to working on this package locally.\n\n## Support\n\nGitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support\n\n\n*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fai-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-cli%2Fai-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fai-command/lists"}