Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Run msgraph cli in separate security contexts in parallel #513

@cveld

Description

@cveld

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions