Code Monkey home page Code Monkey logo

davroscli's Introduction

DavrosCLI

This project is a Command Line Interface to the excellent davros App available on sandstorm.

It permits to download and upload files from a sandstorm davros app from the command line.

To use it, from sandstorm, either create a new davros grain or use an existing one. Generate a new web key with the icon looking like a key (Get webkey). Give it the permissions you want; if you want to upload files, it may be better to give write access :). Copy paste the whole key into a new shell script (An example is following).

Webkeys look like this :

https://api-3c31169062d772c4b37a5ac639c6c6d5c5632c.sandstorm.io#3805f158f3c5ec84e60471aa10ecaf7cda8d3fe7

your shell script could be like so :

#! /bin/sh

webkey=https://api-3c31169062d772c4b37a5ac639c6c6d5c5632c.sandstorm.io#3805f158f3c5ec84e60471aa10ecaf7cda8d3fe7

sh ~/src/davrosCLI/davros.sh $webkey "$@"

at that point, you can use that shell script to interface with your davros grain. The commands available are similar to what is available in sftp and such. To get a list of available commands, just run the script without any arguments.

Usage example

say we saved the above script to the file 'myDavros.sh', here’s how to upload a file

We first create a new directory :

sh myDavros.sh mkdir /stuff

Say we wanted to upload the files : foo1.txt, foo2.txt, video.mp4, ebook.epub

We can do it like so :

sh myDavros.sh put foo1.txt foo2.txt video.mp4 ebook.epub /stuff/

The last entry is always the destination directory and it is mandatory to end it with a slash (/).

davroscli's People

Contributors

nniro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

sandstormports

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.