Sha256: 3d7b68cc18b62161d48d35e0f6958faf88d54b93fa4f75ab1e487e1150e79a54

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

[![Build Status](https://travis-ci.org/sul-dlss/sdr-client.svg?branch=master)](https://travis-ci.org/sul-dlss/sdr-client)
[![Maintainability](https://api.codeclimate.com/v1/badges/1210855d46d4f424bf30/maintainability)](https://codeclimate.com/github/sul-dlss/sdr-client/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/1210855d46d4f424bf30/test_coverage)](https://codeclimate.com/github/sul-dlss/sdr-client/test_coverage)
[![Gem Version](https://badge.fury.io/rb/sdr-client.svg)](https://badge.fury.io/rb/sdr-client)

# Sdr::Client

This is a CLI for interacting with the Stanford Digital Repository API.
The code for the SDR API server is at https://github.com/sul-dlss/sdr-api

## Install

`gem install sdr-client`

## Usage

Log in:
```
sdr --service-url http://sdr-api-server:3000 login
```


Deposit a new object:
```
sdr --service-url https://sdr-api-server:3000 deposit --label 'hey there' \
  --admin-policy 'druid:bk123gh4567' \
  --collection 'druid:gh456kw9876' \
  --source-id 'googlebooks:stanford_12345' file1.png file2.png
```

Deposit a new object, providing metadata for files:
```
sdr --service-url https://sdr-api-server:3000 deposit --label 'hey there' \
  --files-metadata '{"image42.jp2":{"mime_type":"image/jp2"},"ocr.html":{"use":"transcription"}}'
  --admin-policy 'druid:bk123gh4567' \
  --collection 'druid:gh456kw9876' \
  --source-id 'googlebooks:stanford_12345' image42.jp2 ocr.html
```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sdr-client-0.15.2 README.md
sdr-client-0.15.1 README.md
sdr-client-0.15.0 README.md
sdr-client-0.14.0 README.md
sdr-client-0.13.2 README.md
sdr-client-0.13.1 README.md
sdr-client-0.13.0 README.md
sdr-client-0.12.0 README.md
sdr-client-0.11.0 README.md
sdr-client-0.10.0 README.md
sdr-client-0.9.0 README.md