export static command

The export meta command

  • Exports a static gallery
  • Requires only static webserver like nginx or Apache
  • Supports subset exports via query
gallery.js export static

Create a static website export

Options:
      --version              Show version number                       [boolean]
      --full-version         Show full build version                   [boolean]
  -l, --log-level            Console log level
         [string] [choices: "trace", "debug", "info", "warn", "error", "silent"]
  -J, --log-json-format      Log output format in json                 [boolean]
  -L, --log-file             Log file
      --log-file-level       Log file level
  [string] [choices: "trace", "debug", "info", "warn", "error"] [default: "debug
                                                                              "]
  -c, --config               Configuration file
      --auto-config          Search for configuration on common configuration di
                             rectories                 [boolean] [default: true]
  -d, --database             Database filename                        [required]
  -e, --events               Events filename
  -s, --storage              Storage directory                        [required]
  -o, --output               Output directory of export
  -f, --file                 Archive filename of export. Must end with .zip or .
                             tar.gz                                     [string]
  -k, --keep                 Keep outputdirectory on archives          [boolean]
  -q, --query                Search query for matching entries          [string]
  -b, --base-path, --prefix  Base path of static page. e.g. "/gallery"
                                                         [string] [default: "/"]
      --edit                 Enable edit menu         [boolean] [default: false]
  -h, --help                 Show help                                 [boolean]
      --level                                                   [default: debug]