Setup Wizard
When you run GitHub Achievement CLI for the first time, you’ll be guided through an interactive setup wizard that configures everything you need.Start the Setup Wizard
Run the CLI for the first time:The setup wizard will automatically launch if no configuration is found.
Enter Your GitHub Token
Provide your GitHub Personal Access Token when prompted:
- Token format:
ghp_...orgithub_pat_... - Required scope: repo (full control of private repositories)
- Generate token here
Your token is validated immediately. The wizard will authenticate and display your username.
Specify Target Repository
Enter the repository where achievements will be created:
- Format:
owner/repo(e.g.,myusername/GitHub-Achievements-Manager) - Default suggestion:
your-username/GitHub-Achievements-Manager - The repository must exist and you must have write access
Discussions Check
The wizard automatically checks if GitHub Discussions are enabled on your repository.
- If enabled: You’ll be prompted to configure Galaxy Brain/YOLO achievements (requires helper account)
- If disabled: Setup continues without Galaxy Brain/YOLO support
To enable Discussions: Go to your repository Settings → Features → Check “Discussions”
Helper Account (Optional)
If Discussions are enabled, you’ll be asked if you want to configure Galaxy Brain and YOLO achievements.These achievements require a second GitHub account:
- Helper account creates discussion questions or PR reviews
- Your main account responds to earn achievements
- Provide token from your second GitHub account
- Must be different from your main account
- Helper account needs collaborator access to your repository
Configuration Saved
The wizard creates a
.env file in your project directory with all settings:- GitHub token and username
- Target repository
- Default coauthor information
- Optional helper account token
You’ll be asked if you want to star the GitHub Achievement CLI repository. This is optional but appreciated!
Configuration Options During Setup
The setup wizard configures these values automatically:Your GitHub Personal Access Token (main account)
Your GitHub username (auto-detected from token)
Repository in format
owner/repo where achievements will be createdCoauthor name for Pair Extraordinaire achievement commits
Coauthor email for Pair Extraordinaire achievement commits
Prefix for created branches (e.g.,
achievement/pull-shark-1)Delay in milliseconds between operations
GitHub token from helper account (second account) for Galaxy Brain/YOLO
.env File Creation
The wizard creates a.env file with this structure:
Verifying Configuration
After setup completes, verify your configuration:Check .env File
Ensure the Verify all required fields are populated with your information.
.env file exists in your project root:Test Connection
Launch the CLI to verify authentication:You should see the main menu without any errors.
Re-running Setup
To reconfigure your settings:- From the CLI menu: Select Reconfigure option
- Delete .env: Remove the
.envfile and restart the CLI - Manual edit: Edit
.envdirectly (see Environment Variables)
Troubleshooting Setup
Token Validation Failed
Error: “Token validation failed. Check your token and try again.” Solutions:- Verify token format starts with
ghp_orgithub_pat_ - Ensure token has repo scope selected
- Generate a new token if the old one expired
- Check your internet connection
Repository Not Found
Error: “Could not access repository. Check the name and your permissions.” Solutions:- Verify repository exists on GitHub
- Check format is
owner/repo(e.g.,myusername/my-repo) - Ensure you have write access to the repository
- Make sure repository is not archived
Helper Account Must Be Different
Error: “Helper account must be different from your main account” Solutions:- Use a token from a different GitHub account
- Create a second GitHub account if needed (free)
- You can skip helper account setup and configure it later
Next Steps
Environment Variables
Complete reference of all configuration options
GitHub Tokens
Learn about token requirements and security
Run Achievements
Start earning achievements
Troubleshooting
Common issues and solutions