Catman...:import(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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