1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-30 08:10:34 +01:00
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Go to file
Matt Gibson 57f7cf607a
Add send to cli (#222)
* Add list all sends and filter by search term

* Add get send templates

* Add AccessUrl to send responses

* Add Send to Get command

* Add missing command options to login

These options are already coded to work in the command, but commander
did not know about the options.

* Upgrade Commander to 7.0.0

This is needed to enable the subcommand chaining required by Send.

This commit also adds get send and send receive functionality. get send
will be moved to send get along with send list and any other send commands.

* Use api url for send access url

* Move send commands to send subcommands

* Use webvault access url everywhere

Production instances all have api url located at `baseUrl/api`.
Receive command will parse the webvault url and alter it to an api url.

* Move create and receive commands to send directory

* Separate program concerns

program holds authentication/general program concerns
vault.program holds commands related to the vault
send.program holds commands related to Bitwarden Send

* Fix up imports and lint items

* Add edit command

* Use browser-hrtime

* Add send examples to help text

* Clean up receive help text

* correct help text

* Add delete command

* Code review Cleanup

* Scheme on send receive help text

* PR review items

Move buffer to array buffer to jslib
delete with server
some formatting fixes

* Add remove password command

This is the simplest way to enable removing passwords without
resorting to weird type parsing of piped in Send JSONs in edit

* Default hidden to false like web

* Do not allow password updates that aren't strings or are empty

* Delete appveyor.yml.flagged-for-delete

* Correctly order imports and include tslint rule

* fix npm globbing problem

https://stackoverflow.com/a/34594501
globs work differently in package.json. Encasing the globs in
single quotes expands them in shell rather than in npm

* Remove double slash in path

* Trigger github rebuild
2021-02-03 11:44:33 -06:00
.github/workflows resetting testing code 2021-01-28 21:05:17 +00:00
.vscode chalk and source maps 2018-05-15 10:50:06 -04:00
jslib@09c444ddd4 Add send to cli (#222) 2021-02-03 11:44:33 -06:00
scripts bitwarden inc. 2020-02-18 22:36:04 -05:00
src Add send to cli (#222) 2021-02-03 11:44:33 -06:00
stores fixing ls command 2021-01-27 23:34:08 +00:00
.editorconfig command structure. debugging 2018-05-12 15:12:28 -04:00
.gitignore switch to webpack 2018-05-14 23:16:59 -04:00
.gitmodules move to https submodule 2018-05-16 15:56:31 -04:00
.npmignore publish to npm 2018-05-15 00:45:42 -04:00
CONTRIBUTING.md expand contributing guide 2020-10-28 17:26:29 +10:00
LICENSE.txt license file 2018-05-23 12:12:18 -04:00
package-lock.json Add send to cli (#222) 2021-02-03 11:44:33 -06:00
package.json Add send to cli (#222) 2021-02-03 11:44:33 -06:00
README.md do it after npm install 2019-03-21 08:29:28 -04:00
SECURITY.md contributing and security files 2018-05-18 11:53:00 -04:00
tsconfig.json ignore notifications service 2018-08-20 22:22:17 -04:00
tslint.json Add send to cli (#222) 2021-02-03 11:44:33 -06:00
webpack.config.js webpack-node-externals 2019-02-07 23:15:17 -05:00

appveyor build Join the chat at https://gitter.im/bitwarden/Lobby

Bitwarden Command-line Interface

Platforms

The Bitwarden CLI is a powerful, full-featured command-line interface (CLI) tool to access and manage a Bitwarden vault. The CLI is written with TypeScript and Node.js and can be run on Windows, macOS, and Linux distributions.

CLI

Download/Install

You can install the Bitwarden CLI multiple different ways:

NPM

If you already have the Node.js runtime installed on your system, you can install the CLI using NPM. NPM makes it easy to keep your installation updated and should be the preferred installation method if you are already using Node.js.

npm install -g @bitwarden/cli

Native Executable

We provide natively packaged versions of the CLI for each platform which have no requirements on installing the Node.js runtime. You can obtain these from the downloads section in the documentation.

Other Package Managers

Documentation

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:

bw --help

This option will list all available commands that you can use with the CLI.

Additionally, you can run the --help option on a specific command to learn more about it:

bw list --help
bw create --help

Detailed Documentation

We provide detailed documentation and examples for using the CLI in our help center at https://help.bitwarden.com/article/cli/.

Build/Run

Requirements

Run the app

npm install
npm run sub:init # initialize the git submodule for jslib
npm run build:watch

You can then run commands from the ./build folder:

node ./build/bw.js login

Contribute

Code contributions are welcome! Please commit any pull requests against the master branch. Learn more about how to contribute by reading the CONTRIBUTING.md file.

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 file.