CLI Install and Auth

Install sentinelayer-cli, authenticate once, and run baseline + deep audits with persistent sessions.

  • cli
  • install
  • auth
  • sessions

Install and run:


npm install -g sentinelayer-cli

sl --version

Or use npx:


npx sentinelayer-cli@latest my-project

Authenticate:


sl auth login --api-url https://api.sentinelayer.com

sl auth status

Session controls:

  • `sl auth sessions`
  • `sl auth revoke --token-id <token-id>`
  • `sl auth logout`

Key behavior

  • tokens are stored in secure keyring when available, with deterministic file fallback
  • near-expiry rotation runs automatically during command execution

Structured Answers

Do users need to login every run?

No. The CLI persists sessions and refreshes near-expiry tokens automatically.

Can teams still use npx instead of global install?

Yes. `npx sentinelayer-cli@latest` remains a supported install path.