diff --git a/docs/getting-started/clients/cli/index.md b/docs/getting-started/clients/cli/index.md index 9e4917e72..87dc54bfe 100644 --- a/docs/getting-started/clients/cli/index.md +++ b/docs/getting-started/clients/cli/index.md @@ -52,9 +52,43 @@ npm run build:oss:watch -By default, this will use the official Bitwarden servers. You can target your local server by using -the [config command](https://bitwarden.com/help/article/cli/#config). You may need to -[configure node to use your self-signed certificate](https://bitwarden.com/help/article/cli/#using-self-signed-certificates). +By default, this will use the official Bitwarden servers. If you need to develop with Server running +locally, follow the instructions below in Environment setup. + +## Environment setup + +### Configure Node to trust development certificates + +A quick way to do this is to give Node access to your system certificates: + +```bash +export NODE_USE_SYSTEM_CA=1 +``` + +Alternatively, you can add the certificate directly to Node: + +```bash +export NODE_EXTRA_CA_CERTS=/path/to/your-certificate.pem +``` + +### Target local Server instance + +If you are running the Bitwarden Web application locally, you only need to set the base server +location. The web application proxies API requests to your local Server APIs. + +Run the following when you have Web running locally: + +```bash +node build/bw.js config server https://localhost:8080 +``` + +Otherwise, you need to set the individual Server API locations as follows: + +```bash +node build/bw.js config server \ + --api http://localhost:4000 \ + --identity http://localhost:33656 +``` ## Testing and Debugging diff --git a/docs/getting-started/server/database/ef/index.mdx b/docs/getting-started/server/database/ef/index.mdx index c337595f1..69b975106 100644 --- a/docs/getting-started/server/database/ef/index.mdx +++ b/docs/getting-started/server/database/ef/index.mdx @@ -52,7 +52,7 @@ chronological order. ### Requirements -- A working local development server +- A working local development server ([see steps](../../guide.md)) - Docker - A way to manage user secrets in the server project - see [User Secrets](../../../../contributing/user-secrets.md)