Skip to main content

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:

  1. The get command to retrieve the desired Share according to its <id>.

  2. A command-line JSON processor like jq to manipulate the retrieved Share as required.

  3. The encode command to encode the manipulated JSON.

  4. 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.