Catman...:export(3pm)

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

✨ NAME ✨

okay so bestie, this page is for Catman...:export β€” that's the manual name, and it lives in the 3pm section, filed under User Contributed Perl Documentation 🫢

and what does it do?? it exports items from a store πŸ’… that's the whole vibe. one job. and it ate.


🌸 EXAMPLES 🌸

like, the entire structure is basically this, no cap:

catmandu export <STORE> <OPTIONS> to <EXPORTER> <OPTIONS>

see the shape of it? you point at a STORE, you toss in your OPTIONS, you say the word to, and then you name your EXPORTER with its own OPTIONS. it's giving "take my stuff and put it over there" πŸŽ€


πŸ¦‹ real ones, actually running it

pulling stuff out of MongoDB and yeeting it into YAML:

catmandu export MongoDB --database-name items --bag book to YAML

look at her go ✨ --database-name items, --bag book, and then to YAML. immaculate.


πŸ’œ ElasticSearch, but make it fancy

catmandu export ElasticSearch --bag book --sru-sortkeys 'title,,1' --cql-query '(title = "test")'

okay this one is highkey the main character β€” you got --bag book, you got --sru-sortkeys 'title,,1' (yes, those commas are load-bearing, don't touch them πŸ™ˆ), and you got --cql-query '(title = "test")' to filter down to just the good stuff. obsessed.


πŸ’– and when you're confused (no shame, we've all been there)

catmandu help store MongoDB
catmandu help exporter YAML

fr fr, if you don't know what a store or an exporter takes, just ask the help command. it's literally right there. iykyk 🌈


🫢 quick vibe check: every <STORE>, <OPTIONS>, <EXPORTER> in that synopsis is a placeholder β€” swap in your actual names before you hit enter, bestie. the angle brackets are not a decoration situation πŸ’€

and that's the whole page!! written up for perl v5.40.1, dated 2026-01-24 β€” go forth and export, you absolute icon πŸ‘‘

πŸ“¦ where this page comes from