This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Tools and utilities for copilot management
| Command | Description |
|---|---|
| pac copilot create | Creates a new copilot using an existing template file as the reference. |
| pac copilot extract-template | Extracts a template file from an existing copilot in an environment. |
| pac copilot extract-translation | Extracts file containing localized content for one or more bots. |
| pac copilot list | List of copilots in the current or target Dataverse environment. |
| pac copilot mcp | Information about local MCP (Model Context Protocol) server. |
| pac copilot merge-translation | Merge files containing localized content for one or more bots. |
| pac copilot model list | AI Builder models in the current environment. |
| pac copilot model predict | Sends text or prompt to AI Model |
| pac copilot model prepare-fetch | Takes the FetchXML file from the AI Large Language Model (LLM) and prepares it for execution against the current environment. |
| pac copilot publish | Publish a Custom Copilot |
| pac copilot status | Poll the deployment status of a specified copilot in the current or target Dataverse environment. |
Creates a new copilot using an existing template file as the reference.
--displayNameThe display name of the new copilot
--schemaNameThe schema name (unique name) of the new copilot.
--solution-sName of the solution.
--templateFileNameSource yaml file containing the copilot template that was extracted using the extract-template command.
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Extracts a template file from an existing copilot in an environment.
This command extracts a template file from an existing copilot in an environment.
pac copilot extract-template ` --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118 ` --bot 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e ` --templateFileName NewTestCopilot.yamlThe command returns output like the following for a copilot using the English and German languages:
Connected as user@contoso.orgLoaded 34 components for bot 'New Test Copilot ' with id 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e. Primary language: English, supported languages: GermanNew Test Copilot -> C:\Users\user\NewTestCopilot.yaml--bot-idThe Copilot ID or schema name (unique name found in Bot Details or file name in solution explorer).
--templateFileNameLocation of the yaml file to write the copilot template to.
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--overwrite-oAllow overwrite of the output data file if it already exists.
This parameter requires no value. It's a switch.
--templateNameTemplate name or 'kickStartTemplate' if name is not specified.
--templateVersionTemplate version in X.X.X format or 1.0.0 if version is not specified.
Extracts file containing localized content for one or more bots.
This command extracts a file containing localized content for one or more copilots.
pac copilot extract-translation ` --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118 ` --bot 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e ` --all ` --outdir . ` --format jsonThe command returns output like the following:
Connected as user@contoso.orgLoaded 32 components for bot 'New Test Copilot' with id 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e. Primary language: English, supported languages: German--all-aWrite localization files for all supported languages. By default, only the primary language is written.
This parameter requires no value. It's a switch.
--bot-idThe Copilot ID or schema name (unique name found in Bot Details or file name in solution explorer).
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--formatThe file format in which to write localized files, either 'resx' or 'json'. The default is 'resx'.
--outdirThe output directory to write to.
--overwrite-oAllow overwrite of the output data file if it already exists.
This parameter requires no value. It's a switch.
--sourcedir-srcSource solution directory. When specified, will ignore the connected environment when looking for bots and instead look for content in the solution folder.
List of copilots in the current or target Dataverse environment.
This command lists all copilots in the current or target Dataverse environment.
pac copilot list --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118The command returns output like the following:
Name Bot ID Component State Is Managed Solution ID Status Code State CodeAsk Me Anything Copilot 584e012c-dc95-46d6-af5a-1263b6a44342 Published Unmanaged 285af946-6383-49a0-8615-4e2afafeaf38 Active ProvisionedNew Test Copilot 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e Published Unmanaged 285af946-6383-49a0-8615-4e2afafeaf38 Active Provisioned--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Information about local MCP (Model Context Protocol) server.
Merge files containing localized content for one or more bots.
This command merges files containing localized content for one or more copilots.
pac copilot merge-translation ` --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118 ` --file ms_store_newTestCopilot.de-DE.json ` --solution SolutionNameThe command returns output like the following when updating the German language:
Connected as user@contoso.orgLoading language German into bot 'ms_store_newTestCopilot' (New Test Copilot) from file 'C:\Users\user\ms_store_newTestCopilot'. 0 key(s) were missing, 0 value(s) were not used. Use the --verbose switch to get more details.Updated 16 out of 16 components.Learn about how to manage errors from the merge-translation command
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--file-fThe list of files that contain translations. Glob patterns are supported.
--solution-sName of the solution.
--sourcedir-srcSource solution directory. When specified, will ignore the connected environment when looking for bots and instead look for content in the solution folder.
--verboseOutput more diagnostic information during data import/export
This parameter requires no value. It's a switch.
--whatifDoes not execute the command, but outputs the details of what would happen.
This parameter requires no value. It's a switch.
Based on the example above, if one error exists in the file used to update the copilot, the output looks like:
Connected as user@contoso.orgLoading language German into bot 'ms_store_newTestCopilot' (New Test Copilot) from file 'C:\Users\user\ms_store_newTestCopilot'. 1 key(s) were missing, 1 value(s) were not used. Use the --verbose switch to get more details.Updated 16 out of 16 components.The--verbose flag adds details about the error:
Connected as user@contoso.orgMissing translation key: 'dialog(ms_store_newTestCopilot.topic.Lesson2)'.'trigger(main)'.'action(LbWwpD)'.Entity.Definition.'closedListItem(Redmond)'.DisplayName.Unused translation: 'dialog(ms_store_newTestCopilot.topic.Lesson2)'.'trigger(main)'.'action(LbWwpD)'.Entity.Definition.'closedListItem(Redmont)'.DisplayName, value: RedmondLoading language German into bot 'ms_store_newTestCopilot' (New Test Copilot) from file 'C:\Users\user\ms_store_newTestCopilot'. 1 key(s) were missing, 1 value(s) were not used. Use the --verbose switch to get more details.Updated 16 out of 16 components.AI Builder models in the current environment.
This command lists all AI Builder models.
pac copilot model list --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118The command returns output like the following:
Id State Name32a9e265-1149-4155-af54-d2856d2b83f5 Active Document Processing 2023/09/20, 12:21:402bcd7b94-50bc-4767-af4a-367c63fb5487 Inactive AI Classify4e72b59a-17d6-451e-8657-89fbdec56d7a Inactive AI Extract572f57a7-7a8f-49fc-adb4-331e02c509a6 Inactive AI Replyb9b636cf-9748-47a7-b617-6df5f00f5151 Inactive AI Sentimentc076eac8-f218-4feb-8ad1-7ee4fb039419 Inactive AI Summarizea0440df3-2656-e911-8194-000d3a6cd5a5 Inactive BusinessCard model62d1e848-5ca7-490a-94bf-79baabe85ef4 Inactive CategoryClassification model4da7ec17-5c26-4fd2-9ddb-be4f7eda21a9 Inactive DataGenieEmailAddressValidation51f4da11-5702-401d-b53a-9638744e8ac9 Inactive Document Layout Analysis Modeld1bb8d57-24ab-3b36-9592-bd792e153b79 Inactive DVCopilotQueryModel3fbd4e5c-32bc-40fc-acce-59c2821cf113 Inactive Empty Dynamic Prompt8c281981-c5d6-484f-bac7-4924ddd0b8ae Inactive EntityExtraction modela1afa5d4-7a44-4c31-9cd2-e852a78431fa Inactive GptPromptEngineering model2c444168-f8b1-4c6a-9313-2d9c03be6fea Inactive Id Scanning Model77365cfa-7021-4cb7-a9b2-dc9823cde772 Inactive ImageDescription modelaef1bdd2-2a74-4f74-b4eb-9dfa22e35ded Inactive Invoice Model5ed4d0fd-e9d4-4026-b09b-71f83ea90c60 Inactive Invoice Processing Modelc8425db7-c5a7-4226-b38e-c93a044c0fe1 Inactive KeyPhraseExtraction model17a6f893-5b0b-4867-8fac-fb2eda9080b2 Inactive LanguageDetection model046ab801-2756-e911-8194-000d3a6cd5a5 Inactive ObjectDetectionProposal model892d3698-ba03-3d15-8e9e-843ca4ac5e7d Inactive PowerAppsAppCopilotModelbaa44529-bebe-49e6-837a-80bee63b0d2c Inactive Receipt Scanning Modelf1c549c2-a97e-47a5-b612-c5c2bab0f163 Inactive SentimentAnalysis model7f8a7856-003a-3662-9871-0000d7674433 Inactive SimsModel86419a67-205a-454f-b6fc-601394f2786d Inactive TextRecognition model6225038a-8b5a-4913-bfd2-d8236f4102ba Inactive TextTranslation model02e1fca3-232a-4f58-8c93-bdd8c9cd6de9 Inactive TextTranslationInternal model--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Sends text or prompt to AI Model
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--model-id-idAI Builder model Id
--model-name-nFull or partial AI Model name
--prompt-pPrompt to send to AI Model
--text-tText to send to AI Model
Takes the FetchXML file from the AI Large Language Model (LLM) and prepares it for execution against the current environment.
--inputFile-iInput FetchXML file that usually comes from AI LLM.
--outputFile-oOutput FetchXML file that is ready to execute against the current environment.
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Publish a Custom Copilot
--bot-idThe Copilot ID or schema name (unique name found in Bot Details or file name in solution explorer).
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Poll the deployment status of a specified copilot in the current or target Dataverse environment.
This command polls the deployment status of a specified copilot in the current or target Dataverse environment.
pac copilot status ` --environment 2e250e7a-5607-4fea-aa4e-1aeb7bf79118 ` --bot-id 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3eThe command returns output like the following:
Connected as user@contoso.orgConnected to... Contoso OrganizationVirtual Agent New Bot German with ID 9ee3f7aa-ab79-4cf6-a726-d85c8c18cc3e has been provisioned.--bot-id-idThe ID of a copilot (Chatbot).
--environment-envSpecifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?