batch-create command inserts multiple records into a table from a CSV or JSON file. Each row or object becomes one record. Use --dry-run to preview before committing.Batch-create records from a CSV or JSON file.
batch-create command inserts multiple records into a table from a CSV or JSON file. Each row or object becomes one record. Use --dry-run to preview before committing.sn batch-create <table> <file> [--dry-run] Batch-create records from CSV or JSON.
| Name | Required | Description |
|---|---|---|
| table | Yes | The target table. |
| file | Yes | Path to a .csv or .json file. |
| Flag | Default | Description |
|---|---|---|
| --dry-run | — | Validate and preview records without inserting them. |
sn batch-create cmdb_ci_server servers.csv