Command Palette
Search for a command to run...

heim

Heim is a package manager for self-hosted apps

Synopsis

A one-click package manager for self-hosted apps.

Heim is a tool that helps you deploy and manage self-hosted apps on your server without worrying about the setup, configuration, and maintenance.

With --json, stdout carries one JSON event per line (NDJSON) and interactive prompts fail with the error code interaction_required:

  • {"type": "log", "level": "debug|info|success|warning|error|fatal", "message": "..."} (debug only with --verbose)
  • {"type": "progress", "id": 1, "message": "...", "current": <bytes>, "total": <bytes, omitted if unknown>, "done": true|false}
  • {"type": "data", "data": <command-specific>}
  • {"type": "error", "code": "...", "message": "...", "details": {...}}

Error codes: internal, invalid_argument, app_not_found, app_not_running, docker_not_running, validation_failed, passphrase_required, passphrase_mismatch, interaction_required.

Options

  -h, --help            help for heim
      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

  • heim backup - Creates a backup of one or more apps
  • heim build - Builds an app from an heim.ts file
  • heim config - Read and write configurations of apps and heim itself
  • heim init - Scaffolds a new Heim app
  • heim install - Installs an app either from a registry or from a .heim file
  • heim list - Lists all the apps installed on your server
  • heim login - Log in to an apps registry to publish apps and pull private apps. Does not work in the CI.
  • heim logout - Logout from an apps registry
  • heim publish - Publishes an app from a heim.yml file to an registry
  • heim pull - Downloads an app from a registry and saves it as a .heim file
  • heim restart - Restarts an installed app
  • heim restore - Restores an app from a backup
  • heim start - Starts an installed app
  • heim stop - Stops an installed app
  • heim uninstall - Uninstalls an app
  • heim update - Updates one or more apps
  • heim upgrade - Upgrades the Heim Engine and CLI to the latest version
  • heim version - Prints the version of the Heim Engine and CLI

heim backup

Creates a backup of one or more apps

Synopsis

This command creates a backup of one or more apps. Omit the arguments to back up every installed app.

With --json the result data is {"archive": "<absolute path>", "encrypted": true|false, "apps": ["<id>", ...]}, progress events report the bytes written per app, and a passphrase must be provided via --passphrase-file or --no-encrypt.

heim backup <id> <id2> ... [flags]

