feat: improve profile alias and docs#78
Merged
felipefreitag merged 2 commits intomainfrom Mar 13, 2026
Merged
Conversation
felipefreitag
approved these changes
Mar 13, 2026
Contributor
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="README.md">
<violation number="1" location="README.md:206">
P3: This example places the global `--profile` flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| You can also use the global `--profile` (or `-p`) flag on any command to run it with a specific profile. | ||
|
|
||
| ```bash | ||
| resend domains list --profile production |
Contributor
There was a problem hiding this comment.
P3: This example places the global --profile flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 206:
<comment>This example places the global `--profile` flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.</comment>
<file context>
@@ -200,6 +200,12 @@ Switch between profiles without logging in and out:
+You can also use the global `--profile` (or `-p`) flag on any command to run it with a specific profile.
+
+```bash
+resend domains list --profile production
+```
+
</file context>
Suggested change
| resend domains list --profile production | |
| resend --profile production domains list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by cubic
Add a
-pshort flag for--profileacross the CLI and update help output. Expand the README with a new “Switch between teams and accounts” section coveringresend auth switchand the-pflag; tests updated accordingly.Written for commit 093a62d. Summary will update on new commits.