Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

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

bash
sneferu login [options]

Arguments

None.

Options

OptionDefaultDescription
--api-url <url>https://api.hekana.com/api/v1Hekana API URL. Default: HEKANA_API_URL, or https://api.hekana.com/api/v1.

Examples

bash
sneferu login

Sign 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.

text
✖ could not reach http://127.0.0.1:9: fetch failed

Exit codes

CodeMeaning
0The key was saved.
1The 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.

Next steps