Options

  -h, --help                     help for backup
      --no-encrypt               Write an unencrypted backup (contains the apps' passwords in plain text)
  -o, --output string            Path to write the backup archive to (defaults to a timestamped file in the current directory)
      --passphrase-file string   File containing the passphrase to encrypt the backup with, instead of prompting for it

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim build

Builds an app from an heim.ts file

Synopsis

This command builds an app from an heim.ts file into a single .heim file.

With --json the result data is {"metadata": {...}, "analysis": {"files": [{"path": "...", "size": <bytes>}], "compressedSize": <bytes>, "uncompressedSize": <bytes>, "sha256": "..."}}.

heim build <file> [flags]

Options

  -h, --help            help for build
  -o, --output string   Path to write the <app>.heim file to (defaults to PATH/<app>.heim)

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim config

Read and write configurations of apps and heim itself

Synopsis

The config command allows you to read and write configurations of heim itself and apps.

heim config [flags]

Options

  -h, --help   help for config

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

heim config get

Gets a configuration value for a specific app

Synopsis

This command prints the value of a configuration key of an app. With --json the result data is {"key": "...", "value": "..."}, where value is null if no value is set.

heim config get [id] [key] [flags]

Options

  -h, --help   help for get

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

  • heim config - Read and write configurations of apps and heim itself

heim config list

Lists all configuration values for a specific app

Synopsis

This command lists all configuration keys and their values of an app.

With --json the result data is [{"key": "...", "value": "...", "secret": true/false}], where value is null if no value is set.

heim config list [id] [flags]

Options

  -h, --help   help for list

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

  • heim config - Read and write configurations of apps and heim itself

heim config remove

Removes a configuration value for a specific app

heim config remove [id] [key] [flags]

Options

  -h, --help   help for remove

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

  • heim config - Read and write configurations of apps and heim itself

heim config set

Sets a configuration value for a specific app

heim config set [id] [key] [value] [flags]

Options

  -h, --help     help for set
      --secret   Encrypt the value in the database

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

  • heim config - Read and write configurations of apps and heim itself

heim config system

Read and write heim's own configuration

Synopsis

The system command allows you to read and write heim's own configuration properties, such as the timezone.

heim config system [flags]

Options

  -h, --help   help for system

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

heim config system get

Gets a system configuration value

Synopsis

This command prints the value of a system configuration key. With --json the result data is {"key": "...", "value": "..."}, where value is null if no value is set.

heim config system get [key] [flags]

Options

  -h, --help   help for get

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

heim config system list

Lists all system configuration values

Synopsis

This command lists all system configuration keys and their values.

With --json the result data is [{"key": "...", "value": "...", "secret": true/false}], where value is an empty string if no value is set.

heim config system list [flags]

Options

  -h, --help   help for list

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

heim config system set

Sets a system configuration value

heim config system set [key] [value] [flags]

Options

  -h, --help   help for set

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

SEE ALSO

heim init

Scaffolds a new Heim app

heim init [flags]

Options

  -h, --help   help for init

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim install

Installs an app either from a registry or from a .heim file

Synopsis

This command installs an app either from a registry or from a .heim file. Apps are automatically started.

heim install [reference or filepath] [flags]

Options

  -h, --help                   help for install
  -i, --input stringToString   provide input values for the installation script (default [])
  -n, --non-interactive        disable interactive prompts and use default values for inputs, installation can fail if no default value is available
  -o, --override               override the app if it is already installed (no data will be deleted, assets and db metadata will be overridden)
  -s, --scheme string          custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim list

Lists all the apps installed on your server

Synopsis

Lists all the apps installed on your server. This also includes stopped apps.

With --json the result data is an array of the installed apps: [{"registry": "...", "namespace": "...", "metadata": {...}, "inputs": {...}, "ui": {...}, "compose": {...}, "script": "..."}].

heim list [flags]

Options

  -h, --help   help for list

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim login

Log in to an apps registry to publish apps and pull private apps. Does not work in the CI.

heim login [flags]

Options

  -h, --help              help for login
  -r, --registry string   custom registry host (default "heimapps.com")
  -s, --scheme string     custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim logout

Logout from an apps registry

heim logout [flags]

Options

  -h, --help              help for logout
  -r, --registry string   custom registry host (default "heimapps.com")
  -s, --scheme string     custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim publish

Publishes an app from a heim.yml file to an registry

heim publish [path] [flags]

Options

  -h, --help               help for publish
  -n, --namespace string   namespace to publish to (e.g. an organization), defaults to your personal namespace
      --private            publish a new app as private (existing apps keep their visibility)
  -r, --registry string    custom registry host (default "heimapps.com")
  -s, --scheme string      custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim pull

Downloads an app from a registry and saves it as a .heim file

Synopsis

This command resolves an app reference on the registry, downloads the latest matching released version and saves it as a .heim file.

heim pull [reference] [flags]

Options

  -h, --help            help for pull
  -o, --output string   output file path (default "<slug>.heim")
  -s, --scheme string   custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim restart

Restarts an installed app

Synopsis

This command manually restarts an installed app.

heim restart [id] [flags]

Options

  -h, --help   help for restart

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim restore

Restores an app from a backup

Synopsis

This command restores an app from a backup.

heim restore [backup] [flags]

Options

  -h, --help                     help for restore
  -o, --override                 Force override ALL application data in case it is already installed
      --passphrase-file string   File containing the passphrase of an encrypted backup, instead of prompting for it

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim start

Starts an installed app

Synopsis

This command manually starts an installed app. After installation, apps are automatically started.

heim start [id] [flags]

Options

  -h, --help   help for start

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim stop

Stops an installed app

Synopsis

This command manually stops an installed app. During uninstallation, apps are automatically stopped.

heim stop [id] [flags]

Options

  -h, --help   help for stop

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim uninstall

Uninstalls an app

Synopsis

This command uninstalls an app. By default, NO data is deleted.

heim uninstall [id] [flags]

Options

  -d, --delete-data   Force deleting ALL application data
  -h, --help          help for uninstall

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim update

Updates one or more apps

Synopsis

This command updates one or more apps. Omit the arguments to update every installed app.

With --json the available updates are emitted as data [{"id": "...", "installedVersion": "...", "newVersion": "...", "intermediateVersions": ["..."]}] before the apps are updated, and --non-interactive is required to skip the confirmation prompt.

heim update <id> <id2> ... [flags]

Options

  -h, --help                   help for update
  -i, --input stringToString   provide input values for the installation script (default [])
  -n, --non-interactive        disable interactive prompts, skips the update confirmation and uses default values for new inputs, can fail if no default value is available
  -s, --scheme string          custom registry scheme (default "https")

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim upgrade

Upgrades the Heim Engine and CLI to the latest version

heim upgrade [flags]

Options

  -h, --help   help for upgrade

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

heim version

Prints the version of the Heim Engine and CLI

heim version [flags]

Options

  -h, --help   help for version

Options inherited from parent commands

      --json            Output one JSON event per line on stdout and disable interactive prompts
      --no-formatting   Disable all output formatting like colors and styles
      --verbose         Enable verbose output

Built with by Sharknoon
Legal Privacy
ende