Skip to content

fix: copilot CLI plugin install uses wrong URL and command#143

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/copilot-plugin-install
Mar 23, 2026
Merged

fix: copilot CLI plugin install uses wrong URL and command#143
rhuanbarreto merged 1 commit into
mainfrom
fix/copilot-plugin-install

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Fixed wrong git URL: installCopilotPlugin() was using archgate.git (Claude Code .claude-plugin/ format) instead of archgate-vscode.git (.github/plugin/ format that copilot CLI expects)
  • Fixed install command: Changed from single copilot plugin install <url> (which fails because the repo is a marketplace, not a flat plugin) to two-step copilot plugin marketplace add + copilot plugin install archgate@archgate (matching the working Claude Code pattern)
  • Fixed manual fallback: Updated the fallback instructions shown when copilot CLI is not found to use the correct marketplace commands

Test plan

  • Run archgate plugin install --editor copilot with copilot CLI available — verify it runs marketplace add then install archgate@archgate
  • Run archgate plugin install --editor copilot without copilot CLI — verify fallback prints correct copilot plugin marketplace add + copilot plugin install archgate@archgate commands
  • Verify archgate plugin install --editor claude still works unchanged

🤖 Generated with Claude Code

The copilot CLI `plugin install <url>` command expects plugin.json at the
repo root, but our repo is a marketplace (marketplace.json at root, plugins
nested under plugins/archgate/). This caused "No plugin.json found" errors.

Fix both the auto-install path and manual fallback to:
1. Use archgate-vscode.git URL (.github/plugin/ format copilot expects)
2. Run two-step marketplace add + install (matching the Claude Code pattern)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3bf61fe
Status: ✅  Deploy successful!
Preview URL: https://cdbd10cb.archgate-cli.pages.dev
Branch Preview URL: https://fix-copilot-plugin-install.archgate-cli.pages.dev

View logs

@rhuanbarreto rhuanbarreto merged commit a5562c7 into main Mar 23, 2026
8 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/copilot-plugin-install branch March 23, 2026 01:23
@github-actions github-actions Bot mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant