@syngy/wenji-cli
v0.1.2
Published
Wenji command line tool
Readme
@syngy/wenji-cli
Wenji command line tool for account jcode login and interview activity lookup.
Install
npm install -g @syngy/wenji-cliLogin
wenji-cli auth login
wenji-cli auth login --no-open
wenji-cli auth login --profile prod
wenji-cli auth whoami
wenji-cli auth logoutauth login creates an account jcode pairing session, prints a browser URL and
an 8-digit code, then polls until the web page confirms the session. The jcode is
not embedded in the URL. The CLI stores access and refresh tokens under the
selected local profile and refreshes the access token once on authenticated API
requests when the server reports unauthorized.
Profiles
wenji-cli auth profiles list --json
wenji-cli auth profiles current --json
wenji-cli auth profiles use prod
wenji-cli auth profiles delete stagingEvery command accepts --profile <name>. If omitted, the CLI uses the current
profile; if no current profile exists, it uses default.
Each profile stores one selected team. Select it once before reading activities:
wenji-cli --profile prod team list
wenji-cli --profile prod team use <teamId>Activity Commands
wenji-cli activity list
wenji-cli activity list --limit 10 --json
wenji-cli activity get <activityId>
wenji-cli activity get <activityId> --jsonUse global host overrides for local or non-production environments:
wenji-cli \
--api-base-url http://localhost:5110 \
--account-api-base-url http://localhost:5210 \
--account-web-base-url http://localhost:5211 \
auth login --no-openCredentials are stored under ~/.wenji-cli/profiles/<profile>/credentials.json.
Set WENJI_CLI_HOME to redirect local storage for tests or isolated runs.
