Skip to content

Commit 115fd53

Browse files
fix(cli): update default API base URL from instant.dev to api.instanode.dev
instant.dev was the retired pre-rebrand domain. Every CLI command (db new, cache new, login, resources, etc.) was sending requests to instant.dev which returns 404 for all API paths. Change: APIBaseURL default "https://instant.dev" → "https://api.instanode.dev" Also update all help text, Long descriptions, and comments that still referenced instant.dev → instanode.dev: - cmd/root.go: Short, Long, login example line, APIBaseURL comment - cmd/login.go: Short (login), Long (login + upgrade) - cmd/discover.go: Long - internal/cliconfig/cliconfig.go: APIBaseURL field comment The INSTANT_API_URL env var and ~/.instant-config api_base_url overrides continue to work unchanged (they already take priority over the default). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a4590ba commit 115fd53

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

cmd/discover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
var resourcesCmd = &cobra.Command{
1616
Use: "resources",
1717
Short: "List your provisioned resources",
18-
Long: `List all resources associated with your instant.dev account.
18+
Long: `List all resources associated with your instanode.dev account.
1919
2020
Requires login. Run 'instant login' first if you haven't already.
2121

cmd/login.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const pollTimeout = 10 * time.Minute
2424

2525
var loginCmd = &cobra.Command{
2626
Use: "login",
27-
Short: "Log in to instant.dev and save credentials locally",
28-
Long: `Open a browser to authenticate with instant.dev.
27+
Short: "Log in to instanode.dev and save credentials locally",
28+
Long: `Open a browser to authenticate with instanode.dev.
2929
3030
The CLI creates a one-time login session, opens your browser,
3131
and waits while you sign in (GitHub OAuth or magic link).
@@ -42,7 +42,7 @@ your tier — or the CLI will detect it automatically on the next API call.
4242
var upgradeCmd = &cobra.Command{
4343
Use: "upgrade",
4444
Short: "Open the upgrade page to increase your plan limits",
45-
Long: `Open the instant.dev upgrade page in your browser.
45+
Long: `Open the instanode.dev upgrade page in your browser.
4646
4747
Your current anonymous tokens are passed so the upgrade page can
4848
show exactly which resources you have running and pre-fill your plan.

cmd/root.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"github.com/instant-dev/cli/internal/cliconfig"
1111
)
1212

13-
// APIBaseURL is the instant.dev API base URL.
13+
// APIBaseURL is the instanode.dev API base URL.
1414
// Resolved at init from (in priority order):
1515
// 1. INSTANT_API_URL env var
1616
// 2. ~/.instant-config api_base_url
17-
// 3. Default: https://instant.dev
18-
var APIBaseURL = "https://instant.dev"
17+
// 3. Default: https://api.instanode.dev
18+
var APIBaseURL = "https://api.instanode.dev"
1919

2020
// authTransport adds the Authorization header to every request when the user
2121
// is logged in. Anonymous requests are sent without a header.
@@ -38,8 +38,8 @@ var HTTPClient = &http.Client{Timeout: 10 * time.Second}
3838

3939
var rootCmd = &cobra.Command{
4040
Use: "instant",
41-
Short: "instant.dev CLI — zero-friction developer infrastructure",
42-
Long: `instant.dev CLI
41+
Short: "instanode.dev CLI — zero-friction developer infrastructure",
42+
Long: `instanode.dev CLI
4343
4444
Provision databases, caches, queues, and document stores with a single command.
4545
No account required to get started. Log in with 'instant login' to persist resources.
@@ -53,7 +53,7 @@ Examples:
5353
instant queue new --name app-jobs Provision a NATS JetStream queue
5454
instant resources List your provisioned resources (requires login)
5555
instant status Show locally tracked resources
56-
instant login Log in to your instant.dev account
56+
instant login Log in to your instanode.dev account
5757
instant logout Remove locally saved credentials
5858
instant whoami Show current account
5959
instant upgrade Open the upgrade page

internal/cliconfig/cliconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Config struct {
3333
// TeamName is the team name, if the user belongs to a team.
3434
TeamName string `json:"team_name,omitempty"`
3535

36-
// APIBaseURL overrides the default https://instant.dev endpoint.
36+
// APIBaseURL overrides the default https://api.instanode.dev endpoint.
3737
// Populated when INSTANT_API_URL env var was set at login time.
3838
APIBaseURL string `json:"api_base_url,omitempty"`
3939

0 commit comments

Comments
 (0)