Commands Reference#
Complete reference for all GeoServer CLI commands. Commands are organized by functionality.
Configuration#
Manage CLI configuration files and settings.
- Configuration - Initialize, show, and validate configuration files
Workspaces#
Manage GeoServer workspaces - logical containers for organizing data.
- Workspaces - List, get, create, and delete workspaces
Datastores#
Configure data source connections (PostGIS, Shapefiles, etc.).
- Datastores - Manage datastores and connection parameters
Styles#
Manage styling for layers using SLD (Styled Layer Descriptor).
- Styles - Create, update, and manage styles
Publishing#
Publish layers from various data sources to GeoServer.
- Publishing Overview - Publishing workflows and concepts
- PostGIS Publishing - Publish layers from PostGIS databases
- File Import - Publish layers from files (Shapefiles, GeoTIFF)
Layers#
Configure and manage published layers.
- Layers - Update layer configuration (styles, enabled, advertised)
Coverages#
Manage raster data and coverage stores.
- Coverages - Manage coverage stores and raster layers (GeoTIFF, ImageMosaic, etc.)
QGIS Integration#
Generate QGIS connection files and projects for easy access to GeoServer layers.
- QGIS Overview - QGIS integration overview
- QGIS Connections - Export QGIS connection XML files
- QGIS Projects - Generate QGIS project files
Version#
Display version information.
- Version - Show CLI version and build information
Quick Reference#
Common Workflows#
Initial Setup:
| |
Style Management:
| |
QGIS Export:
| |
Command Structure#
All commands follow a consistent structure:
| |
Global Flags#
Available on all commands:
--config, -c- Config file selector (file path or name)--base-url- GeoServer REST base URL--user- GeoServer username--password- GeoServer password--timeout- HTTP timeout (e.g.,10s,1m)
Workspace Flag#
Many commands support workspace selection:
--workspace, -w- Workspace name (defaults toGEOSRVCLI_DEFAULT_WORKSPACE)
Getting Help#
For detailed help on any command:
| |
Example:
| |