Restart a Server
You can restart servers at any time. If the underlying server configuration has persistent data, the data will be preserved across restarts. If the server is part of a deployment, the server will be restarted with the same configuration as the deployment.
Usage
odin fleet servers restart [--server-id=SERVER_ID]
Examples
Restart a server by ID:
Flags
--server-id=<number>:
The ID of the server to restart. If omitted, the CLI will prompt you to select a server from a list
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 arejson,value,flattenedandtable. If omitted, the CLI will use the default format specified in the configuration file. Learn more about output formatting. -
--forceForces the command to execute without prompting for confirmation. Use with caution. -
--quietSuppresses all informational output except for errors. Useful for scripting and automation.