edit
Use the edit
command to edit an existing Share; it takes encoded JSON for its argument:
bsafe share edit <encodedJson>
In a typical workflow you could use:
The get command to retrieve the desired Share according to its <id>.
A command-line JSON processor like jq to manipulate the retrieved Share as required.
The encode command to encode the manipulated JSON.
The
edit
command to write the edits to the Share.
For example:
bsafe share get <id> | jq '.name="New Name" | .password=null' | bsafe encode | bsafe share edit
edit subcommand options
--itemid <itemid>
Overwrite the id value provided of the Share with a new one.Note
In order to edit a file Share's file, you must delete the Share and re-create it with the appropriate file.