mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
powershell examples
This commit is contained in:
@@ -112,7 +112,8 @@ export class LoginCommand {
|
|||||||
await this.syncService.fullSync(true);
|
await this.syncService.fullSync(true);
|
||||||
const res = new MessageResponse('You are logged in!', '\n' +
|
const res = new MessageResponse('You are logged in!', '\n' +
|
||||||
'To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\n' +
|
'To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\n' +
|
||||||
'$ export BW_SESSION="' + process.env.BW_SESSION + '"\n\n' +
|
'$ export BW_SESSION="' + process.env.BW_SESSION + '"\n' +
|
||||||
|
'> $env:BW_SESSION="' + process.env.BW_SESSION + '"\n\n' +
|
||||||
'You can also pass the session key to any command with the `--session` option. ex:\n' +
|
'You can also pass the session key to any command with the `--session` option. ex:\n' +
|
||||||
'$ bw get items --session ' + process.env.BW_SESSION);
|
'$ bw get items --session ' + process.env.BW_SESSION);
|
||||||
res.raw = process.env.BW_SESSION;
|
res.raw = process.env.BW_SESSION;
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ export class UnlockCommand {
|
|||||||
await this.cryptoService.setKey(key);
|
await this.cryptoService.setKey(key);
|
||||||
const res = new MessageResponse('Your vault is now unlocked!', '\n' +
|
const res = new MessageResponse('Your vault is now unlocked!', '\n' +
|
||||||
'To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\n' +
|
'To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\n' +
|
||||||
'$ export BW_SESSION="' + process.env.BW_SESSION + '"\n\n' +
|
'$ export BW_SESSION="' + process.env.BW_SESSION + '"\n' +
|
||||||
|
'> $env:BW_SESSION="' + process.env.BW_SESSION + '"\n\n' +
|
||||||
'You can also pass the session key to any command with the `--session` option. ex:\n' +
|
'You can also pass the session key to any command with the `--session` option. ex:\n' +
|
||||||
'$ bw get items --session ' + process.env.BW_SESSION);
|
'$ bw get items --session ' + process.env.BW_SESSION);
|
||||||
res.raw = process.env.BW_SESSION;
|
res.raw = process.env.BW_SESSION;
|
||||||
|
|||||||
Reference in New Issue
Block a user