Skip to content

Local Script Environment

Use the script adapter when you need custom setup, checks, glue code, or simple automation.

version: ork/1.0
metadata:
id: script-example
description: Local script environment
owner:
name: Ork
email: ork@example.com
runners:
local:
type: local
config: {}
components:
setup:
type: script
runner: local
source:
embedded: |
echo "message=hello from ork" >> "$ORK_OUTPUT_ENV"
outputs:
- name: message

Apply it:

Terminal window
ork up --env-id script-demo

Inspect state:

Terminal window
ork state inspect --env-id script-demo

Destroy it:

Terminal window
ork down --env-id script-demo