Skip to content
flowon.com

Deploy & ALM

Install the Logic Fabric CLI

Install the Logic Fabric CLI as a .NET tool, connect it to a Dataverse environment, and check that it works.

The Logic Fabric CLI is a command-line tool named flowon-dynamics. You install it once on your machine, or at the start of every pipeline run, and then call its commands with a connection string for the environment you want to work with.

  • .NET 10 SDK on the machine or build agent (the CLI is installed as a .NET tool).
  • Access to the environment: a Dataverse user or application user that can export and import solutions and read and write the Logic Fabric project, typically one with the System Customizer or System Administrator security role. For pipelines, use an application user (app registration with a client secret or certificate) rather than a person’s account.
  • Logic Fabric installed in each environment you export from or import to.
  1. Install the tool:

    Terminal window
    dotnet tool install --global Flowon.Xrm.Tools.CommandLine
  2. Check that it runs:

    Terminal window
    flowon-dynamics --help
    flowon-dynamics --version

To update later:

Terminal window
dotnet tool update --global Flowon.Xrm.Tools.CommandLine

Every command that works with an environment takes --connectionstring (-c): a standard Dataverse connection string. For pipelines, use an app registration:

AuthType=ClientSecret;Url=https://contoso.crm.dynamics.com;ClientId=<app id>;ClientSecret=<secret>
Dynamics 365 CE on-premisesConnecting to Dynamics 365 CE on-premisesApplies to the other edition

The CLI works the same way against an on-premises organization. Use the connection string type that matches how your deployment signs users in, for example Active Directory:

AuthType=AD;Url=https://crm.contoso.local/Contoso;Domain=CONTOSO;Username=svc-deploy;Password=<password>

For an internet-facing deployment, use AuthType=IFD with the organization’s external address. Use a dedicated service account that has the Logic Fabric security roles in the target organization.

Keep connection strings in your pipeline’s secret store or an environment variable, never in source control:

Terminal window
export DEV_CONNECTION="AuthType=ClientSecret;Url=https://contoso-dev.crm.dynamics.com;ClientId=...;ClientSecret=..."
flowon-dynamics projects -c "$DEV_CONNECTION"

projects lists the Logic Fabric projects in the environment with their solutions. It’s a quick way to check the connection and to find the exact project name the other commands need.

  • Every command prints its outcome, for example Exported project 'Contoso Service' to './out/Contoso_Service.flop' in 42 seconds.
  • Problems the CLI can detect up front, such as an unreachable environment, a missing file or an unknown project, are reported before anything runs.
  • Failures show a short reason, not a stack trace. Run the command again with --log-level verbose for full details.
  • The exit code is 0 on success and 1 on failure.
--log-level Output
none (default) Errors only, plus the outcome line.
info Progress messages.
verbose Diagnostic details, including full error details.