Skip to content

Commit 1416945

Browse files
agviegasclaude
andcommitted
feat(cli)!: default to production platform (login --api-url)
BREAKING: `thatopen login` now defaults --api-url to https://platform.thatopen.com (was dev). Pass --api-url https://dev.platform.thatopen.com to target dev. Without this, tokens minted on the prod dashboard failed to validate against the dev default — the exact failure a public user following docs/ai-quickstart.md hits. Docs (login.md, serve.md) repointed to the prod dashboard. Release 0.3.3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4f8b97d commit 1416945

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/cli/login.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "Authenticate with the ThatOpen platform by validating an access to
77
Validates an access token against the platform API and saves the credentials. Run this once globally before using any other command, or per-project with `--local`.
88

99
To get a token:
10-
1. Go to [https://dev.platform.thatopen.com](https://dev.platform.thatopen.com)
10+
1. Go to [https://platform.thatopen.com](https://platform.thatopen.com)
1111
2. In the header, click **Data**
1212
3. Find the **Tokens** card and create a new token
1313
4. Enable the permissions: **Apps**, **Components**, and **Storage**
@@ -21,7 +21,7 @@ thatopen login --token <token> [flags]
2121
**Flags:**
2222

2323
- `--token <token>` — Access token from the dashboard. Required.
24-
- `--api-url <url>` — Platform API URL. Default: `https://dev.platform.thatopen.com`.
24+
- `--api-url <url>` — Platform API URL. Default: `https://platform.thatopen.com` (production). Pass `https://dev.platform.thatopen.com` to target the dev environment.
2525
- `--local` — Save credentials to `.thatopen` in the current directory instead of the global config. Use this inside a project to override the global token for that project only.
2626

2727
**Examples:**

docs/cli/paths.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"path": "docs/cli/serve.md",
24-
"description": "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on dev.platform.thatopen.com, click the Local App icon, then Get Started."
24+
"description": "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on platform.thatopen.com, click the Local App icon, then Get Started."
2525
},
2626
{
2727
"path": "docs/cli/swap.md",

docs/cli/serve.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on dev.platform.thatopen.com, click the Local App icon, then Get Started."
2+
description: "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on platform.thatopen.com, click the Local App icon, then Get Started."
33
---
44

55
## thatopen serve
@@ -31,13 +31,13 @@ thatopen serve --port 4321
3131

3232
**Connecting the platform to your local server:**
3333

34-
1. Go to [https://dev.platform.thatopen.com](https://dev.platform.thatopen.com) and open a project (create one first if needed).
34+
1. Go to [https://platform.thatopen.com](https://platform.thatopen.com) and open a project (create one first if needed).
3535
2. In the top right corner, click the **Local App** icon.
3636
3. Click **Get Started**.
3737

3838
The platform loads the bundle from port 4000 and renders the app inside the project context, with full access to its models, data, and users. The dev server must be running before opening this URL — if nothing is served on port 4000, the platform will fail to load the app.
3939

4040
The resulting URL follows this pattern:
4141
```
42-
https://dev.platform.thatopen.com/dashboard/projects/{projectId}/apps/local-app
42+
https://platform.thatopen.com/dashboard/projects/{projectId}/apps/local-app
4343
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"access": "public"
1616
},
1717
"private": false,
18-
"version": "0.3.2",
18+
"version": "0.3.3",
1919
"main": "dist/index.cjs.js",
2020
"module": "dist/index.es.js",
2121
"types": "dist/index.d.ts",

src/cli/commands/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const loginCommand = new Command('login')
88
.option('--token <token>', 'Access token from the dashboard')
99
.option(
1010
'--api-url <url>',
11-
'API URL',
12-
'https://dev.platform.thatopen.com',
11+
'API URL (defaults to production; pass https://dev.platform.thatopen.com for the dev environment)',
12+
'https://platform.thatopen.com',
1313
)
1414
.option(
1515
'--local',

0 commit comments

Comments
 (0)