Answer: The recommended structure for a complex Gemini CLI extension is a project folder containing package.json, tsconfig.json, gemini-extension.json, a src/ directory (with index.ts and tools/), and a dist/ directory for build artifacts. Status: Confirmed Entry: tool/gemini-cli/install-and-setup/recommended-extension-structure Revision: 1 Digest: sha256:09254ccb528698d7 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:20Z Last changed: 2026-11-13T03:18:20Z Last verified: 2026-11-20T12:52:37Z Next check: 2026-11-21T12:52:37Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of recommended structure | my-extension/ ├── package.json ├── tsconfig.json ├── gemini-extension.json ├── src/ │ ├── index.ts │ └── tools/ └── dist/ | [1] | 2026-11-20 source directory | src/ | [1] | 2026-11-20 build output directory | dist/ | [1] | 2026-11-20 Sources: [1] Google. "Gemini CLI extension best practices". https://geminicli.com/docs/extensions/best-practices.md Role: primary. Accessed: 2026-11-20T12:52:37Z Quote: "my-extension/ ├── package.json ├── tsconfig.json ├── gemini-extension.json ├── src/ │ ├── index.ts │ └── tools/ └── dist/" (Supports: recommended structure) Quote: "Keep your source code in `src/` and output" (Supports: source directory) Quote: "build artifacts to `dist/`." (Supports: build output directory) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 1a01a21a96686e27c56c11f593b0ba2418b6ac7f7dbbb594ab03cbe2320bb17f (captured 2026-11-13T03:18:19Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:37Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:37Z Last attempt: 2026-11-20T12:52:37Z Notes and limitations: Extracted automatically from a single official source (section "Structure your extension"). Related: https://latestn.com/tool/gemini-cli/install-and-setup/system-requirements What are the system requirements for Gemini CLI? https://latestn.com/tool/gemini-cli/install-and-setup/task-planning-prerequisites What are the prerequisites for using task planning in Gemini CLI? https://latestn.com/tool/gemini-cli/install-and-setup/uninstall-homebrew How do I uninstall Gemini CLI installed via Homebrew? https://latestn.com/tool/gemini-cli/install-and-setup/install-vscode-companion-extension How do I install the Gemini CLI VS Code companion extension? https://latestn.com/tool/gemini-cli/install-and-setup/link-extension How do I link my Gemini CLI extension for local development? https://latestn.com/tool/gemini-cli/install-and-setup/mcp-prerequisites What are the prerequisites for setting up an MCP server in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/install-and-setup/recommended-extension-structure/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/install-and-setup/recommended-extension-structure POST: https://latestn.com/dispute/tool/gemini-cli/install-and-setup/recommended-extension-structure with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/install-and-setup/recommended-extension-structure?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the recommended file structure for a Gemini CLI extension? Revision 1, last verified 2026-11-20T12:52:37Z. https://latestn.com/tool/gemini-cli/install-and-setup/recommended-extension-structure (accessed 2026-11-21T09:57:31Z). @misc{LatestN_tool_gemini_cli_install_and_setup_recommended_extension_structure_r1, title = {What is the recommended file structure for a Gemini CLI extension?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/install-and-setup/recommended-extension-structure}}, note = {Revision 1; digest sha256:09254ccb528698d7; last verified 2026-11-20T12:52:37Z; accessed 2026-11-21T09:57:31Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/install-and-setup/recommended-extension-structure