Skip to content

kud/am-i-admin-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Node.js npm MIT

A simple CLI tool to check if you're an admin on your macOS computer.

Website Β· Documentation

Features

  • Instant verdict β€” tells you in plain English whether your account holds admin privileges on the current Mac.
  • Raw mode β€” pass --raw to get a bare true or false, 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-cli

Usage

$ am-i-admin
βœ“ alice, you are an admin on this computer. πŸ‘‘

$ am-i-admin --raw
true

Development

git clone https://github.com/kud/am-i-admin-cli.git
cd am-i-admin-cli
npm install
node index.js

πŸ“š Full documentation β†’ am-i-admin-cli/docs

About

πŸ‘‘ Check whether you're a macOS admin from the terminal β€” human-readable or raw boolean output

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors