---
title: "ezgh fleets scripts new-version"
description: "Save a new version of 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 new-version

{/* 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 new-version <script> --file path [--param spec]... [flags]
```

Save a new version of a script: its body from `--file` (- reads stdin) and its parameters (`--param`, as for create). Runs choose a version; the latest is the default.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--file` | string |  | the script's body (- reads stdin) |
| `--param` | string, repeatable |  | a parameter, name\[:type\]\[:required\]\[=default\] (repeat) |

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

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