No Description
Kieran Gibb 6033392b78
0.1.3
1 year ago
bin whoop missed a comma... 1 year ago
test fix test 1 year ago
.gitignore add rad gitignore 1 year ago
LICENSE add AGPL license 1 year ago
README.md update README 1 year ago
cli.js move cli across from server 1 year ago
package.json 0.1.3 1 year ago
request.js add api namespace 1 year ago
util.js add readableBytes to util.js 1 year ago
yarn.lock add deps 1 year ago

README.md

cobox-cli

A command line interface for cobox. Start the app, then create groups, mount their file systems, swarm on the peer-to-peer network to replicate the latest changes, and setup your own backup ‘blind replicators’.

Install

npm i -g cobox-cli

cobox start

This will launch a process which you can see by navigating in a browser to

http://localhost:3000

If you already have something running on port 3000 then you can run

cobox start --port 1234

You can also specify a custom mount directory for your groups’ file systems.

cobox start --mount ./mnt

Great, now you have a server running. In another terminal you can run (you can use any name you like)

node cli groups create --name my-new-group

If you have been given an address and an encryption key for a group you want to join, you can create the group by adding the flags --address / -A, or --encryption-key or -k

node cli groups create -n my-new-group -A b74717c149390c3e8e939f6e94169751d9ade8e2e21e0255ee593fdccb504603 -k 0e90565c93f742019f0956ce7da1c952df343dde4a2c48254fbbb9cbcd7d22be
node cli groups create --name my-new-group

If you have been given an address to become a replicator for a friend or organisation, say… the-chicken-coop, you can set this up with the following command

node cli replicators join -n the-chicken-coop -A b74717c149390c3e8e939f6e94169751d9ade8e2e21e0255ee593fdccb504603

You can see the list of other commands implemented here

cobox help
cobox groups help
cobox replicators help