rt-assets-import-csv(1)
π rt-assets-import-csv(1) π
okay bestie, so this is the manual for rt-assets-import, living in the Request Tracker Reference section of the manual pages. it's giving "one script, big job," and honestly? it ate. π¦
β¨ NAME β¨
rt-assets-import β import assets to rt π
πΈ SYNOPSIS πΈ
rt-assets-import /path/to/assets.csv
rt-assets-import --update /path/to/assets.csv
π DESCRIPTION π
okay so this script imports and updates assets from a CSV into rt. literally that's the whole vibe. β¨
for all the configuration deets, go peek at RT::Extension::Assets::Import::CSV β that's where the settings live, iykyk.
π OPTIONS π
--configfile ,-cfile β hands you an explicit extra config file that gets loaded before any other configuration files. super useful when you're doing per-importAssetsImportUniqueCFandAssetsImportFieldMappingsettings, like when you're importing from multiple sources and their columns do NOT match. π
β οΈ bestie, listen: if you use this option,RT_SiteConfig.pmshould not contain a setting forAssetsImportFieldMapping. if it does, the two hashes get merged and you get unexpected behavior. not the slay we're going for. π
--updateβ without this, existing assets (figured out by matchingAssetsImportUniqueCFvalues) are left completely untouched, like, don't perceive them. π with this option, records get updated based on their values in the CSV. glow-up mode activated. β¨--insertβ by default, assets that don't haveAssetsImportUniqueCFvalues will just throw a warning at you. with this flag, they get inserted instead (generating their own id as needed) after all the other operations. main character energy, they get their own id and everything. π--mdy,--dmyβ forces RT to parse dates asmm/dd/yyordd/mm/yyrespectively. and if you don't use either one? RT just defaults to theDateDayBeforeMonthsetting, which itself defaults todd/mm/yy. so like, day-before-month is the factory setting, periodt. π--debugβ gives you verbose output onSTDERRwhile the import is happening. very "tell me everything," very demure, very mindful. π«Ά
π reminder: every one of these flags is doing something real, so don't just vibe-check your way through a production import. read them fr fr.
perl v5.34.0 π¦ 2022-06-24 π β that's the version and the date this page was last living its truth, bestie. go import something iconic. πβ¨
π¦ where this page comes from
- debian bookworm: rt-extension-assets-import-csv-common 2.3-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms