OTO
reference · oto publish --help at v0.6.1

oto publish

push the built store to a read-only query repository

oto publish [-h] [--project PROJECT] --repo REPO [--branch BRANCH] [--source SOURCE]
                   [--engine ENGINE] [--site]

Options

OptionWhat it does
--project PROJECTproject root (default: current directory)
--repo REPOthe query repository: an https URL, ssh URL or local path
--branch BRANCH
--source SOURCEwhat produced it, e.g. org/knowledge@<sha>, recorded in the manifest
--engine ENGINEengine repository named in the store's README
--sitealso push build/site/ (from `oto build --target site`) as site/ beside the store

Where to use it

Readers need answers, not documents.

oto publish --project claims --repo https://github.com/<org>/claims-query

pushes the built store to a read-only query repository; the deploy workflow does this on merge

With the static site beside it.

oto publish --project claims --repo https://github.com/<org>/claims-query --site

also pushes build/site/ as site/

As the terminal prints it
usage: oto publish [-h] [--project PROJECT] --repo REPO [--branch BRANCH] [--source SOURCE]
                   [--engine ENGINE] [--site]

options:
  -h, --help         show this help message and exit
  --project PROJECT  project root (default: current directory)
  --repo REPO        the query repository: an https URL, ssh URL or local path
  --branch BRANCH
  --source SOURCE    what produced it, e.g. org/knowledge@<sha>, recorded in the manifest
  --engine ENGINE    engine repository named in the store's README
  --site             also push build/site/ (from `oto build --target site`) as site/ beside the
                     store