--- title: "Connect Gemini CLI to WordPress" url: "https://plugpress.co/docs/connect-gemini-cli-to-wordpress.md" canonical: "https://plugpress.co/docs/connect-gemini-cli-to-wordpress/" published: "2026-07-28" modified: "2026-07-28" author: "Fahim" tags: - "Saddle" --- # Connect Gemini CLI to WordPress Gemini CLI is Google's AI agent for the terminal — and with the **Saddle** plugin it can manage your WordPress content: reading, writing, and organizing posts, pages, and media. The setup is one terminal command that Saddle generates for you. ## What do I need before connecting? - A WordPress site with the [Saddle plugin](/docs/what-is-saddle/) installed and activated. - [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed on your computer. ## How do I connect Gemini CLI to my WordPress site? ### Step 1: Open the connect wizard in Saddle In your WordPress dashboard, go to **Saddle → Connections**, click **Connect an app**, and choose **Gemini CLI**. ![Saddle connect wizard in WordPress showing the Choose app step with Claude, ChatGPT, Claude Code, Cursor, Gemini CLI and VS Code](https://plugpress.co/wp-content/uploads/2026/07/saddle-connect-wizard-choose-app.png) ### Step 2: Copy the setup command ![Saddle setup step for Gemini CLI showing the one-line gemini mcp add terminal command](https://plugpress.co/wp-content/uploads/2026/07/saddle-connect-gemini-cli-setup.png) The command looks like this (yours contains your real site address and key): ``` gemini mcp add --scope user --transport http saddle-your-site https://your-site.com/wp-json/saddle/v1/mcp --header "Authorization: Basic PASTE-YOUR-KEY-HERE" ``` ### Step 3: Paste it into your terminal Open a terminal, paste the command, and press Enter. The connection is saved to your user profile, so it works from any folder. ## How do I know the connection works? Run `gemini` in any folder and ask: ``` What can you see on my WordPress site? ``` Gemini should report your site name, WordPress version, and content counts, and the app shows as connected in **Saddle → Connections**. ## What can Gemini do on my WordPress site? Only what you allow on the [Permissions](/docs/permissions-access-levels/) screen — sites start read-only, and deletions always require a [preview-and-confirm approval](/docs/safe-deletions/). ## Something not working? See [Troubleshooting and FAQ](/docs/troubleshooting/) — a stripped `Authorization` header or a mistyped key covers most failed connections.