sndev.io / docs

batch-create

Batch-create records from a CSV or JSON file.

The 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.

Arguments

NameRequiredDescription
tableYesThe target table.
fileYesPath to a .csv or .json file.

Flags

FlagDefaultDescription
--dry-runValidate and preview records without inserting them.

Examples

sn batch-create cmdb_ci_server servers.csv
Batch creating records in cmdb_ci_server...
✓ Created 45/45 records
Done (3.2s)