CLI
Job seeker commands
Manage your own candidate profile as a job seeker. Sign in once with OAuth (browser device flow — no passwords, no API keys); tokens refresh silently and can be revoked anytime from any logged-in machine.
Sign in (OAuth device flow)
bash
# 一次性:開瀏覽器授權這台機器(SSH 環境加 --no-browser)
wport login
# 我是誰 / 哪些裝置登入中 / 踢掉遺失的筆電
wport whoami
wport sessions list
wport sessions revoke --all-others
# 登出(server 端撤銷 refresh token、清除本地憑證)
wport logoutThe personal line is OAuth-only: no personal API key and no --token flag. Personal OAuth tokens live in the same credentials.json as the enterprise key (separate sections, mode 600); the two lines never interfere.
Resume workflow (agent-first)
bash
# schema → 填 → 驗證 → 建立
wport personal resumes schema > schema.json # 機器可讀欄位文件(offline)
wport personal resumes template --out full.json # 帶範例值的骨架(offline)
wport personal resumes validate --file full.json # 本地檢查,不耗 API 額度(offline)
wport personal resumes create --file full.json --output json # 逐 section 成功報告Read / edit round-trip:
bash
# view 會為每筆項目帶 enc_id:
# 有 enc_id 的項目 → 更新;沒有 enc_id 的項目 → 新增
# 既有項目不會被隱式刪除(例外:portfolio_links 為宣告式整批 upsert)
wport personal resumes view <enc_id> --output json > mine.json
wport personal resumes update <enc_id> --file mine.jsonHousekeeping:
bash
wport personal resumes list # 含配額(最多 6 份)
wport personal resumes copy <enc_id> --name "英文版"
wport personal resumes publish <enc_id> # 開放企業搜尋(可逆)
wport personal resumes delete <enc_id> --confirm
wport personal resumes export --out ./backupApply to jobs
bash
# 投遞職缺(企業看得到;需 --confirm;每日上限 20 筆)
wport personal apply <job_enc_id> --resume <enc_id> --message "自我介紹…" --confirm
wport personal apply <job_enc_id> --resume <enc_id> --message-file intro.txt --confirm # 或用 - 讀 stdin
wport personal apply --file batch.json --confirm # { "applications": [...] },最多 20 筆,部分成功Auth & credentials
- Personal line: OAuth-only (wport login), tokens in the personal section of credentials.json.
- Enterprise line: uses a wpk_live_ API key — see Employer commands.