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 push

Upload the theme source to Hekana as a new version. Usage, options, output, exit codes and errors.

On this page

Upload the theme source to Hekana as a new version.

Compiles the folder locally first and stops on errors, checks that the package slug equals the theme.json id, then uploads the source. With --dev-store it also installs and publishes the version on your dev store. Authentication is sneferu login, or the HEKANA_TOKEN environment variable; HEKANA_API_URL overrides the API address. The success line has the form ✔ pushed <package>@<version> → version <id> (<status>, hash <hash>) (taken from the SDK source; not run here because it writes to a live account).

Requirements: Needs network and a Hekana sign-in.

Usage

bash
sneferu push [options] [dir]

Arguments

ArgumentRequiredDefaultDescription
dirno.Theme folder.

Options

OptionDefaultDescription
--package <slug>requiredTheme package on Hekana. Required; must equal the id in theme.json.
--dev-storeoffThen install and publish the version on your dev store (developer key only).

Examples

bash
sneferu push --package my-theme

Upload the current folder.

bash
sneferu push my-theme --package my-theme --dev-store

Upload and publish on your dev store.

Output

sneferu push my-theme --package my-theme (exit 1): With no saved key and no HEKANA_TOKEN.

text
✖ Not logged in. Run sneferu login, or set HEKANA_TOKEN

sneferu push my-theme (exit 1): --package is required.

text
error: required option '--package <slug>' not specified

Exit codes

CodeMeaning
0Pushed (and published, with --dev-store).
1Not signed in, the theme has errors, the package does not match theme.json id, the API refused the upload, or an option is missing.

Common errors

✖ theme.json id "<id>" does not match --package "<slug>"

The package slug differs from the id in theme.json. Use the id from theme.json as --package, or change the id. See SN3012.

✖ not pushed: fix the errors above

The local compile found errors; the diagnostics are printed above this line. Fix them; run sneferu validate to repeat the check. See errors.

✖ --dev-store needs a developer key ...

Signed in with an admin HEKANA_TOKEN. Run sneferu login to get a developer key.

Next steps