# atuin scripts

<!-- Generated by web/apps/docs/scripts/gen-reference.ts from the Atuin source. Do not edit. -->

Manage your scripts with Atuin

```sh
atuin scripts <COMMAND>
```

## `atuin scripts new`

```sh
atuin scripts new [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

### Options

- `-d <DESCRIPTION>`, `--description <DESCRIPTION>`
- `-t <TAGS>`, `--tags <TAGS>`: Can be repeated.
- `-s <SHEBANG>`, `--shebang <SHEBANG>`
- `--script <SCRIPT>`
- `--last <LAST>`: Use the last command as the script content
  
  Optionally specify a number to use the last N commands
- `--no-edit`: Skip opening editor when using --last

## `atuin scripts run`

```sh
atuin scripts run [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

### Options

- `-v <VAR>`, `--var <VAR>`: Specify template variables in the format KEY=VALUE
  
  Example: -v name=John -v greeting="Hello there". Can be repeated.

## `atuin scripts list`

```sh
atuin scripts list
```

## `atuin scripts get`

```sh
atuin scripts get [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

### Options

- `-s`, `--script`: Display only the executable script with shebang

## `atuin scripts edit`

```sh
atuin scripts edit [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

### Options

- `-d <DESCRIPTION>`, `--description <DESCRIPTION>`
- `-t <TAGS>`, `--tags <TAGS>`: Replace all existing tags with these new tags. Can be repeated.
- `--no-tags`: Remove all tags from the script
- `--rename <RENAME>`: Rename the script
- `-s <SHEBANG>`, `--shebang <SHEBANG>`
- `--script <SCRIPT>`
- `--no-edit`: Skip opening editor

## `atuin scripts delete`

```sh
atuin scripts delete [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

### Options

- `-f`, `--force`