Skip to content

Improve CLI Cloud Authentication #10

Open
wagjamin wants to merge 3 commits intomainfrom
wagjamin-fb-auth
Open

Improve CLI Cloud Authentication #10
wagjamin wants to merge 3 commits intomainfrom
wagjamin-fb-auth

Conversation

@wagjamin
Copy link

@wagjamin wagjamin commented Feb 8, 2026

Add interactive fb auth command for one-time credential setup with
Service Account authentication. Credentials are automatically loaded
on subsequent invocations, eliminating the need for authentication
flags on every command.

New commands:

  • fb auth: Interactive authentication setup
  • fb auth check: Show authentication status
  • fb auth clear: Clear saved credentials
  • fb use database <name>: Set default database (with validation)
  • fb use engine <name>: Set default engine (with validation)
  • fb show databases: List available databases
  • fb show engines: List available engines

Key changes:

  • Auto-discover system engine endpoint from account name
  • Validate databases and engines before persisting configuration
  • Refactor code into show.rs module for better organization
  • Add helper functions to reduce boilerplate in context creation
  • Update help text with new commands and workflow

wagjamin and others added 2 commits February 7, 2026 19:01
Add interactive `fb auth` command for one-time credential setup with
Service Account authentication. Credentials are automatically loaded
on subsequent invocations, eliminating the need for authentication
flags on every command.

New commands:
- fb auth: Interactive authentication setup
- fb auth check: Show authentication status
- fb auth clear: Clear saved credentials
- fb use database <name>: Set default database (with validation)
- fb use engine <name>: Set default engine (with validation)
- fb show databases: List available databases
- fb show engines: List available engines

Key changes:
- Auto-discover system engine endpoint from account name
- Validate databases and engines before persisting configuration
- Refactor code into show.rs module for better organization
- Add helper functions to reduce boilerplate in context creation
- Update help text with new commands and workflow

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add validation for database and engine names during the interactive
`fb auth` setup to prevent invalid configurations from being saved.

Changes:
- Validate database against information_schema.catalogs before saving
- Validate engine against information_schema.engines before resolving
- Show warning messages and skip invalid entries instead of failing
- Consistent with validation in `fb use database/engine` commands

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant