MacOS/Create a user from command line

sysadminctl -addUser YOUR_USERNAME[1]


See also

edit
  • chwon: chown USERNAME:GROUP YOUR_FILE
  • Useradd (Linux)
  1. https://apple.stackexchange.com/a/292859