To download the latest release, run:
curl --silent --location "https://github.com/zezaeoh/gbox/releases/latest/download/gbox_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/gbox /usr/local/binFor ARM system, please change ARCH (e.g. armv6, armv7 or arm64) accordingly
curl --silent --location "https://github.com/zezaeoh/gbox/releases/latest/download/gbox_$(uname -s)_arm64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/gbox /usr/local/binmacOS users can use Homebrew:
brew tap zezaeoh/gbox
brew install gboxgbox storage add$ gbox storage add
? Name of storage gbox-test
? Kind of storage github
? Repository URL https://github.com/zezaeoh/gbox-test
? Repository Branch main
? Authentication method none
* Successfully add github storage config: gbox-testafter simple survey, storage config will be store in your local path ~/.config/gbox/
if you want to add private repository, you should add github token to your storage config
gbox storage list$ gbox storage list
* gbox-test
* ✓ gbox-storageactive storage is checked
gbox storage set <name>$ gbox storage set gbox-test
* Storage Configured: gbox-test
# check active storage
$ gbox storage list
* ✓ gbox-test
* gbox-storagegbox set <name> <data>$ gbox set test/my-secret supersupersecret
* Set: test/my-secretgbox get <name>$ gbox get test/my-secret
supersupersecretgbox delete <name>$ gbox delete test/my-secret
* Delete: test/my-secretgbox list$ gbox list
/
├─ test/
│ ├─ sample/
│ │ └─ whoami
│ ├─ test
│ └─ test2
└─ github/
└─ token/
├─ zezaeoh
└─ zezaeoh2