You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add crayon local run-dev for testing cloud features locally
Starts the auth-server as a background process alongside the dev UI so
cloud features (cron scheduling, webhook tokens, Schedule/Trigger tabs)
work against localhost. Only available in the monorepo — the command is
conditionally registered based on auth-server directory existence.
Changes:
- New `local run-dev` CLI command (guarded to monorepo only)
- startLocalAuthServer() spawns `next dev` on port 3000, waits for
health, sets CRAYON_SERVER_URL + CRAYON_TOKEN, registers cleanup
- Widen isCloud detection to include CRAYON_SERVER_URL (not just FLY_APP_NAME)
- TriggerSection fetches appUrl from /api/claude-command instead of
hardcoding hostname check
- Updated DEVELOPMENT.md with local dev instructions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
> **Note:** This outputs the `claude --plugin-dir <path>` command you need to run Claude Code with the local plugin.
14
13
15
-
## Testing Local Changes Against Cloud
14
+
## Local Development
15
+
16
+
`crayon local run-dev` starts the auth-server alongside the dev UI so you can test cloud features (cron scheduling, webhook tokens) locally. This command is only available when running from the monorepo.
17
+
18
+
### Prerequisites
19
+
20
+
1.**Auth-server `.env.local`** must exist at `packages/auth-server/.env.local` with the required env vars (see `packages/auth-server/README.md`). It should point to the same `DATABASE_URL` as the deployed auth-server so your CLI token works. Contents can be found in 1password "Crayon auth-server secrets".
21
+
22
+
2.**CLI login** — run `crayon login` once so `~/.crayon/credentials` has a valid token.
23
+
24
+
### Usage
25
+
26
+
```bash
27
+
npx tsx /path/to/crayon/packages/core/src/cli/index.ts local run-dev
28
+
```
29
+
30
+
This will:
31
+
- Start the auth-server on `http://localhost:3000`
32
+
- Set `CRAYON_SERVER_URL` and `CRAYON_TOKEN` automatically
33
+
- Launch the dev UI with cloud features enabled (webhook section, cron scheduling)
34
+
- Open the browser and start Claude Code
35
+
36
+
37
+
38
+
## Testing Local Changes On Cloud
16
39
17
40
To test local core changes on a cloud dev machine:
0 commit comments