Skip to main content
rule official · GitHub

pcf-tooling — GitHub Copilot rule: Power Platform CLI for PCF

A rule that tells Copilot to use Microsoft Power Platform CLI for building, debugging and deploying Power Apps code components.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/instructions/pcf-tooling.instructions.md
Open on GitHub

What pcf-tooling does

The rule applies to *.ts, *.tsx, *.js, *.json, *.xml, *.pcfproj and *.csproj files. Inside is a short instruction: create, debug and deploy code components with Microsoft Power Platform CLI instead of doing it by hand. Two links follow — one for installing the CLI, one for the Power Apps component framework training path.

The catch is stated up front: deploying a code component through the CLI requires a Microsoft Dataverse environment with system administrator or system customizer privileges. No such environment, no deploy. Worth checking your access before wiring anything up.

The rule itself installs nothing and runs nothing. It is guidance text for the agent. You still install Microsoft Power Platform CLI yourself from the linked docs.

What it helps with

  • scaffold a Power Apps code component without hand-rolling templates
  • debug a component before pushing it to an environment
  • deploy a code component to Dataverse from the CLI
  • tell the agent which files belong to a PCF project
  • check privileges before a deploy

Example prompts for the agent

  • Help me create my first code component with Microsoft Power Platform CLI
  • How do I deploy this component to Dataverse?
  • Check that the project has everything needed to build the PCF component

How to install pcf-tooling

Manually: put the files in place

.github/instructions/pcf-tooling.instructions.md

The applyTo field sets which files it applies to

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about pcf-tooling

How do I install pcf-tooling in GitHub Copilot?

Copy the rule file to .github/instructions/pcf-tooling.instructions.md in your repository. Copilot picks it up for files matching the applyTo pattern.

What does pcf-tooling do?

It instructs the agent to work with Power Apps code components through Microsoft Power Platform CLI: create, debug, deploy. It also links to the CLI install docs.

What do I need to deploy a code component?

A Microsoft Dataverse environment plus system administrator or system customizer privileges. Without them the CLI deploy will not go through.

Source text

pcf-tooling.instructions.md · MIT
---
description: 'Get Microsoft Power Platform CLI tooling for Power Apps Component Framework'
applyTo: '**/*.{ts,tsx,js,json,xml,pcfproj,csproj}'
---

# Get Tooling for Power Apps Component Framework

Use Microsoft Power Platform CLI (command-line interface) to create, debug, and deploy code components using Power Apps component framework. Microsoft Power Platform CLI enables developers to create code components quickly. In the future, it will be expanded to include support for additional development and application life cycle management (ALM) experiences.

More information: [Install Microsoft Power Platform CLI](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/powerapps-cli)

> **Important**: To deploy your code component using Microsoft Power Platform CLI, you must have a Microsoft Dataverse environment with system administrator or system customizer privileges.

## See Also

- [Create your first code component](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/implementing-controls-using-typescript)
- [Learn Power Apps component framework](https://learn.microsoft.com/en-us/training/paths/use-power-apps-component-framework)

© github · MIT · github/awesome-copilot

Similar IDE rules

All IDE rules for Agent setup: memory, context, orchestration →

From the same set732

The whole set →
power-bi-devops-alm-best-practices A GitHub Copilot rule that steers the agent through Power BI version control, CI/CD pipelines and multi-stage deployment. ★ 40,418repo stars power-bi-custom-visuals-development A GitHub Copilot rule that gives the agent patterns for building Power BI custom visuals with React, D3.js and TypeScript. ★ 40,418repo stars playwright-typescript This rule tells Copilot how to write Playwright tests: role-based locators, auto-retrying assertions, one file per feature. Useful when an agent writes the tests. ★ 40,418repo stars php-symfony This rule steers Copilot toward official Symfony practices: project layout, dependency injection, Doctrine, Twig and testing. Useful when you keep re-explaining conventions in chat. ★ 40,418repo stars pcf-manifest-schema A rule that feeds Copilot the structure of ControlManifest.Input.xml: which elements and attributes exist and what they do. Useful when editing a PCF component manifest. ★ 40,418repo stars pcf-events A rule that tells Copilot how to declare and handle custom events in Power Apps Component Framework components. ★ 40,418repo stars pcf-code-components A rule that teaches Copilot how Power Apps code components are built: manifest, TypeScript implementation, resources. Useful when editing ControlManifest.Input.xml or index.ts. ★ 40,418repo stars oop-design-patterns A GitHub Copilot rule that steers code generation and refactoring toward GoF design patterns and SOLID principles in object-oriented code. ★ 40,418repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor