catmandu - LibreCat command line tools
catmandu [COMMAND] [-?hqv] [long options...] [ARGS] catmandu help data catmandu help config # Import a JSON file into the default store (set in catmandu.yml) catmandu data --into-bag data < test.json # Import a YAML file into the default store catmandu data --from-importer YAML --into-bag data < test.yaml # Export a JSON file from the default store catmandu data --from-bag data > test.json # Export a YAML file from the default store catmandu data --from-bag data --into-exporter YAML > test.yaml
Data manipulation commands: import, export, store, search.
Documentation about command line options.
Verbose output.
Display the help screen.
Specifies Perl library include paths, like perl's -I option. This option is repeatable.
Search upwards from this path for configuration files and accompanying lib directories. This option is repeatable.
Read items from a Catmandu::Store such as: DBI, MongoDB, Solr, ElasticSearch, ...
Read items from a Catmandu::Importer such as: YAML, JSON, CSV, MARC, OAI ...
This option should be used in combination with a --from-store. Select from the Store only the items belonging to the bag BAG_NAME.
To include configuration options to a Catmandu::Store or Catmandu::Importer an argument with prefix '--from-' can be used. E.g. to provide an 'url' to an Importer use:
--from-url http://my.url
Add each item read into a Catmandu::Exporter such as: JSON, YAML, Template, XLS, ...
Add each item read into a Catmandu::Store such as: DBI, MongoDB, Solr, ElasticSearch, ...
This option should be used in combination with a --into-store. Add each item into the Store with bag BAG_NAME.
To include configuration options to a Catmandu::Store or Catmandu::Exporter an argument with prefix '--into-' can be used. E.g. to provide an 'url' to an Exporter use:
--into-url http://my.url
When exporting or storing apply a fix EXPRESSION or all the fixes in FILE on each item. This option is repeatable.
When exporting or storing data skip the first NUM items.
When exporting of storing data process only a total NUM of items.
When storing data first delete all the items in the Store or Bag.
When a Store is searchable execute and return the results. Using the --cql-query or -q option the CQL query language can be used (if supported).
Limit the number of results returned from the searchable results to NUM.
Report the number of items processed.
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.