Skip to content

wx auth

Sign the selected account in or out of WeChat

wx auth attempts

Inspect or cancel a WeChat login attempt

wx auth attempts cancel

Request cancellation of an item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started

wx auth attempts get

Show the current result and state of an item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started

wx auth attempts retry

Retry an eligible failed item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started
--reuse-completed-uploadswitchReuse a completed file upload whose message submission never started

wx auth cancel

Cancel a login attempt by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredLogin attempt ID printed by wx auth login

wx auth disconnect

Disconnect while retaining the saved WeChat login

wx auth forget

Forget local authentication material while retaining history

Argument or flagTakesWhat it does
--idempotency-keytakes <IDEMPOTENCY_KEY>Reuse this key when retrying so the daemon applies the request only once
--yesrequired, switchConfirm discarding this account’s saved login credentials; history is kept

wx auth login

Sign in using saved device trust or a phone-approved QR code

Argument or flagTakesWhat it does
--detachswitchReturn as soon as the work is queued instead of waiting for it
--force-qrswitch, alias —qrSkip saved device trust and sign in with a QR code
--idempotency-keytakes <IDEMPOTENCY_KEY>Reuse this key when retrying so the daemon applies the request only once
--max-refreshestakes <MAX_REFRESHES>, default 3Most times an expired QR code is replaced automatically (0 to 3)
--no-qrswitch, alias —saved-onlyNever show a QR code; sign in only with saved device trust
--officialtakes <OFFICIAL>Use supported stopped Linux files in place; optional absolute path on the daemon host, not the CLI host. macOS/Windows profiles are unverified
--qr-outputtakes <QR_OUTPUT>, alias —qr-outSave the login QR code PNG to this path; later refreshes add a -N suffix
--qr-refreshtakes <QR_REFRESH>, default auto, values auto|manualReplace an expired, unscanned QR code automatically, or leave it expired
--strategytakes <STRATEGY>, default auto, values auto|saved-device|qrWhich sign-in method to use; auto tries saved device trust first, then a QR code
--timeouttakes <TIMEOUT>, alias —wait, default 300Seconds to allow for the login to finish (30 to 900)

wx auth logout

Sign out of WeChat and disable automatic reconnection

Argument or flagTakesWhat it does
--detachswitchReturn as soon as the work is queued instead of waiting for it
--idempotency-keytakes <IDEMPOTENCY_KEY>Reuse this key when retrying so the daemon applies the request only once
--localswitchSign out on the daemon and keep saved credentials, without contacting WeChat
--waittakes <WAIT>, default 30Seconds to wait for completion; the work keeps running after the wait ends

wx auth operation

Show a login attempt by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredLogin attempt ID printed by wx auth login

wx auth qr

Show or save the QR code for a login attempt

Argument or flagTakesWhat it does
<ID>position 1, requiredLogin attempt ID printed by wx auth login
--outputtakes <OUTPUT>Save the QR code PNG to this path instead of the default folder

wx auth status

Show the selected account’s WeChat login state