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

# squarecloud db update

> Updates the name or memory of your database on Square Cloud.

Updates the name and/or the allocated memory of a database. At least one of `--name` or `--memory` is required; running the command without either prints the command help instead. The database ID is optional: the CLI resolves it from the argument, then falls back to an interactive picker.

```bash theme={null}
squarecloud db update <dbID> --name new-name
# Renames the database.
```

```bash theme={null}
squarecloud db update <dbID> --memory 1024
# Updates the allocated memory to 1024MB.
```

```bash theme={null}
squarecloud db update --name new-name --memory 1024
# Uses an interactive picker to choose the database, then updates both fields.
```

Use `squarecloud db update --help` for more information about this command.
