diff --git a/internal/cmd/base/base.go b/internal/cmd/base/base.go index cff6fb1468..312ac31be4 100644 --- a/internal/cmd/base/base.go +++ b/internal/cmd/base/base.go @@ -270,6 +270,11 @@ func (c *Command) Client(opt ...Option) (*api.Client, error) { } } + // Turn off retries on the CLI + if os.Getenv(api.EnvBoundaryMaxRetries) == "" { + c.client.SetMaxRetries(0) + } + switch { case opts.withNoTokenValue: c.client.SetToken("")