Commit 50da884
committed
refactor: move key commands under auth group and fix help consistency
Related to https://gitlab.com/postgres-ai/platform/-/issues/346
## Summary
- Reorganize CLI by moving `add-key`, `show-key`, and `remove-key` commands under the `auth` command group
- Convert `auth` from a standalone command to a command group with `login` as the default subcommand
- Fix inconsistent help text capitalization ("Prepare" → "prepare")
## Changes
**Before:**
| Command | Description |
|---------|-------------|
| `auth` | authenticate via browser (OAuth) or store API key directly |
| `add-key` | store API key |
| `show-key` | show API key (masked) |
| `remove-key` | remove API key |
**After:**
| Command | Description |
|---------|-------------|
| `auth` | authentication and API key management |
| `auth login` | authenticate via browser (OAuth) or store API key directly |
| `auth add-key` | store API key (deprecated: use `auth --set-key` instead) |
| `auth show-key` | show API key (masked) |
| `auth remove-key` | remove API key |
## Usage
- `pgai auth` — runs OAuth login flow (default)
- `pgai auth --set-key <key>` — store API key directly
- `pgai auth show-key` — show masked API key
- `pgai auth remove-key` — remove API key1 parent 08f1e7d commit 50da884
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | | - | |
1538 | | - | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1539 | 1541 | | |
1540 | 1542 | | |
1541 | 1543 | | |
| |||
1779 | 1781 | | |
1780 | 1782 | | |
1781 | 1783 | | |
1782 | | - | |
| 1784 | + | |
1783 | 1785 | | |
1784 | 1786 | | |
1785 | 1787 | | |
| |||
1788 | 1790 | | |
1789 | 1791 | | |
1790 | 1792 | | |
1791 | | - | |
| 1793 | + | |
1792 | 1794 | | |
1793 | 1795 | | |
1794 | 1796 | | |
| |||
1806 | 1808 | | |
1807 | 1809 | | |
1808 | 1810 | | |
1809 | | - | |
| 1811 | + | |
1810 | 1812 | | |
1811 | 1813 | | |
1812 | 1814 | | |
| |||
0 commit comments