@@ -19,6 +19,11 @@ the [releases tab](https://github.com/ethersphere/swarm-cli/releases).
1919 - [ Uploading a File] ( #uploading-a-file )
2020 - [ Creating an Identity] ( #creating-an-identity )
2121 - [ Uploading to a Feed] ( #uploading-to-a-feed )
22+ - [ Upload file with ACT] ( #upload-file-with-act )
23+ - [ Download file with ACT] ( #download-file-with-act )
24+ - [ Create grantees list] ( #create-grantees-list )
25+ - [ Get grantees list] ( #get-grantees-list )
26+ - [ Patch grantees list] ( #patch-grantees-list )
2227- [ Description] ( #description )
2328 - [ Installation] ( #installation )
2429 - [ From npm] ( #from-npm )
@@ -68,6 +73,64 @@ the [releases tab](https://github.com/ethersphere/swarm-cli/releases).
6873
6974![ Swarm CLI Feed Upload Command] ( ./docs/feed-upload.gif )
7075
76+ ## Upload a file with ACT
77+
78+ ``` sh
79+ swarm-cli upload < file> --act --stamp < postage_batch_id>
80+ ```
81+
82+ ## Download a file with ACT
83+
84+ ``` sh
85+ swarm-cli download < swarm_hash> < file> --act --act-history-address < swarm_history_address> --act-publisher < public_key>
86+ ```
87+
88+ ## Create a grantees list
89+
90+ ``` sh
91+ swarm-cli grantee create grantees.json --stamp < postage_batch_id>
92+ ```
93+
94+ ` grantees.json ` :
95+
96+ ``` json
97+ { "grantees" : [
98+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e8" ,
99+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e9" ,
100+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12ee"
101+ ]
102+ }
103+ ```
104+
105+ ## Get a grantees list
106+
107+ ``` sh
108+ swarm-cli grantee get < grantee_reference>
109+ ```
110+
111+ ## Patch a grantees list
112+
113+ ``` sh
114+ swarm-cli grantee patch grantees-patch.json \
115+ --reference < grantee_reference> \
116+ --history < grantee_history_reference> \
117+ --stamp < postage_batch_id>
118+ ```
119+
120+ ` grantees-patch.json ` :
121+
122+ ``` json
123+ {
124+ "add" : [
125+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e7"
126+ ],
127+ "revoke" : [
128+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12e9" ,
129+ " 02ceff1422a7026ba54ad89967d81f2805a55eb3d05f64eb5c49ea6024212b12ee"
130+ ]
131+ }
132+ ```
133+
71134# Description
72135
73136> Manage your Bee node and interact with the Swarm network via the CLI
@@ -124,6 +187,7 @@ stamp Buy, list and show postage stamps
124187pss Send, receive, or subscribe to PSS messages
125188manifest Operate on manifests
126189utility Utility commands for managing wallets
190+ grantee Create, Get, Patch grantee list
127191
128192Run 'swarm-cli GROUP --help' to see available commands in a group
129193
0 commit comments