Skip to content

Commit e7b6eb4

Browse files
authored
docs: rename cli command prefix in templates files (#10370)
* docs: rename cli command prefix in templates files * docs: update * feat: up
1 parent cd3f52f commit e7b6eb4

File tree

146 files changed

+415
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+415
-420
lines changed

packages/fx-core/resource/package.nls.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"core.migrationV3.manifestNotExist": "templates/appPackage/manifest.template.json does not exist. You may be trying to upgrade a project created by Teams Toolkit for Visual Studio Code v3.x / Teams Toolkit CLI v0.x / Teams Toolkit for Visual Studio v17.3. Please install Teams Toolkit for Visual Studio Code v4.x / Teams Toolkit CLI v1.x / Teams Toolkit for Visual Studio v17.4 and run upgrade first.",
3434
"core.migrationV3.manifestInvalid": "templates/appPackage/manifest.template.json is invalid.",
3535
"core.migrationV3.abandonedProject": "This project is only for previewing and will not be supported by Teams Toolkit. Please try Teams Toolkit by creating a new project",
36-
"core.migrationV3.notAllowedMigration": "Teams Toolkit's Pre-Release version supports new project configuration and is incompatible with previous versions. Try it by creating a new project or run \"teamsfx upgrade\" to upgrade your project first.",
36+
"core.migrationV3.notAllowedMigration": "Teams Toolkit's Pre-Release version supports new project configuration and is incompatible with previous versions. Try it by creating a new project or run \"teamsapp upgrade\" to upgrade your project first.",
3737
"core.projectVersionChecker.cliUseNewVersion": "Your TeamFx CLI version is old and it doesn't support current project, please upgrade to the latest version using command below:\nnpm install -g @microsoft/teamsapp-cli@latest",
3838
"core.projectVersionChecker.incompatibleProject": "The current project is incompatible with the installed version of Teams Toolkit.",
3939
"core.projectVersionChecker.vs.incompatibleProject": "The project in the solution is created with Teams Toolkit preview feature - Teams App Configuration Improvements. You can turn on the preview feature to continue.",

packages/fx-core/src/question/create.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export function capabilityQuestion(): SingleSelectQuestion {
570570
cliDescription: "Specifies the Microsoft Teams App capability.",
571571
cliName: CliQuestionName.Capability,
572572
cliShortName: "c",
573-
cliChoiceListCommand: "teamsfx list templates",
573+
cliChoiceListCommand: "teamsapp list templates",
574574
type: "singleSelect",
575575
staticOptions: CapabilityOptions.staticAll(),
576576
dynamicOptions: (inputs: Inputs) => {

packages/fx-core/src/question/options/CreateProjectOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const CreateProjectOptions: CLICommandOption[] = [
4545
"copilot-plugin-existing-api",
4646
"copilot-plugin-openai-plugin",
4747
],
48-
choiceListCommand: "teamsfx list templates",
48+
choiceListCommand: "teamsapp list templates",
4949
},
5050
{
5151
name: "bot-host-type-trigger",

packages/tests/src/e2e/README.md

-5
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ describe("teamsfx new sample", function () {
225225

226226
### CliHelper
227227

228-
#### setSubscription
229-
230-
```bash
231-
teamsfx account set --subscription ${subscription}
232-
```
233228

234229
#### addEnv
235230

templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: v1.3
55

66
environmentFolderPath: ./env
77

8-
# Triggered when 'teamsfx provision' is executed
8+
# Triggered when 'teamsapp provision' is executed
99
provision:
1010
# Creates a Teams app
1111
- uses: teamsApp/create
@@ -66,7 +66,7 @@ provision:
6666
titleId: M365_TITLE_ID
6767
appId: M365_APP_ID
6868

69-
# Triggered when 'teamsfx publish' is executed
69+
# Triggered when 'teamsapp publish' is executed
7070
publish:
7171
# Validate using manifest schema
7272
- uses: teamsApp/validateManifest

templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 1.0.0
55

66
environmentFolderPath: ./env
77

8-
# Triggered when 'teamsfx provision' is executed
8+
# Triggered when 'teamsapp provision' is executed
99
provision:
1010
# Creates a Teams app
1111
- uses: teamsApp/create
@@ -52,7 +52,7 @@ provision:
5252
titleId: M365_TITLE_ID
5353
appId: M365_APP_ID
5454

55-
# Triggered when 'teamsfx publish' is executed
55+
# Triggered when 'teamsapp publish' is executed
5656
publish:
5757
# Validate using manifest schema
5858
- uses: teamsApp/validateManifest

templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 1.0.0
55

66
environmentFolderPath: ./env
77

8-
# Triggered when 'teamsfx provision' is executed
8+
# Triggered when 'teamsapp provision' is executed
99
provision:
1010
# Creates a Teams app
1111
- uses: teamsApp/create
@@ -52,7 +52,7 @@ provision:
5252
titleId: M365_TITLE_ID
5353
appId: M365_APP_ID
5454

55-
# Triggered when 'teamsfx publish' is executed
55+
# Triggered when 'teamsapp publish' is executed
5656
publish:
5757
# Validate using manifest schema
5858
- uses: teamsApp/validateManifest

templates/common/office-addin/teamsapp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 1.0.0
55

66
environmentFolderPath: ./env
77

8-
# Triggered when 'teamsfx provision' is executed
8+
# Triggered when 'teamsapp provision' is executed
99
provision:
1010
- uses: arm/deploy # Deploy given ARM templates parallelly.
1111
with:
@@ -38,7 +38,7 @@ provision:
3838
indexPage: index.html
3939
errorPage: error.html
4040

41-
# Triggered when 'teamsfx deploy' is executed
41+
# Triggered when 'teamsapp deploy' is executed
4242
deploy:
4343
# Run npm command
4444
- uses: cli/runNpmCommand

templates/constraints/yml/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -14,7 +14,7 @@ provision:
1414
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1515
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
1616

17-
# Triggered when 'teamsfx publish' is executed
17+
# Triggered when 'teamsapp publish' is executed
1818
publish:
1919
{{#teamsAppValidateManifest}} {{/teamsAppValidateManifest}}
2020
{{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}}

templates/constraints/yml/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -12,7 +12,7 @@ provision:
1212
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1313
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
1414

15-
# Triggered when 'teamsfx publish' is executed
15+
# Triggered when 'teamsapp publish' is executed
1616
publish:
1717
{{#teamsAppValidateManifest}} {{/teamsAppValidateManifest}}
1818
{{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}}

templates/constraints/yml/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -12,7 +12,7 @@ provision:
1212
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1313
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
1414

15-
# Triggered when 'teamsfx publish' is executed
15+
# Triggered when 'teamsapp publish' is executed
1616
publish:
1717
{{#teamsAppValidateManifest}} {{/teamsAppValidateManifest}}
1818
{{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}}

templates/constraints/yml/templates/common/office-addin/teamsapp.yml.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#armDeploy}} deploymentName: Create-resources-for-tab {{/armDeploy}}
88

99
{{#azureStorageEnableStaticWebsite}} storageResourceId: ${{ADDIN_AZURE_STORAGE_RESOURCE_ID}} {{/azureStorageEnableStaticWebsite}}
1010

11-
# Triggered when 'teamsfx deploy' is executed
11+
# Triggered when 'teamsapp deploy' is executed
1212
deploy:
1313
{{#cliRunNpmCommand}} install, args: install {{/cliRunNpmCommand}}
1414
{{#cliRunNpmCommand}} args: run build --if-present, build {{/cliRunNpmCommand}}

templates/constraints/yml/templates/csharp/command-and-response/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -15,7 +15,7 @@ provision:
1515
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1616
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1717

18-
# Triggered when 'teamsfx deploy' is executed
18+
# Triggered when 'teamsapp deploy' is executed
1919
deploy:
2020
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2121
{{#azureAppServiceZipDeploy}} artifactFolder: bin/Release/{{TargetFramework}}/win-x86/publish, resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}} {{/azureAppServiceZipDeploy}}

templates/constraints/yml/templates/csharp/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

templates/constraints/yml/templates/csharp/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

templates/constraints/yml/templates/csharp/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

templates/constraints/yml/templates/csharp/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -18,7 +18,7 @@ provision:
1818

1919
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
2020

21-
# Triggered when 'teamsfx deploy' is executed
21+
# Triggered when 'teamsapp deploy' is executed
2222
deploy:
2323
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2424
{{#azureFunctionsZipDeploy}}

templates/constraints/yml/templates/csharp/link-unfurling/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -20,7 +20,7 @@ provision:
2020

2121
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
2222

23-
# Triggered when 'teamsfx deploy' is executed
23+
# Triggered when 'teamsapp deploy' is executed
2424
deploy:
2525
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2626
{{#azureAppServiceZipDeploy}} artifactFolder: bin/Release/{{TargetFramework}}/win-x86/publish, resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}} {{/azureAppServiceZipDeploy}}

templates/constraints/yml/templates/csharp/message-extension-copilot/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -20,7 +20,7 @@ provision:
2020

2121
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
2222

23-
# Triggered when 'teamsfx deploy' is executed
23+
# Triggered when 'teamsapp deploy' is executed
2424
deploy:
2525
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2626

templates/constraints/yml/templates/csharp/message-extension-search/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -19,7 +19,7 @@ provision:
1919
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
2020

2121
{{#teamsAppExtendToM365}} {{/teamsAppExtendToM365}}
22-
# Triggered when 'teamsfx deploy' is executed
22+
# Triggered when 'teamsapp deploy' is executed
2323
deploy:
2424
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2525
{{#azureAppServiceZipDeploy}} artifactFolder: bin/Release/{{TargetFramework}}/win-x86/publish, resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}} {{/azureAppServiceZipDeploy}}

templates/constraints/yml/templates/csharp/message-extension/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -15,7 +15,7 @@ provision:
1515
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1616
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1717

18-
# Triggered when 'teamsfx deploy' is executed
18+
# Triggered when 'teamsapp deploy' is executed
1919
deploy:
2020
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2121
{{#azureAppServiceZipDeploy}} artifactFolder: bin/Release/{{TargetFramework}}/win-x86/publish, resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}} {{/azureAppServiceZipDeploy}}

templates/constraints/yml/templates/csharp/non-sso-tab/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -13,7 +13,7 @@ provision:
1313
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1414
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1515

16-
# Triggered when 'teamsfx deploy' is executed
16+
# Triggered when 'teamsapp deploy' is executed
1717
deploy:
1818
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
1919
{{#azureAppServiceZipDeploy}} artifactFolder: bin/Release/{{TargetFramework}}/win-x86/publish, resourceId: ${{TAB_AZURE_APP_SERVICE_RESOURCE_ID}} {{/azureAppServiceZipDeploy}}

templates/constraints/yml/templates/csharp/notification-http-timer-trigger/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -15,7 +15,7 @@ provision:
1515
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1616
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1717

18-
# Triggered when 'teamsfx deploy' is executed
18+
# Triggered when 'teamsapp deploy' is executed
1919
deploy:
2020
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2121
{{#azureFunctionsZipDeploy}}

templates/constraints/yml/templates/csharp/notification-http-trigger/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -15,7 +15,7 @@ provision:
1515
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1616
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1717

18-
# Triggered when 'teamsfx deploy' is executed
18+
# Triggered when 'teamsapp deploy' is executed
1919
deploy:
2020
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2121
{{#azureFunctionsZipDeploy}}

templates/constraints/yml/templates/csharp/notification-timer-trigger/teamsapp.yml.tpl.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environmentFolderPath: ./env
44

5-
# Triggered when 'teamsfx provision' is executed
5+
# Triggered when 'teamsapp provision' is executed
66
provision:
77
{{#teamsAppCreate}} {{/teamsAppCreate}}
88

@@ -15,7 +15,7 @@ provision:
1515
{{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}}
1616
{{#teamsAppUpdate}} {{/teamsAppUpdate}}
1717

18-
# Triggered when 'teamsfx deploy' is executed
18+
# Triggered when 'teamsapp deploy' is executed
1919
deploy:
2020
{{#cliRunDotnetCommand}} publish {{/cliRunDotnetCommand}}
2121
{{#azureFunctionsZipDeploy}}

0 commit comments

Comments
 (0)