Skip to main content

Stop All Servers

Stop all servers for the currently selected app. This is a bulk operation that shuts down all running servers at once.

warning

This command affects all servers in your app across all deployments and locations. Make sure this is what you intend before confirming the operation.

Usage

odin fleet servers stop-all

Examples

Stop all servers for the current app:

odin fleet servers stop-all

Stop all servers with confirmation bypass (useful for automation):

odin fleet servers stop-all --force

Use in a scheduled script to stop servers during off-peak hours for cost optimization:

#!/bin/bash
# Stop all servers at the end of peak hours to save costs
odin fleet servers stop-all --force
echo "All servers stopped at $(date)"

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.