A command-line interface for Life360 location tracking.
npm install -g life360-cligit clone https://github.com/rjlee/life360-cli.git
cd life360-cli
npm install
npm run build
npm linkThis makes the l360 command available globally.
Life360 requires an authorization token. Get one manually:
- Open https://life360.com/login in your browser
- Enter your email address and click Continue
- Enter the one-time code sent to your email
- Open browser DevTools (F12) and switch to the Network tab
- Find the POST request named
token - In Preview / Response, copy the value of
access_token
The token is a long string WITHOUT the word "Bearer" and WITHOUT spaces.
Note: Tokens are long-lived (typically months). When expired, you'll get an authentication error — repeat the steps above to get a new token.
Method 1: Environment Variable (Recommended)
export LIFE360_AUTHORIZATION="your-token"Method 2: Save Token
l360 auth token "your-token"To check if authenticated:
l360 auth statusTo clear credentials:
l360 auth logoutl360 circle list # list all circles
l360 circle view # view first circle (default)
l360 circle view "Family" # view specific circlel360 member list # list members in all circles
l360 member list "Family" # list members in a specific circle
l360 member locate Rob # get location for a memberLife360 has aggressive rate limiting. The CLI caches results:
l360 member locate Rob --cache-ttl 60 # cache for 60 seconds
l360 member locate Rob --no-cache # bypass cache
l360 circle list --refresh # force refresh| Option | Description |
|---|---|
--no-spinner |
Disable loading animations |
-h, --help |
Display help |
npm install # install dependencies
npm run build # compile TypeScript
npm run dev # watch mode
npm run type-check # type check
npm test # run testsMIT