Skip to main content

Stop a Server

Stop a specific running server. This command allows you to shut down individual servers without affecting other servers in your deployment.

info

Stopping a server does not delete it. The server can be started again using the start command. If the server configuration has persistent data, the data will be preserved.

Usage

odin fleet servers stop [--server-id=SERVER_ID]

Flags

  • --server-id=<number>: The ID of the server to stop. If omitted, the CLI will prompt you to select a server from a list interactively.

Examples

Stop a server by ID:

odin fleet servers stop --server-id=123456

Stop a server with confirmation bypass (useful for scripts):

odin fleet servers stop --server-id=123456 --force

Global Flags

The following flags can be used with any ODIN CLI command:

  • --api-key=<string> The API key to use for authentication. If omitted, the CLI will use the api-key stored in the configuration file on your system. Use odin login to store the API key for subsequent commands.

  • --app-id=<string> The ID of the app to use for the command. If omitted, the CLI will use the currently selected app. Use odin apps select to select an app interactively.

  • --format=<string> The output format to use for the command. Supported formats are json, value, flattened and table. If omitted, the CLI will use the default format specified in the configuration file. Learn more about output formatting.

  • --force Forces the command to execute without prompting for confirmation. Use with caution.

  • --quiet Suppresses all informational output except for errors. Useful for scripting and automation.