sneferu login
Sign in with your Hekana account in the browser and save a developer key. Usage, options, output, exit codes and errors.
On this page
Sign in with your Hekana account in the browser and save a developer key.
Starts a device login: the CLI prints a code, you confirm it in the browser, and the CLI saves the developer key it receives on this machine. After that push and whoami use it. Needs network and a Hekana account.
Requirements: Needs network and a Hekana account (a browser step).
Usage
sneferu login [options]Arguments
None.
Options
| Option | Default | Description |
|---|---|---|
--api-url <url> | https://api.hekana.com/api/v1 | Hekana API URL. Default: HEKANA_API_URL, or https://api.hekana.com/api/v1. |
Examples
sneferu loginSign in with the default API.
Output
sneferu login --api-url http://127.0.0.1:9 (exit 1): Deterministic failure: nothing listens on that address. A successful login needs the browser step and is not shown here.
✖ could not reach http://127.0.0.1:9: fetch failedExit codes
| Code | Meaning |
|---|---|
0 | The key was saved. |
1 | The API was not reachable, login was denied or the code expired. |
Common errors
✖ The code expired. Run sneferu login again
The code was not confirmed in time. Run sneferu login again and confirm sooner.
✖ Login was denied
The request was denied in the browser. Run sneferu login again and approve it.
