Point prb auth login at eu.probo.com and us.probo.com

The CLI still defaulted to *.console.getprobo.com for region
selection, examples, and the non-interactive fallback host. Align
those with the current SaaS hostnames so new logins store the right
config keys.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-07-02 18:25:35 +02:00
parent a42df02829
commit be33f72f7d
2 changed files with 11 additions and 7 deletions

View File

@@ -4,6 +4,10 @@ All notable changes to the `prb` CLI will be documented in this file.
## Unreleased ## Unreleased
### Changed
- `prb auth login` defaults and region prompts now use `eu.probo.com` and `us.probo.com` instead of `*.console.getprobo.com`
## [0.198.0] - 2026-06-30 ## [0.198.0] - 2026-06-30
### Removed ### Removed

View File

@@ -34,8 +34,8 @@ import (
) )
const ( const (
hostEU = "eu.console.getprobo.com" hostEU = "eu.probo.com"
hostUS = "us.console.getprobo.com" hostUS = "us.probo.com"
regionEU = "eu" regionEU = "eu"
regionUS = "us" regionUS = "us"
@@ -84,10 +84,10 @@ func NewCmdLogin(f *cmdutil.Factory) *cobra.Command {
prb auth login prb auth login
# Login to Probo EU # Login to Probo EU
prb auth login --hostname eu.console.getprobo.com prb auth login --hostname eu.probo.com
# Login to Probo US # Login to Probo US
prb auth login --hostname us.console.getprobo.com prb auth login --hostname us.probo.com
# Login to a self-hosted instance # Login to a self-hosted instance
prb auth login --hostname probo.example.com`, prb auth login --hostname probo.example.com`,
@@ -98,8 +98,8 @@ func NewCmdLogin(f *cmdutil.Factory) *cobra.Command {
err := huh.NewSelect[string](). err := huh.NewSelect[string]().
Title("Where is your Probo account hosted?"). Title("Where is your Probo account hosted?").
Options( Options(
huh.NewOption("Probo EU (eu.console.getprobo.com)", regionEU), huh.NewOption("Probo EU (eu.probo.com)", regionEU),
huh.NewOption("Probo US (us.console.getprobo.com)", regionUS), huh.NewOption("Probo US (us.probo.com)", regionUS),
huh.NewOption("Other (custom domain)", regionCustom), huh.NewOption("Other (custom domain)", regionCustom),
). ).
Value(&region). Value(&region).
@@ -245,7 +245,7 @@ func NewCmdLogin(f *cmdutil.Factory) *cobra.Command {
&flagHost, &flagHost,
"hostname", "hostname",
"", "",
"Probo hostname (e.g. eu.console.getprobo.com, us.console.getprobo.com)", "Probo hostname (e.g. eu.probo.com, us.probo.com)",
) )
cmd.Flags().StringVar( cmd.Flags().StringVar(
&flagOrganization, &flagOrganization,