Command: user

Manage local user accounts on macOS.

Usage

Usage: m user [OPTIONS]

Description: Manage users on MacOS.

Options:
  --help              Show this help message
  --list              List all users
  --info USERNAME     Display information about a user
  --delete USERNAME   Delete a user
  --create            Create a new user, it will ask you for the following information:
                        Username:
                        Full name:
                        Shell [/bin/bash]:
                        Password:

Options

--list

Lists all local users and their User IDs (UID).

Example:

m user --list

--info USERNAME

Displays detailed information for a specific user account.

Example:

m user --info johndoe

--create

Initiates an interactive prompt to create a new user account. You will be asked for a username, full name, shell, and password. Requires sudo privileges.

Example:

sudo m user --create

--delete USERNAME

Deletes a user account and their home directory. You will be asked for confirmation before proceeding. Requires sudo privileges.

Example:

sudo m user --delete janedoe