LogoLogo
Home
Atuin Docs
Atuin Docs
  • Welcome
  • Getting Started
    • Runbook Basics
  • Blocks
    • Executable
      • Terminal
      • Script
      • Directory
      • Env
    • Network
      • HTTP
      • SSH
    • Databases
      • PostgreSQL
      • SQLite
      • Clickhouse
    • Monitoring
      • Prometheus
  • Templating
  • Secrets
  • Atuin Hub
    • Getting Started
    • Sharing Runbooks
    • Collaborative Editing
Powered by GitBook
On this page
  • Supported interpreters
  • Variables
  1. Blocks
  2. Executable

Script

PreviousTerminalNextDirectory

Last updated 3 months ago

The script block is a lot like a terminal block, except non-interactive. This is essentially your normal bash script, with some superpowers

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

  2. python3

  3. node

This enables you to solve a wide variety of problems! The current in-use interpreter can be changed via the dropdown in the top right

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 }}

For example

See the Templating section for full info

A simple example of script block + variable usage