feat(cli): instance import-overrides --file (T16)

This commit is contained in:
Joseph Doherty
2026-06-18 02:27:40 -04:00
parent 2cfe0de927
commit 586d54359c
3 changed files with 157 additions and 0 deletions
+24
View File
@@ -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.