Comments (9)
Resolved in #47
from cli.
That would be great. I had to end up guess from the error message string in my script, which is very brittle.
from cli.
Would like to see it too, would be very helpful
from cli.
Integrating the cli from a Python script and wondering all the same.
That being said, there has to be some information persisted on the disk when bitwarden is logged in, maybe we could check for that (while waiting for a proper --check to be implemented)
from cli.
Bingo :) Took me a while to explore the code base but allow me the occasion to say once I had found the jslib repo, it was really nice and readable. Many pointers, but at least, each module seems to have a unique dedicated purpose. Thank you.
Lines 67 to 75 in 783e7fc
You can check <dir>/data.json
and search for a key "userId". If it's there, user is logged. If it's not (or if file doesn't exist), user is not.
from cli.
Hahaha the doc is actually giving this information too. I found it by googling for BITWARDENCLI_APPDATA_DIR
😂
https://help.bitwarden.com/article/where-is-data-stored-computer/#cli
(it's interesting to note that the doc is not synced with the code regarding windows location. Let's believe the code)
from cli.
in that case, I would still like to request that either a login check command is added, or the ability to ask the cli where the appdata is. A program built on top of bw
should not have to keep track of four possible locations of internal config data. If its allowed, I am happy to take a stab at this and PR something
from cli.
(yes, of course, as mentionned, the solution I described was just a workaround)
from cli.
Yay thank you and @estheruary 👏 🎉 👍 ! Any idea when that might land in a release ?
from cli.
Related Issues (20)
- Unable to login - Access denied HOT 1
- bw CLI sync without unlocking HOT 1
- `export` command can be verified with positional argument non-interactively: `BW_NOINTERACTION` check is invalid HOT 3
- `bw lock` causes logout HOT 6
- CLI login with API key fails with "invalid client" error HOT 1
- Error CLI and APP HOT 1
- Can't login with API Key HOT 1
- could not create item in organization collection
- Doesn't work. HOT 1
- login error: unable to get local issuer certificate HOT 5
- bw generate fails on 1.21.0 HOT 1
- `bw get totp` claims I don't have premium HOT 3
- 1.21.1 regressed compared to 1.19.1. `bw list items` became unreliable HOT 23
- bw item create error Cannot refresh token, no refresh token or api keys are stored HOT 3
- `invalid password` on `1.22.0-1`, logs in on `1.21.1-1` HOT 2
- How do I add users to org-collections HOT 1
- Security improvement: Bind node server to localhost for Vault Management API HOT 1
- CLI forbidding premium features on premium account HOT 2
- Open security vulnerabilities in node-forge dependency HOT 1
- error:02001003 with self hosted server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.