Skip to main content

share

The share command is the master command to access all Share-related subcommands:

bsafe share [options] [command] <data>

You can also use the share command as a shortcut to quickly create a Share, for example:

  1. To create a text Share with the contents "A quick Share for you" and output the Share link:

    bsafe share "A quick Share for you"
  2. To create a file Share with the file at the specified path and output the Share link:

    bsafe share -f <path/to/file.ext>
Table 1. bsafe share master command options

Option

Description

-n <name> or --name <name>

Specify a name for the Share. If none is specified, name will default to the id for text Shares and file name for file Shares. For multi-word names, use quotations "<name>".

-d <days> or --deleteInDays <days>

Specify a deletion date for the Share (defaults to 7 days if unspecified).

--maxAccessCount or -a

Specify the maximum access count for the Share .

--hidden

Specify that a text Share requires recipients to toggle visibility.

--notes <notes>

Add private notes to the Share. For multi-word notes, use quotations "<notes>".

--fullObject

Output the full Share object as JSON rather than only the Share link (pair this option with the --pretty option for formatted JSON).



Full example

bsafe share -n "My Share with you" -d 7 --hidden "The contents of my Share with you."