Skip to content

feat: add login/logout/status commands#91

Merged
nikhilsinhaparseable merged 1 commit intoparseablehq:mainfrom
pratik50:feature/login
Apr 28, 2026
Merged

feat: add login/logout/status commands#91
nikhilsinhaparseable merged 1 commit intoparseablehq:mainfrom
pratik50:feature/login

Conversation

@pratik50
Copy link
Copy Markdown
Contributor

Summary

  • Removed auto-created demo profile
  • Added pb login / logout / status
  • Now user must login first before running stream/query/etc

Why

Earlier pb was automatically using demo.parseable.com as default profile.
That demo server is removed, so commands were failing.
Now pb works only after proper authentication.

Changes

  • Removed defaultInitialProfile() logic (no auto demo config anymore)
  • Added pb login
    • supports --token (cloud)
    • supports --url + --username + --password (self-hosted)
  • Added pb logout
  • Added pb status (checks /about endpoint)
  • Config updated: Profile now supports Token
  • HTTP client updated:
    • Token → Bearer auth
    • Username/password → Basic auth

Test

Self-hosted

  • pb login --url http://localhost:8000 --username <username> --password <password>
  • pb status
  • pb stream list
  • pb logout

Cloud token flow ------- (not tested yet, will checkout with Agent workflow)

  • pb login --token <token>
  • pb status
  • pb stream list

@pratik50 pratik50 requested a review from nitisht April 24, 2026 10:04
@pratik50 pratik50 self-assigned this Apr 24, 2026
@pratik50 pratik50 added enhancement New feature or request bug Something isn't working labels Apr 24, 2026
@nikhilsinhaparseable nikhilsinhaparseable merged commit b81fc96 into parseablehq:main Apr 28, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants