feat: resolve commands against the active environment#219
Draft
angeloashmore wants to merge 1 commit into
Draft
Conversation
Migrate pull, push, status, sync, and the locale/preview/token/webhook commands to read the active environment from CLI state, falling back to the repository name. `--env` becomes a deprecated alias for `--repo`, and `resolveEnvironment` is removed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 8, 2026
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.
Resolves:
Note
Middle of the stack: #218 → #219 (this PR) → #220. Merge #218 first — this PR targets its branch, and #220 targets this one.
Description
Migrates every repo-facing command (
push,pull,sync,status, and thelocale/preview/token/webhookgroups) to resolve its target repository in priority order:--repoflag, if passed (--envis a deprecated alias, still supported)prismic envcommands and active environment state #218)--envbecomes a deprecated alias for--repo, and the now-unusedresolveEnvironmenthelper is removed.Checklist
Preview
How to QA 1
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