Creating new item
I am testing the CLI functionality for creating a new database item. I followed the examples and suggestions here in the knowledge base, but still continue to get "error decoding JSON (invalid character 'ÿ' looking for beginning of value); error decoding base64 (illegal base64 data at input byte 0) - item data doesn't appear to be JSON or base64url encoded JSON: illegal base64 data at input byte 0"
I am using the command op get template "Database" > dbase.json to get a copy of the template. I then edit the json file to the specifics I am trying to enter (json file below), and finally I enter the command op create item --template=dbase.json Database.
What am I doing wrong? I have seen other posts describing using the op encode command, but the help files on this version says there is no need to use op encode anymore.
Thanks.
{
"notesPlain":"",
"passwordHistory":[
],
"sections":[
{
"fields":[
{
"k":"menu",
"n":"database_type",
"t":"type",
"v":"mssql"
},
{
"k":"string",
"n":"hostname",
"t":"server",
"v":"NNSQL-TST02"
},
{
"k":"string",
"n":"port",
"t":"port",
"v":""
},
{
"k":"string",
"n":"database",
"t":"database",
"v":"UNIQUE"
},
{
"k":"string",
"n":"username",
"t":"username",
"v":"sa"
},
{
"k":"concealed",
"n":"password",
"t":"password",
"v":"th1s1smyp455w0rd"
},
{
"k":"string",
"n":"sid",
"t":"SID",
"v":""
},
{
"k":"string",
"n":"alias",
"t":"alias",
"v":""
},
{
"k":"string",
"n":"options",
"t":"connection options",
"v":""
}
],
"name":"",
"title":"Database"
}
]
}
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
