Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natlibfi/melinda-record-import-cli
CLI for Melinda record batch import system
https://github.com/natlibfi/melinda-record-import-cli
melinda
Last synced: 2 months ago
JSON representation
CLI for Melinda record batch import system
- Host: GitHub
- URL: https://github.com/natlibfi/melinda-record-import-cli
- Owner: NatLibFi
- License: mit
- Created: 2019-04-05T12:54:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T08:38:33.000Z (3 months ago)
- Last Synced: 2024-10-29T09:54:52.925Z (3 months ago)
- Topics: melinda
- Language: JavaScript
- Size: 775 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# CLI for Melinda record batch import system [![NPM Version](https://img.shields.io/npm/v/@natlibfi/melinda-record-import-cli.svg)](https://npmjs.org/package/@natlibfi/melinda-record-import-cli)
CLI for Melinda record batch import system
# Usage
### NPM
```sh
$ npx @natlibfi/melinda-record-import-cli
```
### Docker
```sh
$ docker run --rm quay.io/natlibfi/melinda-record-import-cli
```You can use stdin in the container as follows:
```sh
$ docker run \
--rm \
-v /etc/localtime:/etc/localtime:ro \
-i \
--env-file .env \
quay.io/natlibfi/melinda-record-import-cli profiles create foo
```Or mount the the files directly:
```sh
$ docker run \
--rm \
-v /etc/localtime:/etc/localtime:ro \
--env-file .env
-v $PWD/profile.json:/data.json:ro \
quay.io/natlibfi/melinda-record-import-cli profiles create foo /data.json
```
### Building the application
```sh
$ npm install
$ npm run build
$ node dist/index.js
```## License and copyright
Copyright (c) 2021-2023 **University Of Helsinki (The National Library Of Finland)**
This project's source code is licensed under the terms of **MIT** or any later version.