diff --git a/README.md b/README.md index 7de51c6a..8aa09fee 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,11 @@ the [releases tab](https://github.com/ethersphere/swarm-cli/releases). - [Uploading a File](#uploading-a-file) - [Creating an Identity](#creating-an-identity) - [Uploading to a Feed](#uploading-to-a-feed) + - [Upload file with ACT](#upload-file-with-act) + - [Download file with ACT](#download-file-with-act) + - [Create grantees list](#create-grantees-list) + - [Get grantees list](#get-grantees-list) + - [Patch grantees list](#patch-grantees-list) - [Description](#description) - [Installation](#installation) - [From npm](#from-npm) @@ -68,6 +73,64 @@ the [releases tab](https://github.com/ethersphere/swarm-cli/releases). ![Swarm CLI Feed Upload Command](./docs/feed-upload.gif) +## Upload file with ACT + +```sh +swarm-cli upload --act --stamp +``` + +## Download file with ACT + +```sh +swarm-cli download --act --act-history-address --act-publisher +``` + +## Create grantees list + +```sh +swarm-cli grantee create grantees.json --stamp +``` + +`grantees.json`: + +```json +{ "grantees": [ + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e8", + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e9", + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12ee" +] +} +``` + +## Get grantees list + +```sh +swarm-cli grantee get +``` + +## Patch grantees list + +```sh +swarm-cli grantee patch grantees-patch.json \ + --reference \ + --history \ + --stamp +``` + +`grantees-patch.json`: + +```json +{ + "add": [ + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e7" + ], + "revoke": [ + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e9", + "02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12ee" + ] +} +``` + # Description > Manage your Bee node and interact with the Swarm network via the CLI