Password Manager Cli could create item.identity

Hello All,

Good day to you.

I follow this link want to create a item.identity using below command line.

bw get template item | jq ".name=\"test\" | .identity=$(bw get template item.identity | jq '.title="Mr" | .firstName="Boyang"')" | bw encode | bw create item

But, I get the error message below

jq: error: syntax error, unexpected $end (Unix shell quoting issues?) at <top-level>, line 1:
.name=test | .identity=
jq: 1 compile error

Do you know the reason why? I want to create a item.identity in a folder, anyone know how to use CLI to do it?

I also try the command below in the document

bw get template item | jq ".name=\"My Login Item\" | .login=$(bw get template item.login | jq '.username="jdoe" | .password="myp@ssword123"')" | bw encode | bw create item

I got the same error message, I think the document maybe incorrect.

I am using jq version 1.6

Thanks for your help.
Boyang