CLI Item Importer

While most people prefer to use the GUI importer, we do provide a command-line option for importing items.

# Run the importer via cli
php artisan snipeit:import path/to/your/file.csv

Optional Arguments

OptionValuesNotesRequired
--item-typeAsset, Accessory, ConsumableDefaults to AssetNo
--logfileAny valid pathDefaults to snipe-it-directory/storage/logs/importer.logNo
--verboseNonePrints all information going to the log to screen as it processes.No
--user_idInteger representing user IDThe user id to import assets as. Defaults to 1.No
--updateNoneIf flag is passed, the importer will attempt to update items instead of ignoring duplicatesNo.