From 48bf2255605f43d6d7b49c30b97b1bb699c43f63 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 16 Dec 2023 09:13:02 -0800 Subject: [PATCH] Update API credentials URL in `credentials init` message The `arduino-cloud-cli credentials init` command prints a helpful message providing the user with guidance about how to obtain the Arduino Cloud API credentials. The URL of the Arduino Cloud API Keys page changed during a recent restructuring of the site. A redirect was not set up from the old URL to the new URL so the previous URL in the message now only redirects to the Arduino Cloud home page: > To obtain your API credentials visit https://create.arduino.cc/iot/integrations Although the incorrect/missing redirect should be fixed, it is still best to avoid a reliance on such redirects since they tend to be ephemeral. The URL is hereby updated to the modern URL of the API Keys page. --- cli/credentials/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/credentials/init.go b/cli/credentials/init.go index fe70a882..f93ce3b5 100644 --- a/cli/credentials/init.go +++ b/cli/credentials/init.go @@ -99,7 +99,7 @@ func runInitCommand(flags *initFlags) error { } // Take needed credentials starting an interactive mode - feedback.Print("To obtain your API credentials visit https://create.arduino.cc/iot/integrations") + feedback.Print("To obtain your API credentials visit https://app.arduino.cc/api-keys") id, key, org, err := paramsPrompt() if err != nil { return fmt.Errorf("cannot take credentials params: %w", err)