msgraph-cli icon indicating copy to clipboard operation
msgraph-cli copied to clipboard

Run msgraph cli in separate security contexts in parallel

Open cveld opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe the problem.

I want to run the microsoft graph cli in separate security contexts in parallel, e.g.

  1. My admin user
  2. An app registration I am debugging.

Currently when I have two shells open, the latest msgraph cli login is applied to both shells.

Describe the solution you'd like.

The az cli has an environment variable that configures the config directory: AZURE_CONFIG_DIR The microsoft graph cli could provide something comparable with e.g. MGC_CONFIG_DIR.

Additional context?

Files related: https://github.com/microsoftgraph/msgraph-cli-core/blob/main/src/Microsoft.Graph.Cli.Core/utils/Constants.cs https://github.com/microsoftgraph/msgraph-cli-core/blob/main/src/Microsoft.Graph.Cli.Core/IO/PathUtility.cs

cveld avatar Nov 21 '24 10:11 cveld