Catman...:import(3pm)
π Catman...:import(3pm) π
okay so bestie, welcome to the User Contributed Perl Documentation corner of the universe β this is the page for Catmandu::Cmd::import, and it's literally the glow-up your data deserves. β¨
π NAME π
Catmandu::Cmd::import β import items into a store
like. that's it. that's the whole job. it takes items and it puts them in a store. main character energy fr fr. π
π EXAMPLES π
here's the shape of it, bestie β memorise this vibe:
catmandu import <IMPORTER> <OPTIONS> to <STORE> <OPTIONS>
so you got your <IMPORTER>, then <OPTIONS> for the importer, then the word to (iconic little connector word, no notes), then your <STORE> and its <OPTIONS>. periodt. π
π¦ real-world slay: YAML into MongoDB
want the actual tea? here's a whole pipeline in one line:
catmandu import YAML to MongoDB --database-name items --bag book < books.yml
YAML in, MongoDB out, --database-name items, --bag book, and books.yml coming in through stdin like the queen she is. π
π₯ and if you get lost (you won't, but still)
ask for help on the individual pieces, because the importers have their own whole lore:
catmandu help importer YAML
catmandu help importer MongoDB
catmandu help importer YAML and catmandu help importer MongoDB β go read them, iykyk. πβ¨
lowkey the most important thing: the importer and the store each bring their own options, so always check their own help pages before you start guessing flags. no cap. π
written for perl v5.40.1, dated 2026-01-24 β mwah, go import something gorgeous bestie ππΈπ«Ά
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms