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 terms 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 trackNote 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 [--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 –scheduleota validate declarations [--services <service_id>...] [--types <terms_type>...]
npx ota validate declarations –services “Facebook” –types “Privacy Policy”ota validate declarations --schema-only [--services <service_id>...] [--types <terms_type>...]
npx ota validate declarations –schema-only –services “Facebook” –types “Privacy Policy”ota validate declarations --modified
npx ota validate declarations –modifiedota lint [--services <service_id>...]
npx ota lint –services “Facebook” “LinkedIn”ota lint --fix [--services <service_id>...]
npx ota lint –fixota lint --modified
npx ota lint –modifiedota validate metadata
npx ota validate metadataota dataset [--file <filename>]
npx ota dataset –file dataset.zipTo 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 –publishThe 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-copyota dataset --schedule [--file <filename>]
GITHUB_TOKEN=ghp_XXXXXXXXX npx ota dataset –schedule –publish –remove-local-copyota serve
<http://localhost>:<port>/<basePath>/<apiVersion>/<resource>. The server port and base path are defined in the configuration.npx ota serve