Skip to content

Feature: Add environment discovery command similar to pac env list #104

@zdeneksrejber

Description

@zdeneksrejber

Description

Add a command to list available Dataverse environments that the user has access to, similar to the pac env list functionality from the Power Platform CLI.

Motivation

This would help users discover available environments before creating profiles. Currently, users need to know or look up the exact environment URL before running txc config profile create --url <URL>. Having a discovery command would streamline the profile creation workflow.

Proposed Solution

Add a new command like:

txc config env list

or

txc env list

This should display available environments with details like:

  • Environment name
  • Environment URL
  • Environment type (Production/Sandbox)
  • Organization ID
  • Tenant

Use Case

  1. User runs: txc config env list (or similar)
  2. Command returns list of environments they have access to
  3. User copies the URL they want
  4. User runs: txc config profile create --url <URL>

This would complete the profile creation workflow without requiring external tools or manual lookup.

Additional Context

Currently, users must already know the environment URL to create a profile. A discovery command would make the setup process more user-friendly and discovery-based rather than requiring upfront knowledge of environment URLs. As a workaround Im using prompt use pac to list environments and then using txc connect to devbox xxxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions