wx profiles
Register and read stopped local WeChat profiles
wx profiles add
Register the path and optional key file of a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
<NAME> | position 1, required | Name to save the profile under |
--account-dir | takes <ACCOUNT_DIR> | Account folder name under —path (or —path/xwechat_files) to use |
--format | takes <FORMAT>, default official-linux | Profile file layout; only official-linux is supported |
--keys-file | takes <KEYS_FILE> | Private file with this profile’s database keys, from wx profiles keys export |
--path | required, takes <PATH> | Stopped official profile folder; add —account-dir if it holds several accounts |
wx profiles avatars
Retrieve a saved avatar from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--output | required, takes <OUTPUT> | Save to this new file outside the profile; an existing file is not overwritten |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
--username | required, takes <USERNAME> | Username of the contact or group whose saved avatar to export |
wx profiles chats
List chats from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles contacts
Read contacts from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles groups
Read groups and saved members from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--id | takes <ID> | Show only this group, by ID, instead of the whole list |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--members | switch | List the saved members of the group given by —id |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles images
Retrieve a saved image from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--message | required, takes <MESSAGE> | Message observation ID from wx profiles messages |
--output | required, takes <OUTPUT> | Save to this new file outside the profile; an existing file is not overwritten |
--quality | takes <QUALITY>, default best, values best|thumbnail|standard|original|full | Which saved copy to export; best picks the highest quality available (full is original) |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles inspect
Inspect the selected profile’s layout and key availability
wx profiles keys
Export profile keys from authorized local key material
wx profiles keys export
Export keys from an authorized password file or agent data directory
| Argument or flag | Takes | What it does |
|---|---|---|
<NAME> | position 1 | Profile name from wx profiles list; defaults to the selected profile |
--agent-token-file | takes <AGENT_TOKEN_FILE> | Private file with the token that unlocks the agent data; needed for —from-agent-data |
--from-agent-data | takes <FROM_AGENT_DATA> | Agent data folder, or its agent.db file, holding saved profile keys |
--output | required, takes <OUTPUT> | Write the keys to this new private file outside the profile |
--password-file | takes <PASSWORD_FILE> | Private file holding the account password as exactly 32 raw bytes |
--session | takes <SESSION> | Key session ID to read; needed only when the agent data has several for this account |
--source-stopped | required, switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles list
List registered profiles and their selected defaults
wx profiles messages
Read messages from a stopped local profile
| Argument or flag | Takes | What it does |
|---|---|---|
--allow-plaintext | switch | Permit a deliberately created plaintext export; encrypted sources remain the default |
--chat | required, takes <CHAT> | Chat ID to read, from wx profiles chats |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT>, default 50 | Return at most this many items (1 to 200) |
--own-username | takes <OWN_USERNAME> | Your WeChat username, used to mark which messages you sent |
--raw | switch | Include original typed source fields, which can contain private transport metadata |
--search | takes <SEARCH> | Only list chats, contacts, groups or members whose name or ID contains this text |
--source-stopped | switch | Confirm that the selected source is stopped or is a consistent snapshot |
wx profiles select
Save the default local profile for this CLI or selected server
| Argument or flag | Takes | What it does |
|---|---|---|
<NAME> | position 1, required | Profile name from wx profiles list |