Skip to content

Add access grant command #726

@slapec93

Description

@slapec93
# Inputs:
# - list-name: a user-friendly name for the grantee list (short hand: name)
# - grantee: array of public keys of grantees (optional)
# - verbose: show more details in the output
#
# Outputs:
# - current-grantee-list: the public keys with granted access
# - grantee-list-ref: new reference for the grantee list (in case of verbose flag)
# - act-history-address: new ACT history address, should be printed everytime,
#   because it's the access key, the owner should share with the grantees. We also should
#   add a note what should the user do with this information.
#
#   e.g. 'Share --access <your-public-key>:<act-history-address> with your grantees,
#   so they can use it to download the content with ACT'
#
# This command would basically call `PATCH /grantee` with the list of grantees in the `add`
# field of the request body using the latest history address for the provided list name

swarm-cli access grant --grantee <pubkey1> --grantee <pubkey2> --list-name <name>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions