cli_docker_up
Start Docker services for LaunchFrame projects in the background. Use this tool to launch specific services or all services, then check logs for output.
Instructions
Start Docker services for a LaunchFrame project. Always runs detached (background). Use cli_docker_logs to inspect output afterward.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the LaunchFrame project root | |
| service | No | Specific service to start (e.g., "backend", "admin-portal"). Omit to start all services. |
Implementation Reference
- src/tools/cli.ts:45-61 (handler)Implementation and registration of the 'cli_docker_up' tool which executes the 'launchframe docker:up' command.
server.tool( 'cli_docker_up', 'Start Docker services for a LaunchFrame project. Always runs detached (background). Use cli_docker_logs to inspect output afterward.', { projectPath: z.string().describe('Absolute path to the LaunchFrame project root'), service: z.string().optional().describe('Specific service to start (e.g., "backend", "admin-portal"). Omit to start all services.'), }, async ({ projectPath, service }) => { try { const svc = service ? ` ${service}` : ''; const output = execSync(`launchframe docker:up${svc} --detach`, { cwd: projectPath, encoding: 'utf8' }); return { content: [{ type: 'text', text: output || 'Services started in detached mode.' }] }; } catch (error: any) { return { content: [{ type: 'text', text: error.message }] }; } } );