📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).
Lists all Power Platform connections in the current environment using the Power Apps CLI.
Resolve the CLI first (see cli-binary.md): run as
$PA connection list(npx --no-install pa …), never a barepa. Onpower-apps-only projects, translate topower-apps list-connections.
pa connection list
If the CLI is not authenticated, it will open a browser for login automatically. Complete the login and retry.
Other failures:
power.config.json, then retry once.Show the connection list to the user. The Connection ID is what goes into -c <connection-id> when adding a data source.
If the needed connector is missing:
power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections → + New connection
/list-connections to get the new connection ID