# \#app:cli

**URL:** https://community.bitwarden.com/tag/app-cli/24.md

[Latest](https://community.bitwarden.com/latest.md) · [Categories](https://community.bitwarden.com/categories.md) · [Tags](https://community.bitwarden.com/tags.md)

---

## [Allow the Command-Line Interface (CLI) to act as an SSH Agent](https://community.bitwarden.com/t/allow-the-command-line-interface-cli-to-act-as-an-ssh-agent/84421)

<div class="topic-metadata">

**Author:** [@phreed](https://community.bitwarden.com/u/phreed)\
**Replies:** 14\
**Last updated:** [November 16, 2026, 11:48pm UTC](https://community.bitwarden.com/t/allow-the-command-line-interface-cli-to-act-as-an-ssh-agent/84421 "2026-11-16T23:48:43Z")

</div>

The desktop bitwarden can now act as an ssh-agent. This request is for a similar capability for the command-line bitwarden. The name of the command-line bitwarden exectuable is bw. It seems like this could be an optio…

---

## [CLI session expiration](https://community.bitwarden.com/t/cli-session-expiration/43611)

<div class="topic-metadata">

**Author:** [@mpitt79](https://community.bitwarden.com/u/mpitt79)\
**Replies:** 3\
**Last updated:** [November 16, 2026, 1:42am UTC](https://community.bitwarden.com/t/cli-session-expiration/43611 "2026-11-16T01:42:58Z")

</div>

I would like to have the possibility to set an expiration on session keys generated by the CLI. An example UI would be bw login --ttl=1h or bw unlock --ttl=1h. The session key would be made invalid after the specified T…

---

## [Public API: assign organization items to collections](https://community.bitwarden.com/t/public-api-assign-organization-items-to-collections/103710)

<div class="topic-metadata">

**Author:** [@ggiesen](https://community.bitwarden.com/u/ggiesen)\
**Replies:** 0\
**Last updated:** [November 6, 2026, 9:32pm UTC](https://community.bitwarden.com/t/public-api-assign-organization-items-to-collections/103710 "2026-11-06T21:32:08Z")

</div>

The Public API can manage collections and who has access to them, but not which collections an item is in. That’s the one operation an automation account can’t do with least privilege. To file an item into a collection t…

---

## [Ability to view and manage all collection items using CLI as an admin](https://community.bitwarden.com/t/ability-to-view-and-manage-all-collection-items-using-cli-as-an-admin/66734)

<div class="topic-metadata">

**Author:** [@Ogonna\_Iwunze](https://community.bitwarden.com/u/Ogonna_Iwunze)\
**Replies:** 2\
**Last updated:** [November 6, 2026, 9:26pm UTC](https://community.bitwarden.com/t/ability-to-view-and-manage-all-collection-items-using-cli-as-an-admin/66734 "2026-11-06T21:26:51Z")

</div>

Request: Bitwarden CLI to support allowing Admins manage collections similar to the experience on the Admin Console. This will mightily help the administration of org-collections via automation. Context: As an admin, …

---

## [bwsafe: let an AI agent use your vault without ever seeing your secrets (Linux, open source)](https://community.bitwarden.com/t/bwsafe-let-an-ai-agent-use-your-vault-without-ever-seeing-your-secrets-linux-open-source/103426)

<div class="topic-metadata">

**Author:** [@agentic-ai-works](https://community.bitwarden.com/u/agentic-ai-works)\
**Replies:** 0\
**Last updated:** [November 2, 2026, 2:02pm UTC](https://community.bitwarden.com/t/bwsafe-let-an-ai-agent-use-your-vault-without-ever-seeing-your-secrets-linux-open-source/103426 "2026-11-02T14:02:09Z")

</div>

Which Bitwarden app is your issue or question about? 5 - CLI Bitwarden App Version n/a (wrapper around the bw CLI) Operating System 05 - Linux Where is your vault hosted? Bitwarden (default) Description I built a sma…

---

## [Support interactive sign-in for one-off BWS CLI use](https://community.bitwarden.com/t/support-interactive-sign-in-for-one-off-bws-cli-use/103264)

<div class="topic-metadata">

**Author:** [@nurazon59](https://community.bitwarden.com/u/nurazon59)\
**Replies:** 1\
**Last updated:** [October 28, 2026, 12:33am UTC](https://community.bitwarden.com/t/support-interactive-sign-in-for-one-off-bws-cli-use/103264 "2026-10-28T00:33:11Z")

</div>

For an occasional local command, the current flow requires creating a machine account access token in the web vault and setting it as BWS\_ACCESS\_TOKEN. This works for automation, but is cumbersome for one-off interact…

---

## [CLI: Use a whitespace-free default config directory on Linux](https://community.bitwarden.com/t/cli-use-a-whitespace-free-default-config-directory-on-linux/102692)

<div class="topic-metadata">

**Author:** [@volodymyrbiryuk](https://community.bitwarden.com/u/volodymyrbiryuk)\
**Replies:** 4\
**Last updated:** [October 8, 2026, 1:49pm UTC](https://community.bitwarden.com/t/cli-use-a-whitespace-free-default-config-directory-on-linux/102692 "2026-10-08T13:49:48Z")

</div>

The Bitwarden CLI currently creates its default configuration directory at: ~/.config/Bitwarden CLI Please consider using a whitespace-free directory name instead, such as: ~/.config/bitwarden-cli or, closer to the c…

---

## [CLI for desktop app](https://community.bitwarden.com/t/cli-for-desktop-app/67310)

<div class="topic-metadata">

**Author:** [@marwis](https://community.bitwarden.com/u/marwis)\
**Replies:** 3\
**Last updated:** [September 6, 2026, 12:11pm UTC](https://community.bitwarden.com/t/cli-for-desktop-app/67310 "2026-09-06T12:11:47Z")

</div>

I would like to access bitwarden from CLI without having to login separately. The CLI should communicate with desktop app. IDK why but I had to pick cloud-default as 2nd tag to post here. Couldn’t combine app:cli with …

---

## [New: Ansible Collection for Bitwarden Secret Rotation & Automation (rds\_bitwarden)](https://community.bitwarden.com/t/new-ansible-collection-for-bitwarden-secret-rotation-automation-rds-bitwarden/100857)

<div class="topic-metadata">

**Author:** [@bhinz](https://community.bitwarden.com/u/bhinz)\
**Replies:** 0\
**Last updated:** [August 11, 2026, 3:25pm UTC](https://community.bitwarden.com/t/new-ansible-collection-for-bitwarden-secret-rotation-automation-rds-bitwarden/100857 "2026-08-11T15:25:03Z")

</div>

Hi everyone, For those of us relying heavily on infrastructure automation and CI/CD pipelines, securely integrating and rotating secrets without manual intervention is always a core challenge. While fetching secrets is …

---

## [Self hosted start changes bwdata owner and group](https://community.bitwarden.com/t/self-hosted-start-changes-bwdata-owner-and-group/100411)

<div class="topic-metadata">

**Author:** [@rosede](https://community.bitwarden.com/u/rosede)\
**Replies:** 0\
**Last updated:** [July 28, 2026, 12:58pm UTC](https://community.bitwarden.com/t/self-hosted-start-changes-bwdata-owner-and-group/100411 "2026-07-28T12:58:54Z")

</div>

Which Bitwarden app is your issue or question about? 5 - CLI Operating System 05 - Linux Where is your vault hosted? Bitwarden Self-host Server Version (if self-hosting) 2026.7.0 Description I installed Bitwarden as …

---

## [Bitwarden CLI Shell Plugin Support for Secure Credential Injection](https://community.bitwarden.com/t/bitwarden-cli-shell-plugin-support-for-secure-credential-injection/97358)

<div class="topic-metadata">

**Author:** [@marpo60](https://community.bitwarden.com/u/marpo60)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 11:50pm UTC](https://community.bitwarden.com/t/bitwarden-cli-shell-plugin-support-for-secure-credential-injection/97358 "2026-06-02T23:50:43Z")

</div>

Hello, I’ve been a Bitwarden user for many years and would like to request functionality similar to the shell plugins available in 1Password: 1Password Shell Plugins These plugins allow command-line tools to retrieve …

---

## [Windows Desktop & CLI: Microsoft Defender notice](https://community.bitwarden.com/t/windows-desktop-cli-microsoft-defender-notice/96853)

<div class="topic-metadata">

**Author:** [@dwbit](https://community.bitwarden.com/u/dwbit)\
**Replies:** 0\
**Last updated:** [May 20, 2026, 7:06pm UTC](https://community.bitwarden.com/t/windows-desktop-cli-microsoft-defender-notice/96853 "2026-05-20T19:06:54Z")

</div>

If you download Bitwarden desktop (2026.4.0) or CLI (version 2026.4.2) outside of the Microsoft store, you may see a Microsoft Defender warning. This is expected, and is a false positive. The alert is triggered by a rec…

---

## [@bitwarden/cli:2026.4.0 infected with malware?](https://community.bitwarden.com/t/bitwarden-cli-2026-4-0-infected-with-malware/96126)

<div class="topic-metadata">

**Author:** [@pathmissing](https://community.bitwarden.com/u/pathmissing)\
**Replies:** 4\
**Last updated:** [April 23, 2026, 3:17pm UTC](https://community.bitwarden.com/t/bitwarden-cli-2026-4-0-infected-with-malware/96126 "2026-04-23T15:17:56Z")

</div>

There have been multiple reports that the npm package @bitwarden/cli has been compromised in version 2026.4.0: OpenSourceMalware.com - Community Threat Intelligence https://x.com/JFrogSecurity/status/204726857607199176…

---

## [The Rest API generate results do not align with the documentation](https://community.bitwarden.com/t/the-rest-api-generate-results-do-not-align-with-the-documentation/96068)

<div class="topic-metadata">

**Author:** [@ccarpo](https://community.bitwarden.com/u/ccarpo)\
**Replies:** 3\
**Last updated:** [April 22, 2026, 5:16am UTC](https://community.bitwarden.com/t/the-rest-api-generate-results-do-not-align-with-the-documentation/96068 "2026-04-22T05:16:44Z")

</div>

After starting the local API Server with bw serve I try to use the API according to this documentation. When using the /generate command the documentation does not hold up to the results. /generate → 14 chars, upper, l…

---

## [CLI: Support alternative vault unlock methods (PIN, biometrics, passkey)](https://community.bitwarden.com/t/cli-support-alternative-vault-unlock-methods-pin-biometrics-passkey/95785)

<div class="topic-metadata">

**Author:** [@mu88](https://community.bitwarden.com/u/mu88)\
**Replies:** 1\
**Last updated:** [April 10, 2026, 4:55pm UTC](https://community.bitwarden.com/t/cli-support-alternative-vault-unlock-methods-pin-biometrics-passkey/95785 "2026-04-10T16:55:21Z")

</div>

Feature name Alternative unlock methods for bw unlock after initial login Feature function All other Bitwarden clients — browser extension, desktop app, and mobile — support alternative unlock methods after the initial…

---

## [CLI: Unlock with PIN](https://community.bitwarden.com/t/cli-unlock-with-pin/29779)

<div class="topic-metadata">

**Author:** [@jaklan](https://community.bitwarden.com/u/jaklan)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 2:26pm UTC](https://community.bitwarden.com/t/cli-unlock-with-pin/29779 "2021-05-10T14:26:02Z")

</div>

Feature name Unlock with PIN Feature function Looks like this is not supported, but could it be possible to use custom pin/password for lock/unlock (like we have for desktop app/browser extension)? Since my master pas…

---

## [Bitwarden CLI does not wipe user data on logout](https://community.bitwarden.com/t/bitwarden-cli-does-not-wipe-user-data-on-logout/95421)

<div class="topic-metadata">

**Author:** [@mattfysh](https://community.bitwarden.com/u/mattfysh)\
**Replies:** 0\
**Last updated:** [March 30, 2026, 1:07pm UTC](https://community.bitwarden.com/t/bitwarden-cli-does-not-wipe-user-data-on-logout/95421 "2026-03-30T13:07:50Z")

</div>

On macOS, the bitwarden CLI does not remove data.json after a successful bw logout This should be fixed with priority In addition, there does not seem to be a resolution to the following data leak: Bitwarden CLI usage …

---

## [Trying bw CLI and cannot log in](https://community.bitwarden.com/t/trying-bw-cli-and-cannot-log-in/95192)

<div class="topic-metadata">

**Author:** [@the1avi](https://community.bitwarden.com/u/the1avi)\
**Replies:** 6\
**Last updated:** [March 24, 2026, 10:49pm UTC](https://community.bitwarden.com/t/trying-bw-cli-and-cannot-log-in/95192 "2026-03-24T22:49:34Z")

</div>

Because of the current issue (bug) with the json export from the desktop application not working on Linux Mint 22.3, I decided to try the CLI. 1st step is to log in. I am failing on step 1… I tried bw login my@email m…

---

## [Mounting a VeraCrypt Container with Bitwarden CLI Without Typing the Master Password](https://community.bitwarden.com/t/mounting-a-veracrypt-container-with-bitwarden-cli-without-typing-the-master-password/94849)

<div class="topic-metadata">

**Author:** [@mu88](https://community.bitwarden.com/u/mu88)\
**Replies:** 7\
**Last updated:** [March 19, 2026, 3:25pm UTC](https://community.bitwarden.com/t/mounting-a-veracrypt-container-with-bitwarden-cli-without-typing-the-master-password/94849 "2026-03-19T15:25:35Z")

</div>

Hi everyone, I recently switched from KeePass to Bitwarden and I’m trying to recreate a workflow I previously used. With KeePass + KPScript, I had a PowerShell script that automatically retrieved the password for a Ver…

---

## [The BW CLI returns 0 entrants for an organisation](https://community.bitwarden.com/t/the-bw-cli-returns-0-entrants-for-an-organisation/94917)

<div class="topic-metadata">

**Author:** [@rokejulianlockhart](https://community.bitwarden.com/u/rokejulianlockhart)\
**Replies:** 0\
**Last updated:** [March 16, 2026, 5:39pm UTC](https://community.bitwarden.com/t/the-bw-cli-returns-0-entrants-for-an-organisation/94917 "2026-03-16T17:39:18Z")

</div>

bw list organizations | yq -P returns: - object: organization id: bc188d75-b38d-41c4-b1f2-b3fe00b04d7e status: 2 type: 2 enabled: true I know that this organisation owns at least three vault entrants. However…

---

## [New Bitwarden Password Manager Secrets Provider for Nautobot (third-party tool)](https://community.bitwarden.com/t/new-bitwarden-password-manager-secrets-provider-for-nautobot-third-party-tool/94428)

<div class="topic-metadata">

**Author:** [@ggiesen](https://community.bitwarden.com/u/ggiesen)\
**Replies:** 0\
**Last updated:** [March 2, 2026, 12:20pm UTC](https://community.bitwarden.com/t/new-bitwarden-password-manager-secrets-provider-for-nautobot-third-party-tool/94428 "2026-03-02T12:20:20Z")

</div>

For those Nautobot users out there, I’ve created a new app to connect Nautobot to a Bitwarden Password Manager vault. While it’s still early, it’s mature enough that it’s ready for a wider release. I’d love to get feed…

---

## [Cascading collection name changes?](https://community.bitwarden.com/t/cascading-collection-name-changes/94290)

<div class="topic-metadata">

**Author:** [@dtttttttttttttttt](https://community.bitwarden.com/u/dtttttttttttttttt)\
**Replies:** 0\
**Last updated:** [February 26, 2026, 3:18pm UTC](https://community.bitwarden.com/t/cascading-collection-name-changes/94290 "2026-02-26T15:18:09Z")

</div>

I have collections. A LOT of them. We’re talking close to thousand, if not several thousands actually. I’d like to change the name of a parent collection, but that does not cascade down to child collections. For exampl…

---

## [Bitwarden cli: bash auto completion](https://community.bitwarden.com/t/bitwarden-cli-bash-auto-completion/52084)

<div class="topic-metadata">

**Author:** [@returntrip](https://community.bitwarden.com/u/returntrip)\
**Replies:** 3\
**Last updated:** [February 18, 2026, 9:38pm UTC](https://community.bitwarden.com/t/bitwarden-cli-bash-auto-completion/52084 "2026-02-18T21:38:28Z")

</div>

Feature name Bash auto completions for bitwarden cli Feature function Add auto completions for bash. Currently only zsh autocompletion is supported Related topics + references

---

## [Biometric unlock in CLI not working](https://community.bitwarden.com/t/biometric-unlock-in-cli-not-working/81946)

<div class="topic-metadata">

**Author:** [@monsoon8715](https://community.bitwarden.com/u/monsoon8715)\
**Replies:** 8\
**Last updated:** [February 1, 2026, 11:06pm UTC](https://community.bitwarden.com/t/biometric-unlock-in-cli-not-working/81946 "2026-02-01T23:06:28Z")

</div>

Hi Biometric unlock in CLI is not working, prompting me for a master password instead. I use 1password for personal stuff, and the way it works there, I can do op read "op://secret/reference 1password desktop / cli …

---

## [Biometric unlock for Bitwarden CLI](https://community.bitwarden.com/t/biometric-unlock-for-bitwarden-cli/35543)

<div class="topic-metadata">

**Author:** [@larstobi](https://community.bitwarden.com/u/larstobi)\
**Replies:** 3\
**Last updated:** [January 9, 2026, 4:22pm UTC](https://community.bitwarden.com/t/biometric-unlock-for-bitwarden-cli/35543 "2026-01-09T16:22:49Z")

</div>

Feature name Biometric unlock for Bitwarden CLI Feature function Add biometric unlock feature to the command line interface in the same way that we have it for the web browser extensions for MacOS, where the browser e…

---

## [Bitwarden CLI feature - get password from storage / keychain with touchID confirmation](https://community.bitwarden.com/t/bitwarden-cli-feature-get-password-from-storage-keychain-with-touchid-confirmation/49207)

<div class="topic-metadata">

**Author:** [@Oleksandr\_Kucherenko](https://community.bitwarden.com/u/Oleksandr_Kucherenko)\
**Replies:** 2\
**Last updated:** [January 9, 2026, 4:17pm UTC](https://community.bitwarden.com/t/bitwarden-cli-feature-get-password-from-storage-keychain-with-touchid-confirmation/49207 "2026-01-09T16:17:31Z")

</div>

Feature name for better integration of the tool into different scripts will be great to support feature touchid confirmation on password extraction Feature function What will this feature do differently? I want to ge…

---

## [CLI ETIMEDOUT error - Unable to fetch ServerConfig](https://community.bitwarden.com/t/cli-etimedout-error-unable-to-fetch-serverconfig/92614)

<div class="topic-metadata">

**Author:** [@Catullus](https://community.bitwarden.com/u/Catullus)\
**Replies:** 3\
**Last updated:** [January 9, 2026, 4:54am UTC](https://community.bitwarden.com/t/cli-etimedout-error-unable-to-fetch-serverconfig/92614 "2026-01-09T04:54:11Z")

</div>

This isn’t a question, it’s more for search engines to pick up. When I did pretty much anything with the Bitwarden CLI on Linux, I was getting the following error: Unable to fetch ServerConfig from https://api.bitwarde…

---

## [Recover self hosted bitwarden vault from .bak backup](https://community.bitwarden.com/t/recover-self-hosted-bitwarden-vault-from-bak-backup/92389)

<div class="topic-metadata">

**Author:** [@jerazz99](https://community.bitwarden.com/u/jerazz99)\
**Replies:** 0\
**Last updated:** [January 2, 2026, 4:39am UTC](https://community.bitwarden.com/t/recover-self-hosted-bitwarden-vault-from-bak-backup/92389 "2026-01-02T04:39:01Z")

</div>

Feeling like an idiot. I decided to perform a reinstall of self hosted bitwarden on my ubuntu server machine. In the uninstall process it prompted me to save databse files. (WARNING: UNINSTALL STARTED) Would you like to…

---

## [Self-hosted instance - sso and identity containers restarting after update: The format of the URI could not be determined.](https://community.bitwarden.com/t/self-hosted-instance-sso-and-identity-containers-restarting-after-update-the-format-of-the-uri-could-not-be-determined/91562)

<div class="topic-metadata">

**Author:** [@user315](https://community.bitwarden.com/u/user315)\
**Replies:** 1\
**Last updated:** [December 4, 2025, 4:41pm UTC](https://community.bitwarden.com/t/self-hosted-instance-sso-and-identity-containers-restarting-after-update-the-format-of-the-uri-could-not-be-determined/91562 "2025-12-04T16:41:35Z")

</div>

Hello, I have installed self-hosted instance of Bitwarden. When I tried to upgrade from version 2024.7.4 to 2025.11.1, the bitwarden-sso and bitwarden-identity containers stopped working and are restarting continuously. …

---

## [Allow protecting the 'bw serve' endpoint with an Authorization Header](https://community.bitwarden.com/t/allow-protecting-the-bw-serve-endpoint-with-an-authorization-header/64833)

<div class="topic-metadata">

**Author:** [@smerschjohann](https://community.bitwarden.com/u/smerschjohann)\
**Replies:** 2\
**Last updated:** [November 28, 2025, 6:04pm UTC](https://community.bitwarden.com/t/allow-protecting-the-bw-serve-endpoint-with-an-authorization-header/64833 "2025-11-28T18:04:07Z")

</div>

Currently the bw serve command defaults to only listening on localhost which is already a good thing. But still, all applications on the system would be able to access the Passwords without any authentication. That is f…

[Next page](https://community.bitwarden.com/tag/app-cli/24.md?match_all_tags=true&page=1&tags%5B%5D=app%3Acli)
