Shopify CLI Docs

shopify app function build

Compile a function to wasm.

Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.

Usage

shopify app function build [flags]

Summary

Compile a function to wasm.

Flags

  • --client-id <value> string — The Client ID of your app. optional Environment: SHOPIFY_FLAG_CLIENT_ID.
  • --no-color — Disable color output. optional Environment: SHOPIFY_FLAG_NO_COLOR.
  • --path <value> string — The path to your function directory. optional Environment: SHOPIFY_FLAG_PATH.
  • --reset — Reset all your settings. optional Environment: SHOPIFY_FLAG_RESET.
  • --verbose — Increase the verbosity of the output. optional Environment: SHOPIFY_FLAG_VERBOSE.
  • -c, --config <value> string — The name of the app configuration. optional Environment: SHOPIFY_FLAG_APP_CONFIG.

Official source

On this page