Skip to content

CLI

The XrmGhost CLI (xg) is the primary developer interface for the XrmGhost ecosystem. It runs on Windows, macOS, and Linux and gives you terminal access to the main workflows: executing Dataverse plugins out-of-process, managing environment configurations, handling licensing, and diagnosing problems.

The CLI is aimed at developers who:

  • write and test Dataverse plugins locally before deploying to a Power Platform environment
  • need scriptable, repeatable runs as part of a CI workflow
  • prefer an AI-agent-first workflow or a terminal-first experience over a GUI
Command groupPurpose
runExecute a Dataverse plugin using a scenario file, with the Framework Host running in the background
generate-scenarioCreate a template scenario JSON for a given plugin, ready to pass to run
envAdd, edit, delete, list, activate, and switch Dataverse environment configurations
licenseActivate your license, view its status and tier, and retrieve your machine’s platform ID
doctorRun environment and configuration health checks to diagnose connectivity or setup issues
privacyDisplay information about telemetry data collection and local storage
setup hostInstall or update the Framework Host component used by run

For the full flag-level detail of every command and sub-command, see the CLI Reference section — generated automatically from the CLI’s --help output.

PageWhat you will find
This pageOverview, orientation, and navigation
Getting StartedInstallation, verification, and your first command
Reference sectionCLI explanation and flags details
  • New to XrmGhost? Start with Getting Started to install the CLI and run your first plugin scenario.
  • Looking for a specific flag or option? Go to CLI Reference for the generated per-command reference.
  • Found a bug or missing capability? Use Community to report it or discuss it.
  • Want to contribute? See Contributing for guidelines on updating narrative docs or the generation pipeline.