Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/lib/clients/management/generated/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export type Project = {
teamId: number;
resourceId: number;
msVersion: string;
workloadType: 'production' | 'dev';
readOnly: boolean;
status: string;
paused: boolean;
Expand Down
54 changes: 26 additions & 28 deletions test/commands/project/__snapshots__/add.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ exports[`meili project add > sends the flags as the project body with the token,
{
"exitCode": 0,
"stderr": "",
"stdout": "{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"****9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
"stdout": "{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"****9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
",
}
`;
Expand All @@ -105,37 +105,35 @@ Check when it is ready: meili project view --id 343
Once it is Running, save its URL and master key in the config file:
meili config sync-with-cloud --project-name demo
",
"stdout": " id 343
name demo
projectUid ms-abc
url null
masterKey ****9z8y
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
workloadType production
readOnly false
status creating
paused false
createdAt 2026-10-14T10:00:00Z
"stdout": " id 343
name demo
projectUid ms-abc
url null
masterKey ****9z8y
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
readOnly false
status creating
paused false
createdAt 2026-10-14T10:00:00Z
",
}
`;

exports[`meili project add > tells a human in a terminal that the project runs and is in the config file, with --wait --sync-config 1`] = `
" id 343
name demo
projectUid ms-abc
url https://ms-abc.sfo.meilisearch.io
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
workloadType production
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
" id 343
name demo
projectUid ms-abc
url https://ms-abc.sfo.meilisearch.io
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
"
`;
2 changes: 1 addition & 1 deletion test/commands/project/__snapshots__/list.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`meili project list > lists the projects in the envelope the API returns
{
"exitCode": 0,
"stderr": "",
"stdout": "{"page":1,"limit":20,"total":2,"totalPages":1,"results":[{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}},{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}]}
"stdout": "{"page":1,"limit":20,"total":2,"totalPages":1,"results":[{"id":343,"name":"demo","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}},{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}]}
",
}
`;
Expand Down
29 changes: 14 additions & 15 deletions test/commands/project/__snapshots__/update.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports[`meili project update > sends the new name for the project of --id, and
{
"exitCode": 0,
"stderr": "",
"stdout": "{"id":343,"name":"renamed","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
"stdout": "{"id":343,"name":"renamed","projectUid":"ms-abc","url":"https://ms-abc.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
",
}
`;
Expand All @@ -68,20 +68,19 @@ Simplified view. See the project in full: meili project view --id 343. See every

✓ Config entry demo is renamed to demo-2.
",
"stdout": " id 343
name demo-2
projectUid ms-abc
url https://ms-abc.sfo.meilisearch.io
masterKey projectmasterkey9z8y
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
workloadType production
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
"stdout": " id 343
name demo-2
projectUid ms-abc
url https://ms-abc.sfo.meilisearch.io
masterKey projectmasterkey9z8y
teamId 12
resourceId 3
resource Build
msVersion v1.54.0
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
",
}
`;
27 changes: 13 additions & 14 deletions test/commands/project/__snapshots__/view.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`meili project view > gets one project with --id, or with --project and
{
"exitCode": 0,
"stderr": "",
"stdout": "{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","workloadType":"production","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
"stdout": "{"id":344,"name":"staging","projectUid":"ms-abc","url":"https://ms-def.sfo.meilisearch.io","masterKey":"projectmasterkey9z8y","teamId":12,"resourceId":3,"msVersion":"v1.54.0","readOnly":false,"status":"running","paused":false,"createdAt":"2026-10-14T10:00:00Z","resource":{"id":3,"name":"build","displayName":"Build","plan":"build","regionId":1}}
",
}
`;
Expand Down Expand Up @@ -58,19 +58,18 @@ Project 344 of team 12 • Meilisearch v1.54.0
Plan Build on resource 3, region 1

",
"stdout": " id 344
name staging
projectUid ms-abc
url https://ms-def.sfo.meilisearch.io
masterKey projectmasterkey9z8y
teamId 12
resourceId 3
msVersion v1.54.0
workloadType production
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
"stdout": " id 344
name staging
projectUid ms-abc
url https://ms-def.sfo.meilisearch.io
masterKey projectmasterkey9z8y
teamId 12
resourceId 3
msVersion v1.54.0
readOnly false
status running
paused false
createdAt 2026-10-14T10:00:00Z
resource
id 3
name build
Expand Down
1 change: 0 additions & 1 deletion test/helpers/management-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const project: Project = {
teamId: 12,
resourceId: 3,
msVersion: "v1.54.0",
workloadType: "production",
readOnly: false,
status: "running",
paused: false,
Expand Down
Loading