This page documents through examples how to migrate from the traditional GDAL command line utilities to the unified "gdal" command line interface added in GDAL 3.11.
Raster commands
Getting information on a raster dataset in human-readable format
Converting a georeferenced netCDF file to cloud-optimized GeoTIFF
Reprojecting a GeoTIFF file to a Deflate compressed tiled GeoTIFF file
Converting a PNG file to a tiled GeoTIFF file, adding georeferencing for world coverage in WGS 84 and metadata
Note that the order of elements differ: "upper-left-x upper-left-y lower-right-x lower-right-y" for gdal_translate, compared to "minimum-x,minimum-y,maximum-x,maximum-y" for the --bbox option of "gdal raster pipeline ... edit".
Clipping a raster with a bounding box
Creating a virtual mosaic (.vrt) from all GeoTIFF files in a directory
Creating a mosaic in COG format from all GeoTIFF files in a directory
Adding internal overviews for reduction factors 2, 4, 8 and 16 to a GeoTIFF file
Combining single-band rasters into a multi-band raster
Reorder a 3-band dataset with bands ordered Blue, Green, Red to Red, Green, Blue
Expand a dataset with a color table to RGB
Apply an external color-map to a dataset
Convert nearly black values of the collar to black
Generating tiles between zoom level 2 and 5 of WebMercator from an input GeoTIFF
Vector commands
Getting information on a vector dataset in human-readable format
Converting a shapefile to a GeoPackage
Reprojecting a shapefile to a GeoPackage
Clipping a GeoPackage file
Selecting features from a GeoPackage file intersecting a bounding box, but not clipping them to it
Selecting features from a shapefile intersecting a bounding box, but not clipping them to it and reprojecting
Selecting features from a shapefile based on an attribute query, and restricting to a few fields
Creating a GeoPackage stacking all input shapefiles in separate layers.