---
title: "ezgh fleets scripts create"
description: "Save a script."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh fleets scripts create

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh fleets scripts create <name> --file path [--shell sh|bash] [--param spec]... [flags]
```

Save a script as its version 1: its body from `--file` (- reads stdin), run with `--shell` (sh, the default, or bash). Each `--param` declares a parameter the script reads as EZGH_PARAM\_&lt;NAME&gt;: name\[:string\|integer\|boolean\]\[:required\]\[=default\], for example service:string:required or force:boolean=false. A version never changes once saved; `new-version` saves another.

Part of [`ezgh fleets scripts`](/cli/reference/fleets-scripts).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--description` | string |  | what it does |
| `--file` | string |  | the script's body (- reads stdin) |
| `--param` | string, repeatable |  | a parameter, name\[:type\]\[:required\]\[=default\] (repeat) |
| `--shell` | string | `sh` | the shell it runs with: sh or bash |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/fleets-scripts-create/index.mdx
