tilegroxy docs

Usage

Full, up-to-date usage information can be found with tilegroxy config diff -h.

Output of tilegroxy config diff -h
Compares your current configuration against a new configuration,
outputting what changed and whether serve --hot-reload can apply
it without a restart.  Outputs everything that gets added, removed,
or modified.  The output isn't a simple line-by-line diff, instead
it's contextually aware of the tilegroxy config format, so a new
layer gets recorded as one addition.

The default output is a readable, colored text mode. Consider using
json or yaml for scripted use cases. The presence of a top-level
'restart' key indicates whether a restart is needed for CICD purposes.

Exits with a status code of 0 if the configurations match and 1 if
they differ.

Usage:
  tilegroxy config diff FILE [flags]

Flags

Flags
Flag Type Default Description

-h, --help

bool

false

help for diff

--json

bool

false

Output the differences in JSON

--markdown

bool

false

Output the differences as a markdown table with one row per change

--no-color

bool

false

Turn off the colorization of the default output

--table

bool

false

Output the differences as a table with one row per change

--yaml

bool

false

Output the differences in YAML

Global flags

The following global flags are available for supplying your configuration:

  -c, --config string            A file path to the configuration file to use.
                                 The file should have an extension of either
                                 json or yml/yaml and be readable.
                                 (default "./tilegroxy.yml")
      --remote-endpoint string   The endpoint to use to connect to the remote
                                 provider (default "http://127.0.0.1:2379")
      --remote-path string       The path to use to select the configuration
                                 on the remote provider
                                 (default "/config/tilegroxy.yml")
      --remote-provider string   The provider to pull configuration from.
                                 One of: etcd, etcd3, consul, firestore, nats
      --remote-type string       The file format to use to parse the configuration
                                 from the remote provider (default "yaml")

Example

tilegroxy config diff -c current.yml candidate.yml