feat(cli): instance import-overrides --file (T16)
This commit is contained in:
@@ -539,6 +539,30 @@ scadabridge --url <url> instance set-overrides --id <int> --overrides <json>
|
||||
| `--id` | yes | Instance ID |
|
||||
| `--overrides` | yes | JSON object of attribute name to value (e.g. `{"Speed": "100", "Mode": null}`); null clears an override |
|
||||
|
||||
#### `instance import-overrides`
|
||||
|
||||
Apply attribute value overrides from a CSV file. The CSV must have a header row (`AttributeName,Value,ElementType`; the `ElementType` column is optional). An empty `Value` cell clears the override for that attribute. If the file contains any parse errors, all errors are printed and no overrides are applied.
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> instance import-overrides --id <int> --file <path.csv>
|
||||
```
|
||||
|
||||
| Option | Required | Description |
|
||||
|--------|----------|-------------|
|
||||
| `--id` | yes | Instance ID |
|
||||
| `--file` | yes | Path to the override CSV file |
|
||||
|
||||
CSV format example:
|
||||
|
||||
```csv
|
||||
AttributeName,Value,ElementType
|
||||
Speed,100,
|
||||
Mode,,
|
||||
Label,"Hello, World",
|
||||
```
|
||||
|
||||
(`Value` empty = clear the override for that attribute.)
|
||||
|
||||
#### `instance alarm-override set`
|
||||
|
||||
Set (upsert) an alarm override on an instance.
|
||||
|
||||
Reference in New Issue
Block a user