Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.
/ solid-cli Public archive

A utility to facilitate command-line interaction with Solid servers

License

Notifications You must be signed in to change notification settings

solid-contrib/solid-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solid CLI

A utility to facilitate command-line interaction with Solid servers.

⚠️ Do not depend on this library yet. It currently is a hard-coded integration with node-solid-server, meant for experimentation. It is not guaranteed to work, and certainly not with arbitrary Solid servers.

We are currently lacking server-side implementations of the necessary parts of OIDC for non-browser apps. Solid CLI uses a hack to still enable this, but it is not a recommended way of working.

In the future, Solid servers and Solid CLI should use a standardized protocol instead.

Installation

npm install -g @solid/cli

Usage

IDP=https://drive.verborgh.org
USERNAME=ruben
PASSWORD=ruben
URL=https://drive.verborgh.org/inbox/

curl "$URL" -H 'Authorization: Bearer '`solid-bearer-token "$IDP" "$USERNAME" "$PASSWORD" "$URL"`

License

©2018–present Ruben Verborgh, MIT License.