mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-10 07:58:15 -05: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)
|
||||
|
||||
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 {
|
||||
|
||||
@@ -11,6 +11,7 @@ description: "Infisical CLI command overview"
|
||||
| `init` | Used to link a local project to the platform. |
|
||||
| `run` | Used to inject envars from the platform into an application process. |
|
||||
| `vault` | Used to manage where your login credentials are stored at rest |
|
||||
|
||||
## Global options
|
||||
|
||||
| Option | Description |
|
||||
|
||||
Reference in New Issue
Block a user