mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Merge pull request #3006 from akhilmhdh/feat/region-flag
Added region flag for eu in cli
This commit is contained in:
@@ -315,7 +315,11 @@ var loginCmd = &cobra.Command{
|
|||||||
credential, err := authStrategies[strategy](cmd, infisicalClient)
|
credential, err := authStrategies[strategy](cmd, infisicalClient)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.HandleError(fmt.Errorf("unable to authenticate with %s [err=%v]", formatAuthMethod(loginMethod), err))
|
euErrorMessage := ""
|
||||||
|
if strings.HasPrefix(config.INFISICAL_URL, util.INFISICAL_DEFAULT_US_URL) {
|
||||||
|
euErrorMessage = fmt.Sprintf("\nIf you are using the Infisical Cloud Europe Region, please switch to it by using the \"--domain %s\" flag.", util.INFISICAL_DEFAULT_EU_URL)
|
||||||
|
}
|
||||||
|
util.HandleError(fmt.Errorf("unable to authenticate with %s [err=%v].%s", formatAuthMethod(loginMethod), err, euErrorMessage))
|
||||||
}
|
}
|
||||||
|
|
||||||
if plainOutput {
|
if plainOutput {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ description: "Infisical CLI command overview"
|
|||||||
| `init` | Used to link a local project to the platform. |
|
| `init` | Used to link a local project to the platform. |
|
||||||
| `run` | Used to inject envars from the platform into an application process. |
|
| `run` | Used to inject envars from the platform into an application process. |
|
||||||
| `vault` | Used to manage where your login credentials are stored at rest |
|
| `vault` | Used to manage where your login credentials are stored at rest |
|
||||||
|
|
||||||
## Global options
|
## Global options
|
||||||
|
|
||||||
| Option | Description |
|
| Option | Description |
|
||||||
|
|||||||
Reference in New Issue
Block a user