CLI unable to create a login item

I am unable to create a login item via the CLI. I would expect this to work but I get “Error: Unknown cipher type”

bw get template item.login | bw encode | bw create item

The item.login template is the object the belongs in the login property of the item template.

Ah, ok.

For anyone following along, this works:
bw get template item | jq ".login = $(bw get template item.login)" | bw encode | bw create item

You can pipe that through further jq manipulations as needed.