Skip to content

Commit 3991cbf

Browse files
committed
chore: change command serve to start
1 parent cf76146 commit 3991cbf

23 files changed

Lines changed: 93 additions & 93 deletions

File tree

apps/desktop/src/main/mildstack-ipc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export function registerMildStackIpcHandlers(): void {
8383
}
8484
})
8585

86-
ipcMain.handle('mildstack:serve', async (_event, port: number): Promise<{ success: boolean; error?: string }> => {
86+
ipcMain.handle('mildstack:start', async (_event, port: number): Promise<{ success: boolean; error?: string }> => {
8787
try {
8888
// --d flag to detach (run in background)
89-
await execAsync(`${mildStackExecutable} serve ${port} --d`)
89+
await execAsync(`${mildStackExecutable} start ${port} --d`)
9090
return { success: true }
9191
} catch (err) {
9292
const error = parseCliError(err)
93-
console.error('[MildStack IPC] serve error:', error)
93+
console.error('[MildStack IPC] start error:', error)
9494
return { success: false, error }
9595
}
9696
})

apps/desktop/src/preload/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ interface MildStackInstancesResponse {
192192

193193
interface MildStackApi {
194194
instances(): Promise<MildStackInstancesResponse>
195-
serve(port: number): Promise<{ success: boolean; error?: string }>
195+
start(port: number): Promise<{ success: boolean; error?: string }>
196196
stop(port?: number, all?: boolean): Promise<{ success: boolean; error?: string }>
197197
delete(port?: number, all?: boolean): Promise<{ success: boolean; error?: string }>
198198
validateInstance(): Promise<{ valid: boolean; error?: string }>

apps/desktop/src/preload/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ interface MildStackInstancesResponse {
194194

195195
interface MildStackApi {
196196
instances(): Promise<MildStackInstancesResponse>
197-
serve(port: number): Promise<{ success: boolean; error?: string }>
197+
start(port: number): Promise<{ success: boolean; error?: string }>
198198
stop(port?: number, all?: boolean): Promise<{ success: boolean; error?: string }>
199199
delete(port?: number, all?: boolean): Promise<{ success: boolean; error?: string }>
200200
validateInstance(): Promise<{ valid: boolean; error?: string }>
@@ -304,7 +304,7 @@ const api: { s3: S3BrowserApi; dynamodb: DynamoDBBrowserApi; sqs: SQSBrowserApi;
304304
},
305305
mildstack: {
306306
instances: () => ipcRenderer.invoke('mildstack:instances'),
307-
serve: (port) => ipcRenderer.invoke('mildstack:serve', port),
307+
start: (port) => ipcRenderer.invoke('mildstack:start', port),
308308
stop: (port?, all?) => ipcRenderer.invoke('mildstack:stop', { port, all }),
309309
delete: (port?, all?) => ipcRenderer.invoke('mildstack:delete', { port, all }),
310310
validateInstance: () => ipcRenderer.invoke('mildstack:validateInstance')

apps/desktop/src/renderer/src/store/instance-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const useInstanceStore = create<InstanceState>((set, get) => ({
8787
},
8888

8989
serveInstance: async (port: number) => {
90-
const result = await window.api.mildstack.serve(port);
90+
const result = await window.api.mildstack.start(port);
9191
if (result.success) {
9292
// Refresh instances after starting
9393
await get().fetchInstances();

apps/web/www/content/docs/getting-started/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Usage:
5757
mildstack [command]
5858
5959
Available Commands:
60-
serve Start the shared HTTP runtime
60+
start Start the shared HTTP runtime
6161
instances List known instances
6262
status Show instance status
6363
stop Stop a running instance

apps/web/www/content/docs/getting-started/quick-start.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ description: |
99
Launch a MildStack instance with a single command:
1010

1111
```bash
12-
mildstack serve
12+
mildstack start
1313
```
1414

1515
By default, the runtime starts on port `4566`. You can specify a different port:
1616

1717
```bash
18-
mildstack serve 8080
18+
mildstack start 8080
1919
```
2020

2121
To start the instance in the background (detached mode):
2222

2323
```bash
24-
mildstack serve --detach
24+
mildstack start --detach
2525
```
2626

2727
<Callout type="info" title="Ready in milliseconds">

apps/web/www/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ MildStack is a free, open-source alternative to LocalStack for local AWS develop
2323

2424
```bash
2525
# 1. Start MildStack
26-
mildstack serve
26+
mildstack start
2727

2828
# 2. Create an S3 bucket using the AWS CLI
2929
aws s3 mb s3://my-bucket \

apps/web/www/content/docs/mildstack/mildstack-cli/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The MildStack CLI lets you control your local AWS environment directly from the
1111

1212
| Command | Description |
1313
| --- | --- |
14-
| `mildstack serve` | Start a new local instance |
14+
| `mildstack start` | Start a new local instance |
1515
| `mildstack instances` | List all known instances |
1616
| `mildstack status` | Show the status of a running instance |
1717
| `mildstack stop` | Stop a running instance |
@@ -21,16 +21,16 @@ The MildStack CLI lets you control your local AWS environment directly from the
2121

2222
```bash
2323
# Start on the default port (4566)
24-
mildstack serve
24+
mildstack start
2525

2626
# Start on a specific port
27-
mildstack serve 8080
27+
mildstack start 8080
2828

2929
# Start in the background
30-
mildstack serve --detach
30+
mildstack start --detach
3131
```
3232

33-
When you run `mildstack serve`, the runtime starts an AWS-compatible API server on the specified port. All three services (S3, DynamoDB, SQS) are available immediately.
33+
When you run `mildstack start`, the runtime starts an AWS-compatible API server on the specified port. All three services (S3, DynamoDB, SQS) are available immediately.
3434

3535
<Callout type="info">
3636
If port `4566` is already in use, MildStack will automatically try the next available port.

apps/web/www/content/docs/mildstack/mildstack-cli/instances.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Start instances on different ports:
2121

2222
```bash
2323
# Start a "development" instance
24-
mildstack serve 4566
24+
mildstack start 4566
2525

2626
# In another terminal, start a "testing" instance
27-
mildstack serve 8080
27+
mildstack start 8080
2828
```
2929

3030
Each instance is fully independent. Creating a bucket on port `4566` has no effect on port `8080`.
@@ -68,7 +68,7 @@ mildstack stop 4566
6868
Stopping preserves all data. Restart on the same port to pick up where you left off:
6969

7070
```bash
71-
mildstack serve 4566
71+
mildstack start 4566
7272
```
7373

7474
### Delete an instance (remove data)
@@ -84,14 +84,14 @@ This permanently removes the instance and all of its stored resources.
8484
Use `--detach` (or `-d`) to start an instance in the background:
8585

8686
```bash
87-
mildstack serve 4566 --detach
87+
mildstack start 4566 --detach
8888
```
8989

9090
The command returns immediately after the instance is ready. This is useful for scripts and CI pipelines:
9191

9292
```bash
9393
# Start MildStack in the background, run tests, then stop
94-
mildstack serve 4566 --detach
94+
mildstack start 4566 --detach
9595
npm test
9696
mildstack stop 4566
9797
```

apps/web/www/content/docs/mildstack/mildstack-desktop/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Monitor and manage your local SQS queues:
5858

5959
1. **Start a MildStack instance** using the CLI:
6060
```bash
61-
mildstack serve
61+
mildstack start
6262
```
6363

6464
2. **Open the Desktop App** — it will automatically detect running instances on your machine.

0 commit comments

Comments
 (0)