Your first script
A script is a reusable piece of code that flows execute. This tutorial walks you through creating one, running it, and deploying it.
Prerequisites: The Orvanta CLI installed and a workspace connected. See Installation.
-
Create a script
Terminal window orvanta script new f/demo/greet pythonThis scaffolds a script at the path
f/demo/greet. Edit the generated file so itsmainfunction takes aname:def main(name: str):return f"Hello, {name}!"The input schema is derived from
main’s parameters — Orvanta uses it to validate inputs and to build an auto-generated UI. -
Run it with sample input
Terminal window orvanta script run f/demo/greet --data '{"name": "Ada"}'You should see
Hello, Ada!in the output. -
Preview without deploying
Terminal window orvanta script preview f/demo/greet --data '{"name": "Ada"}' -
Deploy to the workspace
Terminal window orvanta sync pushThe script is now available to any flow in the workspace.
What next?
Section titled “What next?”- Your first workflow — Use this script inside a flow.
- Concepts: Scripts — Runtimes, schemas, and versioning.
- CLI: /script — Full command reference.