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 scriptsazabi scripts list
List scripts in the active project
sazabi scripts list [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--search | string | No | Filter by script name (case-insensitive) |
--limit | string | No | Maximum number of scripts to return (default: 50, max: 100) |
--cursor | string | No | Pagination cursor from previous response |
sazabi scripts list # List project scripts
sazabi scripts list --search deploy # Search scripts by namesazabi scripts get
Get one project script by name
sazabi scripts get <name> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi scripts get deploy # Get one scriptsazabi scripts create
Create a project script
sazabi scripts create <name> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--content | string | No | Script body text |
--file | string | No | Read script body from a file, or '-' for stdin |
--description | string | No | Optional 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 filesazabi scripts update
Update a project script
sazabi scripts update <name> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--content | string | No | New script body text |
--file | string | No | Read new script body from a file, or '-' for stdin |
--description | string | No | New human-readable description |
--clear-description | boolean | No | Clear the script description |
sazabi scripts update deploy --description 'Deploy helper' # Update description only
sazabi scripts update deploy --file ./deploy.sh # Replace script bodysazabi scripts delete
Delete a project script
sazabi scripts delete <name> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi scripts delete deploy # Delete a script