Getting Started#
Get up and running with GeoServer CLI in minutes.
Quick Navigation#
- Installation - Install GeoServer CLI
- Configuration - Configure your GeoServer connection
- Quick Start - First steps and basic workflow
- Troubleshooting - Common issues and solutions
What is GeoServer CLI?#
GeoServer CLI is a command-line tool for managing GeoServer instances via the REST API. It provides a fast, scriptable interface for:
- Managing workspaces and datastores
- Publishing layers from PostGIS and files
- Managing styles (SLD)
- Configuring layers
- Exporting to QGIS
Prerequisites#
Before you begin, ensure you have:
- Go 1.24 or later - For building from source
- Access to GeoServer - A running GeoServer instance with REST API enabled
- Basic command-line knowledge - Familiarity with terminal/shell
Installation Overview#
Three ways to install:
- Build from source (recommended for development)
- Download binary (coming soon)
- Docker (for containerized environments)
See Installation Guide for details.
Configuration Overview#
GeoServer CLI uses a flexible configuration system:
- Config files - TOML files in
configs/directory - Environment variables - Override any config setting
- CLI flags - Override per-command
See Configuration Guide for details.
First Steps#
After installation, follow these steps:
Initialize configuration:
1./geoserver-cli config initEdit configuration:
1vim configs/default.config.tomlTest connection:
1./geoserver-cli workspace listFollow Quick Start: See Quick Start Guide for a complete workflow
Learning Path#
Beginner#
- Installation - Get the CLI installed
- Configuration - Set up your connection
- Quick Start - First workflow
- Commands - Explore available commands
Intermediate#
- Publishing Workflows - Advanced publishing
- Configuration Management - Multi-environment setup
- QGIS Integration - Export to QGIS
- Best Practices - Production guidelines
Advanced#
- Building - Build customized versions
- Contributing - Contribute code
- API Reference - Deep dive into internals
Next Steps#
- New users: Start with Installation
- Returning users: Jump to Quick Start
- Problems?: Check Troubleshooting
- Questions?: See FAQ