This repository was archived by the owner on Feb 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Add init command and config test for guided setup and connectivity verification #19
Copy link
Copy link
Closed
Description
Summary
Add an init command for guided setup and a config test command for connectivity verification, matching the patterns in confluence-cli and other open-cli-collective CLIs.
Current State
- Has:
config set,config show,config clear - Has:
mecommand (implicitly tests auth by fetching current user) - Missing: guided
initwizard, explicitconfig test
Commands to Add
1. jira-ticket-cli init
Interactive setup wizard (similar to cfl init):
$ jira-ticket-cli init
Jira CLI Setup
Domain (e.g., 'mycompany' for mycompany.atlassian.net): mycompany
Email: user@example.com
API Token: ****
Testing connection...
✓ Connected to mycompany.atlassian.net
✓ Authenticated as User Name (user@example.com)
Configuration saved to ~/.config/jira-ticket-cli/config.yml
Try it out:
jira-ticket-cli issues list --project PROJ
jira-ticket-cli me
Features:
- Interactive prompts for domain, email, API token
- Connectivity verification (unless
--no-verify) - Existing config detection with overwrite prompt
- Clear success message with example commands
- Optional:
--domain,--email,--tokenflags for non-interactive use
2. jira-ticket-cli config test
Explicit connectivity test (like slack-chat-api config test):
$ jira-ticket-cli config test
Testing connection to mycompany.atlassian.net...
✓ Authentication successful
✓ API access verified
Authenticated as: User Name (user@example.com)
Account ID: 123456:abcd-efgh-...
On failure:
$ jira-ticket-cli config test
Testing connection to mycompany.atlassian.net...
✗ Authentication failed: 401 Unauthorized
Check your credentials with: jira-ticket-cli config show
Reconfigure with: jira-ticket-cli init
Why both me and config test?
mereturns user data (for scripting, output formats)config testis explicitly for diagnostics (clear pass/fail, suggestions on failure)- Different UX purposes:
config testis "does this work?" whilemeis "who am I?"
Implementation Notes
- Can reuse
api.GetCurrentUser()for connectivity verification - Consider using charmbracelet/huh for TUI prompts (like confluence-cli) or simple stdin prompts
initshould call the same verification logic asconfig test
Related
- Add ATLASSIAN_API_TOKEN support and document secure storage options #16 - Add ATLASSIAN_API_TOKEN support (fold into
initandconfig show) - confluence-cli has
initas the model to follow
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels