profiles show and list ignore --profile

Open
#199 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@manyoneek is already working on this.

Since Oct 22, 2026.

  • #200 by @manyoneek — open

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
1/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli

Research direction

The issue identifies the profiles show and profiles list handlers as the failing entry points; inspect how each resolves the profile and uses rt.Globals.Profile. Run the reproduction steps with Python 3, patch, and Go, then confirm both commands select qa-chosen, the saved profile remains unchanged, and an explicit positional name still takes precedence. A linked pull request already contains a fix.

Written by the indexing model from the issue text.

Description

profiles show --profile chosen and profiles list --profile chosen use the saved active profile instead of chosen.

Reproduce

  • Run python3 reproduce-all.py from the reproduction source; it creates two credential-free profiles, with qa-base active.
  • Run rc profiles show --profile qa-chosen --json and rc profiles list --profile qa-chosen --json.
  • Both select qa-base instead of qa-chosen.

Reproduced October 22: 0381e9169458, Go 1.26.10, macOS arm64.

Fix, tests and before/after demo.

Dominant language
Go
Stars
22
Forks
2
Avg merge
5d 3h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RevenueCat/cli

All issues in RevenueCat/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.