Command: restart

Restart your Mac from the command line.

Usage

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

Description: Restart the computer.

Options:
  --help    Show this help message
  --force   Force restart without confirmation

Examples

Standard Restart

This command initiates a graceful restart. macOS will prompt you to save any unsaved work in open applications before restarting.

m restart

Force Restart

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

m restart --force