I’m trying to send file with password by bitwarden-cli.
What I tried.
> bw send template send.file | jq ".name=\"My First Send\" |.file.fileName=\"0497.txt\" | .password=\"mypassword\" | .deletionDate=\"2021-03-24T06:50:53.462Z\"" | bw encode | bw send create
Must specify text content to Send either with the --text option or in the encoded json
so, I put “–text” option to “bw send create” command,
bw send template send.file | jq ".name=\"My First Send\" |.file.fileName=\"0497.txt\" | .password=\"mypassword\" | .deletionDate=\"2021-03-24T06:50:53.462Z\"" | bw encode | bw send create --text sample_text
Send created! It can be accessed at:
https://send.bitwarden.com/#******************/****************
It looks I can send the file, but I can send the text , not the file.
Please tell me how to send the file with password with bitwarden-cli.
“type”: 0 is for sending text.
“type”: 1 is for sending file.
Is the JSON file generated by bw send template send.file expected one?
(If the JSON file is a template for sending file, I think, 1 is better for type’s value.)