feat: add login command - #1094
Open
bhdnb wants to merge 3 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1094 +/- ##
==========================================
+ Coverage 92.20% 92.69% +0.49%
==========================================
Files 141 143 +2
Lines 11485 11536 +51
==========================================
+ Hits 10589 10692 +103
+ Misses 896 844 -52 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: Andrii Bodnar <29282228+andrii-bodnar@users.noreply.github.com>
andrii-bodnar
approved these changes
Sep 1, 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.
Authorize without generating a config:
crowdin loginruns the same browser OAuth flow asinitand saves the token to~/.crowdin.yml, so agentic workflows can log in once and let every later command pick the credentials up from the identity file.-Tstores an existing token without opening a browser;--base-url(or the domain in the browser token) is persisted alongside it for Enterprise.The browser flow moves out of
init/browserAuthServer.tsintoutils/browserAuth.ts, which now also owns the open-and-wait driver both commands share, and init's token write becomessaveCredentials()inlib/identityFiles.ts.Text output leaves the result line to the authorization spinner and the outro; json/toon/plain get the record.
Also isolate HOME in the exit-code integration tests: they spawn the CLI with no config, so a developer's own
~/.crowdin.ymlmade the "missing config" cases exit 2 instead of 102.Documentation updated as well.