Features
- Instant verdict — tells you in plain English whether your account holds admin privileges on the current Mac.
- Raw mode — pass
--rawto get a baretrueorfalse, ideal for scripting and conditional logic. - Coloured output — green tick for admins, red cross for non-admins, so the result is obvious at a glance.
- Zero config — reads your username from the environment and queries the macOS directory service directly.
- Lightweight — single-file tool with minimal dependencies (
zx,chalk).
Install
npm install -g @kud/am-i-admin-cliUsage
$ am-i-admin
✓ alice, you are an admin on this computer. 👑
$ am-i-admin --raw
trueDevelopment
git clone https://github.com/kud/am-i-admin-cli.git
cd am-i-admin-cli
npm install
node index.js