gdal-dataset-rename(1)

gdal-dataset-rename1

Rename files of a dataset added in version 3.12. gdal dataset rename rename the dataset file(s), including potential side-car/associated files.

Usage

Usage: gdal dataset rename [OPTIONS] <SOURCE> <DESTINATION>
Rename files of a dataset.
Positional arguments:
  --source <SOURCE>            Source dataset name [required]
  --destination <DESTINATION>  Destination dataset name [required]
Common Options:
  -h, --help                   Display help message and exit
  --json-usage                 Display usage as JSON document and exit
  --config <KEY>=<VALUE>       Configuration option [may be repeated]
Options:
  --overwrite                  Whether overwriting existing output dataset is allowed
Advanced Options:
  -f, --format <FORMAT>        Dataset format

Options

--source <FILENAME>

Source file name or directory name. Required.

--destination <FILENAME>

Destination file name or directory name. Required.

-f, ---format <FORMAT>

Dataset format. Overrides the automatic format detection.

--overwrite

Allow program to overwrite existing target file or dataset. Otherwise, by default, gdal errors out if the target file or dataset already exists.

Return status code

The program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution).

Examples

Example 1: Rename a dataset

$ gdal dataset rename old_name.tif new_name.tif

Author

Even Rouault <[email protected]>

From gdal 3.13.3-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.