neunneun

CLI Reference

Complete reference for all neun CLI commands

Interactive Mode

Running neun-cli with no arguments starts interactive mode. If you're not logged in, it begins the setup flow. Otherwise, it shows a menu with available actions.

neun-cli

Commands

neun-cli setup

Configure a project for telemetry collection. This is the recommended way to get started.

neun-cli setup

Walks you through project selection, prompt logging preferences, and hook registration. Writes configuration to .neun/config.json and registers Claude Code hooks in the settings file matching your chosen scope.

neun-cli login

Authenticate with your neun account using a device code flow.

neun-cli login

Opens your browser for verification. Credentials are stored in ~/.neun/credentials.json.

neun-cli logout

Sign out and clear stored credentials.

neun-cli logout

Revokes the session on the server and removes local credentials and project configuration.

neun-cli status

Check your current authentication status.

neun-cli status

Shows your email, session expiration, and login state.

Global Flags

FlagAliasDescription
--help-hShow help
--versionShow CLI version

Configuration Files

FileLocationPurpose
Credentials~/.neun/credentials.jsonAuth token and session info
Project config.neun/config.jsonProject ID, org ID, collector URL
Hooks (local).claude/settings.local.jsonPer-project hooks, not version controlled
Hooks (project).claude/settings.jsonPer-project hooks, shared via VCS
Hooks (global)~/.claude/settings.jsonHooks applied to all projects

On this page