Skip to content

Local Script Environment

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

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

Apply it:

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

Inspect state:

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

Destroy it:

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