Command Line Interface

Obelisk Server

Running the Server

obelisk server run

Following optional options can be provided:

If the -c switch is not provided, Obelisk attempts to find the TOML configuration automatically in the following paths:

  1. obelisk.toml in the current directory
  2. $CONFIG_DIR/obelisk/obelisk.toml - See Path Prefixes
  3. /etc/obelisk/obelisk.toml

Note: server run and server verify now fail on type checking errors by default. Use --suppress-type-checking-errors to override.

Verifying the Server Configuration

Instead of running the server one might wish just to verify the TOML configuration. This includes:

obelisk server verify [OPTIONS]

Following optional options can be provided:

Obelisk Execution

Submitting an execution

obelisk execution submit [OPTIONS] <FUNCTION> [PARAMETERS]

Arguments:

Accepted Parameter Formats:

Options:

Getting the current execution state

obelisk execution get [OPTIONS] <EXECUTION_ID>

Same as with the submit command, the execution can be followed until it finishes:

Cancelling an activity or a delay request

obelisk execution cancel <ID>

Argument ID must be either a delay id (starting with Delay_), or an execution id (starting with E_) belonging to an activity.

Providing the result of a stubbed activity

obelisk execution stub <EXECUTION_ID> <RETURN_VALUE>

Arguments:

Obelisk Component

Listing available components and functions

obelisk component list [OPTIONS]

Options:

Inspecting a WASM component

This command outputs the exported functions of a WASM component similarly to obelisk component list. The component can be a local file, an OCI reference, or a GitHub release.

obelisk component inspect [OPTIONS] <COMPONENT_TYPE> <LOCATION>

Arguments:

Options:

Pushing a WASM Component into an OCI Registry

This command does not connect to the server. Use docker login to authenticate against the OCI registry first.

obelisk component push <PATH> <IMAGE_NAME>

Arguments:

Adding a component to the configuration

Add a component to the TOML configuration file.

obelisk component add [OPTIONS] <COMPONENT_TYPE> <LOCATION> --name <NAME>

Arguments:

Options:

GitHub release paths are supported via gh:// prefix. Example:

obelisk component add activity_wasm gh://obeli-sk/demo-stargazers@latest/activity_github.wasm --name activity_github --locked

Obelisk Generate

Generating extension functions

The extension WIT files of a given WASM component can be generated using:

obelisk generate wit-extensions <COMPONENT_TYPE> <INPUT_WIT_DIRECTORY> <OUTPUT_DIRECTORY>

Arguments:

Generating WIT support functions

As described in Runtime Support, Obelisk provides types and host functions described as WIT interfaces.

obelisk generate wit-support <COMPONENT_TYPE> <OUTPUT_DIRECTORY>

Arguments:

Generating WIT dependencies

Generate WIT dependency folder based on activities and workflows found in the provided TOML configuration:

obelisk generate wit-deps [OPTIONS] <OUTPUT_DIRECTORY>

Arguments:

Options:

Generating configuration

Generate a TOML configuration file:

obelisk generate config [OPTIONS] [CONFIG]

Arguments:

Options:

Generating an execution ID

Generate a new execution ID:

obelisk generate execution-id