Command: shutdown

Shut down your Mac from the command line.

Usage

Usage:  m  shutdown [--force | --help]

Description: Shutdown the computer

Options:
  --help    Show this help message
  --force   Shutdown without confirmation

Examples

Standard Shutdown

This command initiates a graceful shutdown. macOS will prompt you to save any unsaved work in open applications before shutting down.

m shutdown

Force Shutdown

This command performs a forced shutdown, which may cause unsaved work to be lost. It is useful when the system is unresponsive.

m shutdown --force