Giter Site home page Giter Site logo

Error while creating an entry about cli HOT 8 CLOSED

Yamakaky avatar Yamakaky commented on May 18, 2024 2
Error while creating an entry

from cli.

Comments (8)

kspearrin avatar kspearrin commented on May 18, 2024

What is the command you are running?

from cli.

Yamakaky avatar Yamakaky commented on May 18, 2024

I'm sorry :

echo <json> | bw encode | bw create item

from cli.

kspearrin avatar kspearrin commented on May 18, 2024

If you are creating an item of type login (1), then you need to provide the item.login template in the login field. Right now it is just null, which is invalid.

from cli.

kspearrin avatar kspearrin commented on May 18, 2024

See here for more info on using templates: https://help.bitwarden.com/article/cli/#templates

from cli.

Yamakaky avatar Yamakaky commented on May 18, 2024

Right, sorry, I didn't understand it that way. Maybe clarify the doc, with a password entry creation example?

from cli.

yngvark avatar yngvark commented on May 18, 2024

I also encountered this, as a total newbie to bitwarden. I think this doc needs to be updated:
https://help.bitwarden.com/article/cli/#create

which just states

bw create (item|attachment|folder|org-collection) [encodedJson] [options]

It doesn't give examples, which I think is the most important. Second, the syntax doesn't state that item has "sub types" (it's hidden in the appendix), nor does it link to https://help.bitwarden.com/article/cli/#templates

from cli.

yngvark avatar yngvark commented on May 18, 2024

See #51 for a working example. Would be nice if there was doc for how to actually create an item without resorting to trial and error.

from cli.

louwers avatar louwers commented on May 18, 2024

It's annoying that the default template is not valid JSON for the type it is supposed to be a template for.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.