Skip to content

Support selecting the active AiiDA profile via an environment variable #7364

@hujay2019

Description

@hujay2019

Is your feature request related to a problem? Please describe

Working with different AiiDA profiles in multiple terminals is inconvenient, because every verdi command needs to specify the profile explicitly with -p/--profile.

Describe the solution you'd like

Add support for selecting the active profile through an environment variable, for example AIIDA_PROFILE.

This would allow each terminal to set the profile once:

# Terminal 1
export AIIDA_PROFILE=project_a
verdi status

# Terminal 2
export AIIDA_PROFILE=project_b
verdi status

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions