fix(cli): use alias name for template id#15402
Merged
wh-alice merged 5 commits intorelease/6.5from Mar 4, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/6.5 #15402 +/- ##
============================================
Coverage 89.29% 89.30%
============================================
Files 620 620
Lines 38068 38073 +5
Branches 7742 7723 -19
============================================
+ Hits 33992 34000 +8
+ Misses 1973 1972 -1
+ Partials 2103 2101 -2
🚀 New features to boost your workflow:
|
Alive-Fish
approved these changes
Mar 4, 2026
wh-alice
approved these changes
Mar 4, 2026
2 tasks
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.
https://msazure.visualstudio.com/Microsoft%20Teams%20Extensibility/_workitems/edit/36965071/
Effect:

This pull request introduces support for template aliases in the TeamsFx CLI, allowing users to refer to templates using more user-friendly or standardized names. The changes update the template metadata, CLI logic, and output formatting to utilize these aliases, improving the developer experience and making the CLI commands more intuitive.
Template alias support and metadata enhancements:
aliasfield to theTemplateinterface and updated all relevant template entries inallTemplates.jsonto include meaningful aliases (e.g.,declarative-agent,bot,teams-agent, etc.), as well asdisplayNamewhere appropriate. This enables referencing templates by alias in CLI commands and outputs. [1] [2] [3] [4]aliaswhen available, falling back tonameotherwise. This affects template choice lists, table outputs, and command matching. [1] [2] [3] [4] [5] [6] [7]CLI command and example improvements:
copilot-gpt-basicwithdeclarative-agentin help messages and examples. [1] [2]Other updates:
foundry-agenttemplate tofoundry-agent-to-m365for clarity and consistency.