# Set up the CLI prerelease

Use JobHunt from a terminal with the shared HTTP contracts.

Canonical page: https://jobhunt.app/support/developers/cli/set-up-the-cli
Updated: 2026-10-28
Audience: developers
Topic: CLI
Type: how-to
Catalog revision: f77de0f4803debf8c5aaac1702865d976a380e994ea7f572d4e571c044d5495f
Contract SHA-256: acfda93724db1a3f53160a30bc5891f447ad14601f26b02ff4cacd7c17d0812e

## Steps

1. **Build the release candidate**

   From a checkout containing packages, use Node 22.23.3 and npm 10.9.2. In packages, run npm ci --ignore-scripts, then npm run build.

2. **Authorize in your browser**

   Run node cli/dist/jobhunt.js auth login. Review OAuth consent. Use --no-browser if you need to open the authorization link yourself.

3. **Confirm the connection**

   Run node cli/dist/jobhunt.js account connected --json. Use --help to explore commands and request explicit scopes for another workflow.

## Expected result

The CLI uses the HTTP API and saved exact-origin credentials, not browser-session cookies.

## Troubleshooting and recovery

Public npm installation and full macOS/Windows release verification are not available yet. For automation, supply a scoped credential through JOBHUNT_TOKEN rather than a command-line token.

## API operations

### get_connected_account

Identify the JobHunt account connected by these credentials. The opaque account ID stays unchanged across renaming, reconnection and token refresh. This does not select or change a resume contact profile.

- Interface: GET /api/v1/journey/get_connected_account
- Access: read
- Destructive: no
- Availability: connected-journey
- Required permissions: read:profile
- [Operation and exact schemas](https://jobhunt.app/support/operations/get_connected_account.json)
- [Operation Markdown](https://jobhunt.app/support/operations/get_connected_account.md)

## Related guides

- [Make your first API request](https://jobhunt.app/support/developers/getting-started/first-request.md)
- [Authentication and permissions](https://jobhunt.app/support/developers/authentication/scopes-and-accounts.md)
- [Connect through MCP](https://jobhunt.app/support/developers/mcp/connect-your-assistant.md)
