@bitwarden/cli 1.22.1 → 2022.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -56
- package/package.json +5 -69
- package/LICENSE.txt +0 -674
- package/build/bw.js +0 -37408
- package/build/bw.js.map +0 -1
- package/build/locales/en/messages.json +0 -44
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://github.com/bitwarden/clients/actions/workflows/build-cli.yml?query=branch:master)
|
|
2
2
|
[](https://gitter.im/bitwarden/Lobby)
|
|
3
3
|
|
|
4
4
|
# Bitwarden Command-line Interface
|
|
@@ -9,7 +9,13 @@ The Bitwarden CLI is a powerful, full-featured command-line interface (CLI) tool
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Developer Documentation
|
|
13
|
+
|
|
14
|
+
Please refer to the [CLI section](https://contributing.bitwarden.com/clients/cli/) of the [Contributing Documentation](https://contributing.bitwarden.com/) for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.
|
|
15
|
+
|
|
16
|
+
## User Documentation
|
|
17
|
+
|
|
18
|
+
### Download/Install
|
|
13
19
|
|
|
14
20
|
You can install the Bitwarden CLI multiple different ways:
|
|
15
21
|
|
|
@@ -40,7 +46,7 @@ We provide natively packaged versions of the CLI for each platform which have no
|
|
|
40
46
|
sudo snap install bw
|
|
41
47
|
```
|
|
42
48
|
|
|
43
|
-
|
|
49
|
+
### Help Command
|
|
44
50
|
|
|
45
51
|
The Bitwarden CLI is self-documented with `--help` content and examples for every command. You should start exploring the CLI by using the global `--help` option:
|
|
46
52
|
|
|
@@ -57,58 +63,6 @@ bw list --help
|
|
|
57
63
|
bw create --help
|
|
58
64
|
```
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
### Help Center
|
|
61
67
|
|
|
62
68
|
We provide detailed documentation and examples for using the CLI in our help center at https://help.bitwarden.com/article/cli/.
|
|
63
|
-
|
|
64
|
-
## Build/Run
|
|
65
|
-
|
|
66
|
-
**Requirements**
|
|
67
|
-
|
|
68
|
-
- [Node.js](https://nodejs.org) v16.13.1.
|
|
69
|
-
- Testing is done against Node 16, other versions may work, but are not guaranteed.
|
|
70
|
-
- NPM v8
|
|
71
|
-
|
|
72
|
-
**Run the app**
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
npm install
|
|
76
|
-
npm run sub:init # initialize the git submodule for jslib
|
|
77
|
-
npm run build:watch
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
You can then run commands from the `./build` folder:
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
node ./build/bw.js login
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## We're Hiring!
|
|
87
|
-
|
|
88
|
-
Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our [Careers page](https://bitwarden.com/careers/) to see what opportunities are currently open as well as what it's like to work at Bitwarden.
|
|
89
|
-
|
|
90
|
-
## Contribute
|
|
91
|
-
|
|
92
|
-
Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute by reading the [`CONTRIBUTING.md`](CONTRIBUTING.md) file.
|
|
93
|
-
|
|
94
|
-
Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the [`SECURITY.md`](SECURITY.md) file.
|
|
95
|
-
|
|
96
|
-
## Prettier
|
|
97
|
-
|
|
98
|
-
We recently migrated to using Prettier as code formatter. All previous branches will need to updated to avoid large merge conflicts using the following steps:
|
|
99
|
-
|
|
100
|
-
1. Check out your local Branch
|
|
101
|
-
2. Run `git merge ec53a16c005e0dd9aef6845c18811e8b14067168`
|
|
102
|
-
3. Resolve any merge conflicts, commit.
|
|
103
|
-
4. Run `npm run prettier`
|
|
104
|
-
5. Commit
|
|
105
|
-
6. Run `git merge -Xours 910b4a24e649f21acbf4da5b2d422b121d514bd5`
|
|
106
|
-
7. Push
|
|
107
|
-
|
|
108
|
-
### Git blame
|
|
109
|
-
|
|
110
|
-
We also recommend that you configure git to ignore the prettier revision using:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
|
114
|
-
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitwarden/cli",
|
|
3
3
|
"description": "A secure and free password manager for all of your devices.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2022.6.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bitwarden",
|
|
7
7
|
"password",
|
|
@@ -17,13 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "GPL-3.0-only",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"sub:init": "git submodule update --init --recursive",
|
|
21
|
-
"sub:update": "git submodule update --remote",
|
|
22
|
-
"sub:pull": "git submodule foreach git pull origin master",
|
|
23
20
|
"clean": "rimraf dist/**/*",
|
|
24
|
-
"symlink:win": "rmdir /S /Q ./jslib && cmd /c mklink /J .\\jslib ..\\jslib",
|
|
25
|
-
"symlink:mac": "npm run symlink:lin",
|
|
26
|
-
"symlink:lin": "rm -rf ./jslib && ln -s ../jslib ./jslib",
|
|
27
21
|
"build": "webpack",
|
|
28
22
|
"build:debug": "npm run build && node --inspect ./build/bw.js",
|
|
29
23
|
"build:watch": "webpack --watch",
|
|
@@ -39,12 +33,9 @@
|
|
|
39
33
|
"dist:mac": "npm run build:prod && npm run clean && npm run package:mac",
|
|
40
34
|
"dist:lin": "npm run build:prod && npm run clean && npm run package:lin",
|
|
41
35
|
"publish:npm": "npm run build:prod && npm publish --access public",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"prepare": "husky install",
|
|
46
|
-
"test": "jasmine-ts -r tsconfig-paths/register -P spec/tsconfig.json",
|
|
47
|
-
"test:watch": "nodemon -w ./spec -w ./src -w ./jslib --ext \"ts,js,mjs,json\" --exec jasmine-ts -r tsconfig-paths/register -P spec/tsconfig.json"
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"test:watch": "jest --watch",
|
|
38
|
+
"test:watch:all": "jest --watchAll"
|
|
48
39
|
},
|
|
49
40
|
"bin": {
|
|
50
41
|
"bw": "build/bw.js"
|
|
@@ -52,53 +43,6 @@
|
|
|
52
43
|
"pkg": {
|
|
53
44
|
"assets": "./build/**/*"
|
|
54
45
|
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@fluffy-spoon/substitute": "^1.208.0",
|
|
57
|
-
"@types/inquirer": "^7.3.1",
|
|
58
|
-
"@types/jasmine": "^3.7.0",
|
|
59
|
-
"@types/jsdom": "^16.2.10",
|
|
60
|
-
"@types/koa": "^2.13.4",
|
|
61
|
-
"@types/koa__multer": "^2.0.4",
|
|
62
|
-
"@types/koa__router": "^8.0.11",
|
|
63
|
-
"@types/koa-bodyparser": "^4.3.5",
|
|
64
|
-
"@types/koa-json": "^2.0.20",
|
|
65
|
-
"@types/lowdb": "^1.0.10",
|
|
66
|
-
"@types/lunr": "^2.3.3",
|
|
67
|
-
"@types/node": "^16.11.12",
|
|
68
|
-
"@types/node-fetch": "^2.5.10",
|
|
69
|
-
"@types/node-forge": "^0.9.7",
|
|
70
|
-
"@types/papaparse": "^5.2.5",
|
|
71
|
-
"@types/proper-lockfile": "^4.1.2",
|
|
72
|
-
"@types/retry": "^0.12.1",
|
|
73
|
-
"@types/tldjs": "^2.3.0",
|
|
74
|
-
"@types/zxcvbn": "^4.4.1",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
76
|
-
"@typescript-eslint/parser": "^5.12.1",
|
|
77
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
78
|
-
"copy-webpack-plugin": "^10.2.0",
|
|
79
|
-
"cross-env": "^7.0.3",
|
|
80
|
-
"eslint": "^8.9.0",
|
|
81
|
-
"eslint-config-prettier": "^8.4.0",
|
|
82
|
-
"eslint-import-resolver-typescript": "^2.5.0",
|
|
83
|
-
"eslint-plugin-import": "^2.25.4",
|
|
84
|
-
"husky": "^7.0.4",
|
|
85
|
-
"jasmine": "^3.7.0",
|
|
86
|
-
"jasmine-core": "^3.7.1",
|
|
87
|
-
"jasmine-ts": "^0.4.0",
|
|
88
|
-
"jasmine-ts-console-reporter": "^3.1.1",
|
|
89
|
-
"lint-staged": "^12.1.3",
|
|
90
|
-
"pkg": "^5.5.1",
|
|
91
|
-
"prettier": "^2.5.1",
|
|
92
|
-
"rimraf": "^3.0.2",
|
|
93
|
-
"ts-loader": "^8.2.0",
|
|
94
|
-
"ts-node": "^10.4.0",
|
|
95
|
-
"tsconfig-paths": "^3.12.0",
|
|
96
|
-
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
97
|
-
"typescript": "4.1.5",
|
|
98
|
-
"webpack": "^5.65.0",
|
|
99
|
-
"webpack-cli": "^4.9.1",
|
|
100
|
-
"webpack-node-externals": "^3.0.0"
|
|
101
|
-
},
|
|
102
46
|
"dependencies": {
|
|
103
47
|
"@koa/multer": "^3.0.0",
|
|
104
48
|
"@koa/router": "^10.1.1",
|
|
@@ -118,20 +62,12 @@
|
|
|
118
62
|
"lunr": "^2.3.9",
|
|
119
63
|
"multer": "^1.4.4",
|
|
120
64
|
"node-fetch": "^2.6.1",
|
|
121
|
-
"node-forge": "
|
|
65
|
+
"node-forge": "1.3.1",
|
|
122
66
|
"open": "^8.0.8",
|
|
123
67
|
"papaparse": "^5.3.0",
|
|
124
68
|
"proper-lockfile": "^4.1.2",
|
|
125
69
|
"rxjs": "6.6.7",
|
|
126
70
|
"tldjs": "^2.3.1",
|
|
127
71
|
"zxcvbn": "^4.4.2"
|
|
128
|
-
},
|
|
129
|
-
"engines": {
|
|
130
|
-
"node": "~16",
|
|
131
|
-
"npm": ">=7 <=8"
|
|
132
|
-
},
|
|
133
|
-
"lint-staged": {
|
|
134
|
-
"./!(jslib)**": "prettier --ignore-unknown --write",
|
|
135
|
-
"*.ts": "eslint --fix"
|
|
136
72
|
}
|
|
137
73
|
}
|