Once the engine module is installed as a dependency within another module, the ota
command with the following subcommands is available.
In these commands:
<service_id>
is the case sensitive name of the service declaration file without the extension. For example, for Twitter.json
, the service ID is Twitter
.<terms_type>
is the property name used under the documents
property in the declaration to declare a terms. For example, in the getting started declaration, the terms type declared is Privacy Policy
.ota track
npx ota track
Note that the snapshots and versions will be recorded at the moment the command is executed, on top of the existing local history. If a shared history already exists and the goal is to add on top of it, that history has to be downloaded before executing that command.
ota track --help
npx ota track --help
ota track [--services <service_id>...]
npx ota track --services "Facebook" "LinkedIn"
ota track [--services <service_id>...] [--types <terms_type>...]
npx ota track --services "Facebook" "LinkedIn" --types "Privacy Policy" "Terms of Service"
ota track --schedule [--services <service_id>...] [--types <terms_type>...]
npx ota track --schedule
ota validate [--services <service_id>...] [--types <terms_type>...]
npx ota validate --services "Facebook" "LinkedIn" --types "Privacy Policy" "Terms of Service"
ota validate --schema-only [--services <service_id>...] [--types <terms_type>...]
npx ota validate --schema-only --services "Facebook" "LinkedIn" --types "Privacy Policy" "Terms of Service"
ota validate --modified
npx ota validate --modified
ota lint [--services <service_id>...]
npx ota lint --services "Facebook" "LinkedIn"
ota lint --fix [--services <service_id>...]
npx ota lint --fix
ota lint --modified
npx ota lint --modified
ota dataset [--file <filename>]
npx ota dataset --file dataset.zip
To export the dataset into a ZIP file and publish it on GitHub releases:
ota dataset --publish [--file <filename>]
GITHUB_TOKEN=ghp_XXXXXXXXX npx ota dataset --publish
The GITHUB_TOKEN
can also be defined in a .env
file.
To export, publish the dataset and remove the local copy that was created after it has been uploaded:
ota dataset --publish --remove-local-copy [--file <filename>]
GITHUB_TOKEN=ghp_XXXXXXXXX npx ota dataset --publish --remove-local-copy
ota dataset --schedule [--file <filename>]
GITHUB_TOKEN=ghp_XXXXXXXXX npx ota dataset --schedule --publish --remove-local-copy
ota serve
<http://localhost>:<port>/<basePath>/<apiVersion>/<resource>
. The server port and base path are defined in the configuration.npx ota serve