Skip to content

Commit aebc038

Browse files
committed
refactor(scripts): rename service commands to shorter aliases (up/down/ps)
1 parent 5d93eea commit aebc038

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

knowledge.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ bun dev # Starts db, studio, sdk, web, then CLI
7373
# Ctrl+C stops everything
7474

7575
# Or run services and CLI separately
76-
bun start-services # Start services in background, exits when ready
76+
bun up # Start services in background, exits when ready
7777
bun start-cli # Start CLI in foreground
78-
bun stop-services # Stop background services
79-
bun status-services # Check if services are running
78+
bun down # Stop background services
79+
bun ps # Check if services are running
8080
```
8181

8282
**Services started:**
@@ -95,7 +95,7 @@ NEXT_PUBLIC_WEB_PORT=3001
9595
NEXT_PUBLIC_CODEBUFF_APP_URL=http://localhost:3001
9696
```
9797

98-
The `stop-services` command is worktree-safe - it only kills services on the port configured for that worktree.
98+
The `bun down` command is worktree-safe - it only kills services on the port configured for that worktree.
9999

100100
## Package Management
101101

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
],
1717
"scripts": {
1818
"dev": "bun scripts/dev.ts",
19-
"start-services": "bun scripts/start-services.ts",
19+
"up": "bun scripts/start-services.ts",
2020
"start-cli": "bun --cwd cli dev",
2121
"start-db": "bun --cwd packages/internal db:start",
2222
"start-web": "bun start-db && bun --cwd web dev",
2323
"start-studio": "bun --cwd packages/internal db:studio",
24-
"stop-services": "bun scripts/stop-services.ts",
25-
"status-services": "bun scripts/status-services.ts",
24+
"down": "bun scripts/stop-services.ts",
25+
"ps": "bun scripts/status-services.ts",
2626
"format": "prettier --write \"**/*.{ts,tsx,json,md}\"",
2727
"release:cli": "bun run --cwd=cli release",
2828
"release:sdk": "bun run --cwd=sdk release",

scripts/start-services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async function main(): Promise<void> {
265265

266266
console.log('')
267267
console.log(` View logs: tail -f ${join(LOG_DIR, 'web.log')}`)
268-
console.log(` Stop with: bun stop-services`)
268+
console.log(` Stop with: bun down`)
269269
console.log('')
270270
console.log('Now run: bun start-cli')
271271
}

scripts/status-services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ async function main(): Promise<void> {
153153
console.log('')
154154

155155
if (anyRunning) {
156-
console.log(' To stop: bun stop-services')
156+
console.log(' To stop: bun down')
157157
} else {
158-
console.log(' To start: bun start-services')
158+
console.log(' To start: bun up')
159159
}
160160

161161
console.log('')

0 commit comments

Comments
 (0)