Skip to content

Script

Script block
Script block

The script block is a lot like a terminal block, except non-interactive. This is essentially your normal bash script, with some superpowers. Script blocks run without user interaction, making them perfect for automation and batch processing.

Supported Interpreters

We support several different interpreters with the script block. While we default to zsh, we also support running code with the following:

  1. bash - Standard Unix shell scripting
  2. python3 - Python scripts for data processing and automation
  3. node - JavaScript/Node.js for web API interactions

The current in-use interpreter can be changed via the dropdown in the top right of the block.

Variables

The output of a script block can be captured as a variable, and reused as input for other blocks. All input fields in all blocks are templated.

Set the "output variable" name in the header of the block. You can refer to the variable with the following syntax:

{{var.variable_name}}
Script block with variables
Script block with variables

See the templating section for full information on template variables.