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
sneferu push [options] [dir]Arguments
| Argument | Required | Default | Description |
|---|---|---|---|
dir | no | . | Theme folder. |
Options
| Option | Default | Description |
|---|---|---|
--package <slug> | required | Theme package on Hekana. Required; must equal the id in theme.json. |
--dev-store | off | Then install and publish the version on your dev store (developer key only). |
Examples
sneferu push --package my-themeUpload the current folder.
sneferu push my-theme --package my-theme --dev-storeUpload and publish on your dev store.
Output
sneferu push my-theme --package my-theme (exit 1): With no saved key and no HEKANA_TOKEN.
✖ Not logged in. Run sneferu login, or set HEKANA_TOKENsneferu push my-theme (exit 1): --package is required.
error: required option '--package <slug>' not specifiedExit codes
| Code | Meaning |
|---|---|
0 | Pushed (and published, with --dev-store). |
1 | Not 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.
