Skip to content

statechange/mentor-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@statechange/mentor

State Change's 25 years of building experience, right in your terminal. Search the knowledge base, explore mental models, and browse resources — without leaving your flow.

Install

npm install -g @statechange/mentor

Or run directly without installing:

npx @statechange/mentor search "how to price my SaaS"

Getting Started

Log in

mentor login

This opens your browser to authenticate via State Change. Once you approve, you're all set.

If you prefer, you can paste an API key manually:

mentor login --token <your-api-key>

Your credentials are stored in ~/.statechange/auth.json (shared with other State Change CLI tools).

Log out

mentor logout

Usage

Search the knowledge base

mentor search "when should I raise prices"
mentor search "build vs buy"

Returns relevant resources and mental models. Add --json for machine-readable output.

Look up mental models

List all available models:

mentor model

View a specific model by ID or number:

mentor model mm-70
mentor model 70

Browse resources

List resources:

mentor resources

View a specific resource:

mentor resource essay-132

JSON output

All commands support --json for piping to other tools:

mentor search "pricing" --json | jq '.resources[0]'
mentor model 70 --json
mentor resources --json

Environment Variables

Variable Description
STATECHANGE_API_KEY API key (overrides stored auth)
NO_COLOR Disable colored output

About

SC Mentor CLI — State Change knowledge base in your terminal

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors