Skip to content

CLI application for command-line interaction with RSpace ELN

License

Notifications You must be signed in to change notification settings

rspace-os/rspace-cli

 
 

RSpace-CLI

RSpace-CLI is a command-line application to interact with RSpace ELN in a more convenient and compact way than using the API directly. It supports scripting and programmatic access to RSpace for automation, bulk operations and routine functions and can be used independently or in conjunction with RSpace web application.

It is designed a supplement to the web interface for tasks such as:

  • Bulk upload or download of files and folders
  • Bulk import of MSWord documents into native RSpace documents
  • Querying audit-trail for activity
  • Getting reports in JSON, tabular or CSV format
  • Integrating cleanly into your data-management workflows.
  • Admin functions such as ad-hoc account creation.
  • Creating notebook entries pre-populated with content.
  • Inspecting contents of zipped exports.

A Cookbook shows some uses of the CLI.

It is written in the Go programming language.

Downloading

Binaries are available as releases on this Github project site.

Once downloaded, make the file executable and optionally create a convenient alias, e.g.

ln -s my-download rspace
chmod 755 rspace
./rspace eln --help

to show commands and their arguments. You can also view an HTML version of the documentation.

Configuring

Next, you must supply your RSpace API credentials and the URL of your RSpace

You can set this information in two ways.

  1. Run rspace configure which will prompt you for these values and save as a configuration file called '.rspace' in your home folder.

  2. Create a file called '.rspace' in your home folder and add two lines with the URL of your RSpace and your API key, like this:

    RSPACE_API_KEY=get_this_from_your_RSpace_profile_page

    RSPACE_URL=https://myrspace.com

If you prefer, instead of the default '.rspace' file, you can add this information to any file, save it with a '.env' suffix and supply its filepath with the --config flag to each command, e.g.

rspace eln listTree --config /path/to/myConfig.env

Using --config option is useful if you have more than one account (e.g. an admin account and a user account)

About

CLI application for command-line interaction with RSpace ELN

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.9%
  • Shell 1.1%