# service (https://lazyfrog.dev/docs/tools/service)

{/* Generated by scripts/generate-docs.ts from the gateway's registered tools. Do not edit. */}

**{"Manage services"}** · Can change or delete · actions: `set`, `remove`, `restart`, `stop`, `run`

<p>{"Change the project's services (services.json) and run them. action \"set\": add a service, or change one (the fields given are merged into its definition; a new one needs type web|api|worker|cron|static). Fields: dev = preview command, build, start = production command, port, healthcheck_path, env, schedule for cron, dir and spa for static. The file is validated and reloaded, and invalid definitions are refused with the reason. \"remove\": delete a service. \"restart\": restart one (or start one that was stopped). \"stop\": stop one preview service for a while, e.g. the dev server while a build needs its memory; it stays stopped until \"restart\", or until the workspace sleeps and wakes. \"run\": run a service's command once now and return its output (it isn't written to the service's log)."}</p>
