Code Guidelines Help

Profile Command

Command to manage the locale authentication profiles.

Sub-Commands

This table lists the ommands used in the DigitallPower CLI.

Command

Description

dgtp profile list

List all know local authentication profiles.

dgtp profile create <Name> <Connectionstring>

Create a new local authentication profiles.

dgtp profile create <Name> <Url> --msal

Create a new local authentication profiles using MSAL

dgtp profile delete <Name>

Delete given local authentication profiles.

dgtp profile select <Name>

Select given local authentication profiles.

dgtp profile purge

Managed authentication profiles.

Samples

Environment-Variable or Configfile based authentication

Alternatively, dgtp.power can specify the connection via environment variables or a configfile "dgtp.json", in the current working directory.

This is useful for scripting in build agents etc. where no connection string may be passed directly.

The following environment variables are taken into account:

Enviroment Variable

Alternative

Description

dgtp:xrm:connection

dgtp__xrm__connection

Connectionstring

dgtp:xrm:securityprotocol

dgtp__xrm__securityprotocol

Security protocoll (like Tls12)

dgtp:xrm:insecure

dgtp__xrm__insecure

Ignore certificate validation errors

The dgtp.json allows analogous the following format:

Security

Local connections are stored encrypted in the dotnet Isolated Storage of the dgtp.power application for the current user.

Under Windows the data is encrypted using ProtectedData, under Unix-like operating systems using ASP.NET DataProtectionProvider.

Last modified: 07 July 2025