Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
This repository was archived by the owner on May 25, 2022. It is now read-only.

data.json location #117

@anonymous1184

Description

@anonymous1184

If the bw.json file is next to bw binary it should use current directory as BITWARDENCLI_APPDATA_DIR (for shared environments/portability).

Of course this that makes much more sense on Windows. Still holds true if you need to access more than one account at the same time.

Checking if the file exists before looking for the envvar should do. Other option is to add a CLI option like bw --data bw.json.

cli/src/bw.ts

Line 77 in fe9268f

if (process.env.BITWARDENCLI_APPDATA_DIR) {

EDIT: file name. Using the same name for the configuration and the binary makes easier run file management commands (e.g. mv bw* foo/bar).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions