Sazabi
CLI

sazabi scripts

Command reference for sazabi scripts.

sazabi scripts — Manage durable project scripts. Subcommands: list, get, create, update, delete.

sazabi scripts

Manage durable project scripts

sazabi scripts <subcommand>
sazabi scripts list  # List project scripts
sazabi scripts get deploy  # Get one script
sazabi scripts create deploy --file ./deploy.sh  # Create a script
sazabi scripts update deploy --description 'Deploy helper'  # Update a script
sazabi scripts delete deploy  # Delete a script

sazabi scripts list

List scripts in the active project

sazabi scripts list [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--project-idstringNoOverride active project ID
--searchstringNoFilter by script name (case-insensitive)
--limitstringNoMaximum number of scripts to return (default: 50, max: 100)
--cursorstringNoPagination cursor from previous response
sazabi scripts list  # List project scripts
sazabi scripts list --search deploy  # Search scripts by name

sazabi scripts get

Get one project script by name

sazabi scripts get <name> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--project-idstringNoOverride active project ID
sazabi scripts get deploy  # Get one script

sazabi scripts create

Create a project script

sazabi scripts create <name> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--project-idstringNoOverride active project ID
--contentstringNoScript body text
--filestringNoRead script body from a file, or '-' for stdin
--descriptionstringNoOptional human-readable description
sazabi scripts create deploy --content '#!/usr/bin/env bash'  # Create from inline content
sazabi scripts create deploy --file ./deploy.sh  # Create from a file

sazabi scripts update

Update a project script

sazabi scripts update <name> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--project-idstringNoOverride active project ID
--contentstringNoNew script body text
--filestringNoRead new script body from a file, or '-' for stdin
--descriptionstringNoNew human-readable description
--clear-descriptionbooleanNoClear the script description
sazabi scripts update deploy --description 'Deploy helper'  # Update description only
sazabi scripts update deploy --file ./deploy.sh  # Replace script body

sazabi scripts delete

Delete a project script

sazabi scripts delete <name> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--project-idstringNoOverride active project ID
sazabi scripts delete deploy  # Delete a script