Skip to main content

template

Use the template command to return the expected JSON formatting for a Share object; it takes an <object> specification, either share.text or share.file, for its argument.

bsafe share template <object>

Typically, you would use this command to pipe the output into a bsafe share create operation, using a command-line JSON processor like jq and bsafe encode to manipulate the values retrieved from the template, for example:

bsafe share template share.text | jq '.name="My Share for you" | .text.text="What I want to share."' | bsafe encode | bsafe share create