i9s

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

 _  ___
(_)/ _ \ ___
| | (_) / __|
| |\__, \__ \
|_|  /_/|___/

k9s for Microsoft Intune. A fast, keyboard-driven terminal UI for your devices, people and apps.

Install · Try the demo · Keys · How it signs in

i9s showing a fleet of devices sorted by last check-in

The Intune admin center is thorough and slow. i9s is the opposite: one screen, live data, and every question a keystroke away. Which devices haven't checked in? Press L. Why is that one red? Press Enter. Where is the VPN failing? :apps, pick it, and the failures are at the top.

Install

Download the binary for your platform from Releases and put it on your PATH. It's a single file with nothing else to install.

Or, with Go:

go install github.com/YeomanLabs/i9s@latest

Try it without a tenant

i9s --demo

This opens a fictional 458-device company with the same views, colors and keys. Sync and Restart are simulated.

What you get

Resource Command What it shows
Devices :devices :dv 1 Every Windows device: user, Windows release, compliance, last check-in, model, site, BitLocker. Rows are colored: red not compliant, yellow in grace, purple silent 14+ days
Describe Enter on a device Health, failing compliance policies, Defender state and signatures, storage, join type, Autopilot, IDs
People :users :us 2 UPN, department, office, last sign-in, MFA strength (passwordless, authenticator, SMS only, none), licenses. Enter jumps to their devices
Apps :apps :ap 3 Assigned Windows apps. Enter shows install status on every device, failures first, with the Intune error code
Pulse :pulse :pu 4 A dashboard: compliance, check-in age, Windows releases, MFA coverage
Describe view for a non-compliant deviceApp install status, failures firstPulse dashboardRestart confirmation

Keys

Key Action
: Command: devices, users, apps, pulse, quit. Add text to open filtered: :dv dallas
/ Filter the current list. Prefix ! to exclude: /!compliant
Shift+letter Sort by the column starting with that letter (press again to reverse)
Enter / d Describe or drill in
Esc Clear the filter, or go back
s Sync the device (Intune remote action)
Ctrl+R Restart the device, after you confirm
r Refresh now (lists also refresh every 60 s)
1–4 Jump to devices, people, apps, pulse
? Help
q / Ctrl+C Quit

Signing in

i9s                       # opens a browser the first time
i9s users                 # start on a resource
i9s dv notcompliant       # start with a filter
i9s --sign-out

i9s signs in through Microsoft Graph Command Line Tools, Microsoft's own public client that already exists in every tenant (it's what Connect-MgGraph uses). There's no i9s app registration and no server: requests go from your terminal straight to Microsoft Graph. Tokens are cached encrypted by the OS (DPAPI on Windows, Keychain on macOS, the Secret Service on Linux), so you only sign in once.

An admin may need to approve the read-only permissions the first time. If your organisation prefers its own app registration, pass --client-id (and --tenant). It needs a public client with an http://localhost redirect URI.

Permissions (delegated):

Permission Used for
DeviceManagementManagedDevices.Read.All Devices, Defender state
DeviceManagementConfiguration.Read.All Compliance policy details
DeviceManagementApps.Read.All Apps and install status
User.Read.All, AuditLog.Read.All People, last sign-in, MFA registration
DeviceManagementManagedDevices.PrivilegedOperations.All Only if you use Sync or Restart. Requested the first time you do

i9s is read-only apart from Sync and Restart. There's deliberately no wipe, retire or delete.

Building

go build -o i9s .
go test ./...
go run ./cmd/shots && node scripts/shots.mjs   # regenerate the README screenshots from the demo

Built with Bubble Tea and Lip Gloss, and inspired by k9s. Push a v* tag to build releases for Windows, macOS and Linux.

Fleet Galaxy shows the same tenant as a 3D galaxy, with a timeline.

License

MIT © YeomanLabs

Documentation

Overview

i9s is a k9s-style terminal UI for Microsoft Intune.

i9s                 sign in and open your devices
i9s --demo          try it on a fictional tenant, no sign-in
i9s users           start on a resource (devices, users, apps, pulse)
i9s dv noncompliant start with a filter

Directories

Path Synopsis
cmd
shots command
shots drives i9s against the demo tenant and writes each screen as a self-contained HTML "terminal" (docs/shots/*.html).
shots drives i9s against the demo tenant and writes each screen as a self-contained HTML "terminal" (docs/shots/*.html).
internal
auth
Package auth signs in with Microsoft: authorization code + PKCE in the system browser, redirected to localhost.
Package auth signs in with Microsoft: authorization code + PKCE in the system browser, redirected to localhost.
demo
Package demo is a fictional tenant ("Contoso Manufacturing") so anyone can try i9s without signing in.
Package demo is a fictional tenant ("Contoso Manufacturing") so anyone can try i9s without signing in.
graph
Package graph is a small Microsoft Graph client: paging, throttling retries, and errors that say what went wrong.
Package graph is a small Microsoft Graph client: paging, throttling retries, and errors that say what went wrong.
intune
Package intune holds the data i9s shows and the Source interface that both the live Microsoft Graph backend and the offline demo implement.
Package intune holds the data i9s shows and the Source interface that both the live Microsoft Graph backend and the offline demo implement.
ui
Package ui is the i9s terminal interface, built on Bubble Tea.
Package ui is the i9s terminal interface, built on Bubble Tea.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL