feat: --json output, status command, device rename#6
Merged
Conversation
Add three commands backed by existing eero-api methods:
- status: read-only auth/account/networks check (exit 1 if not signed in)
- rename <device> <nickname>: set_device_nickname
- --json on devices/profiles/status for scriptable, machine-readable output
Add _account_summary (unwraps eero's {value:...} fields) and tests for it plus
the new parser surface.
solomonneas
added a commit
that referenced
this pull request
Jul 15, 2026
feat: --json output, status command, device rename
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three additions, all backed by existing
eero-apipublic methods (no new reverse-engineering).Commands
eero status[--json] - read-only: authenticated (from stored session, no network round-trip), account name/email/phone, and visible networks. Exits 1 when not signed in, so scripts can gate on it.eero rename <device> <nickname>-set_device_nickname, with the same fuzzy device match + confirm asblock.--jsonondevices,profiles, andstatus- machine-readable output for the wrapper/scripting use case this CLI is built for.profiles --json --devicesnests each profile's assigned devices.Why
The CLI is explicitly built for non-interactive/wrapper use, but every command emitted only human tables.
--jsoncloses that gap;statusgives a scriptable auth probe that doesn't require a mutating call.Tests
_account_summary(unwraps eero's{"value": ...}fields, omits empties) - 4 testsstatus,rename, and the--jsonflags - 5 testsNote
The JSON/parser/pure-logic paths are unit-tested; the live API calls (
get_account,set_device_nickname) are exercised through the maintainedeero-apiand not hit against real hardware here.