The offline-update command downloads updates for Xray's vulnerability database. You can build the command structure using the Xray UI.
Command:
xr offline-update (alias: xr ou)
Command Options:
| Option | Required | Default | Description |
|---|---|---|---|
--license-id | Yes | — | Xray license ID. |
--from | No | — | (DBSync v1 only) |
--to | No | — | (DBSync v1 only) |
--version | No | — | Xray API version. |
--target | No | ./ | Destination path for downloaded update files. |
--stream | No | false | Set to true to use the Xray DBSync V3 stream. Acceptable values: public_data, exposures, contextual_analysis. |
--periodic | No | false | Set to true to download the Xray DBSync V3 Periodic Package (must be used with the --stream flag). |