Skip to main content

stopEnvironment

client.environments.stopEnvironment(id: string, data?: Record<string, unknown>): Promise<unknown>

Stops a running environment.

Gracefully shuts down the environment, preserving its state for later restart. Resources may be released depending on the provider.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the environment to stop
dataRecord<string, unknown>NoOptional stop configuration

Returns​

Promise<unknown> — A promise that resolves when the environment has stopped

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.environments.stopEnvironment('id');
console.log(result);