{"id":10520,"date":"2025-05-28T08:09:28","date_gmt":"2025-05-28T15:09:28","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=10520"},"modified":"2025-05-28T08:30:00","modified_gmt":"2025-05-28T15:30:00","slug":"documentdb-local-mongodb-api-on-your-machine","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/documentdb-local-mongodb-api-on-your-machine\/","title":{"rendered":"DocumentDB Local \u2013 MongoDB API on Your Machine"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\"><strong>DocumentDB Local<\/strong><\/a> provides a lightweight, containerized environment that lets you <strong>develop and test applications locally using a MongoDB-compatible interface<\/strong>. It\u2019s ideal for prototyping or running integration tests without needing a cloud setup. When paired with the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.vscode-documentdb\">DocumentDB Extension for Visual Studio Code<\/a>, it creates a focused and consistent local development environment.<\/p>\n<p><strong>DocumentDB Local<\/strong> is part of the broader <strong>open-source DocumentDB project<\/strong>, a document-oriented database engine built on PostgreSQL. You can explore the project and follow its updates here: <a href=\"https:\/\/github.com\/microsoft\/documentdb\">https:\/\/github.com\/microsoft\/documentdb<\/a><\/p>\n<h2>\ud83c\udf93 End-to-End DocumentDB Local Walkthrough<\/h2>\n<p>This guide walks you through setting up <strong>DocumentDB Local<\/strong> with Docker and connecting to it using the <strong>DocumentDB for VS Code Extension<\/strong>.<\/p>\n<h3>1. Prerequisites: Set Up Docker<\/h3>\n<p>Before you begin, check if Docker is already installed:<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">docker --version<\/code><\/pre>\n<p><strong>\u2705 If the command returns a version number, you&#8217;re ready to continue with the next step.<\/strong><\/p>\n<p>Otherwise, follow the instructions below to install Docker:<\/p>\n<h4>Windows<\/h4>\n<ul>\n<li>Download Docker Desktop from the <a href=\"https:\/\/docs.docker.com\/desktop\/install\/windows-install\/\">official Docker site<\/a>.<\/li>\n<li>Ensure <code>WSL 2<\/code> is enabled (Docker will prompt you if it&#8217;s not).<\/li>\n<li>Reboot your machine if necessary.<\/li>\n<\/ul>\n<h4>macOS<\/h4>\n<ul>\n<li>Get Docker Desktop from the <a href=\"https:\/\/docs.docker.com\/desktop\/install\/mac-install\/\">official Docker site<\/a>.<\/li>\n<li>Follow the installation prompts.<\/li>\n<li>Launch Docker from your Applications folder.<\/li>\n<\/ul>\n<h4>Linux<\/h4>\n<ul>\n<li>Follow the Docker Engine installation steps specific to your distribution:\n<ul>\n<li><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/\">Ubuntu<\/a><\/li>\n<li><a href=\"https:\/\/docs.docker.com\/engine\/install\/debian\/\">Debian<\/a><\/li>\n<li><a href=\"https:\/\/docs.docker.com\/engine\/install\/centos\/\">CentOS<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Add your user to the docker group to avoid needing <code>sudo<\/code>.<\/li>\n<\/ul>\n<p><strong>\u2705 Once installed, confirm Docker is running with <code>docker --version<\/code>.<\/strong><\/p>\n<h3>2. Start DocumentDB Local<\/h3>\n<p>To start <strong>DocumentDB Local<\/strong>, run the following command in your terminal:<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">docker run -dt -p 10260:10260 -e USERNAME=YourUsername -e PASSWORD=YourPassword ghcr.io\/microsoft\/documentdb\/documentdb-local:latest<\/code><\/pre>\n<p><strong>What this command does:<\/strong><\/p>\n<ul>\n<li><code>docker<\/code>: The command-line tool used to manage Docker containers.<\/li>\n<li><code>-dt<\/code>: Runs the container in detached mode with a terminal attached.<\/li>\n<li><code>-p 10260:10260<\/code>: Maps port <code>10260<\/code> on your machine to the container. This is the port you&#8217;ll use to connect to <strong>DocumentDB Local<\/strong>.<\/li>\n<li><code>-e USERNAME=YourUsername<\/code>: Sets your admin username to <code>YourUsername<\/code>.<\/li>\n<li><code>-e PASSWORD=YourPassword<\/code>: Sets your admin password to <code>YourPassword<\/code>.<\/li>\n<li><code>ghcr.io\/microsoft\/documentdb\/documentdb-local:latest<\/code>: The public container image hosted on GitHub Container Registry.<\/li>\n<\/ul>\n<p>You can modify the port number, the username, and the password to match your requirements.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10529\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling.png\" alt=\"DocumentDB Local: Docker pulling the DocumentDB Local image\" width=\"2024\" height=\"908\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling.png 2024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling-300x135.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling-1024x459.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling-768x345.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Pulling-1536x689.png 1536w\" sizes=\"(max-width: 2024px) 100vw, 2024px\" \/><\/a><\/p>\n<p>Docker will download the image the first time you run the command. It might take a minute or two depending on your connection. Once started, the container runs <strong>DocumentDB Local<\/strong> and exposes it on your machine.<\/p>\n<p><strong>\u2705 DocumentDB Local is now running and ready to accept connections.<\/strong><\/p>\n<blockquote><p><strong>By The Way: <\/strong>The command <a href=\"https:\/\/docs.docker.com\/reference\/cli\/docker\/container\/ls\/\">docker ps<\/a> will list all running containers and <a href=\"https:\/\/docs.docker.com\/reference\/cli\/docker\/container\/stop\/\">docker stop<\/a> will gracefully stop a container for you once you\u2019re done with this walkthrough.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping.png\"><img decoding=\"async\" class=\"aligncenter wp-image-10534 size-full\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping.png\" alt=\"DocumentDB Local: Docker stopping an image\" width=\"3228\" height=\"456\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping.png 3228w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping-300x42.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping-1024x145.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping-768x108.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping-1536x217.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Docker-Stopping-2048x289.png 2048w\" sizes=\"(max-width: 3228px) 100vw, 3228px\" \/><\/a><\/p><\/blockquote>\n<h3>3. Connect using the DocumentDB for VS Code Extension<\/h3>\n<p>Once <strong>DocumentDB Local is running<\/strong>, use the <strong>DocumentDB for VS Code Extension<\/strong> to connect and manage your local data.<\/p>\n<h4>3.1. Install VS Code<\/h4>\n<ol>\n<li>Download and install <a href=\"https:\/\/code.visualstudio.com\/\">Visual Studio Code<\/a>.<\/li>\n<li>Ensure you have the latest version for best compatibility.<\/li>\n<\/ol>\n<h4>3.2. Install the DocumentDB for VS Code Extension<\/h4>\n<ol>\n<li>Open <strong>VS Code<\/strong>.<\/li>\n<li>Navigate to the <strong>Extensions<\/strong> view by selecting <strong>View &gt; Extensions<\/strong> or using the shortcut <code><strong>Ctrl + Shift + X<\/strong><\/code> on Windows and <code><strong>Command + Shift + X<\/strong><\/code> on macOS.<\/li>\n<li>Search for <strong>DocumentDB for VS Code<\/strong>\u00a0in the Marketplace and select it from the list.<\/li>\n<li>Click <strong>Install<\/strong> to add the extension.<\/li>\n<li><strong>Can&#8217;t find it?<\/strong> Use this direct link to the VS Code Marketplace: <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.vscode-documentdb\">DocumentDB for VS Code Extension<\/a><\/li>\n<\/ol>\n<h4><strong>3.3. Add a New Connection<\/strong><\/h4>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10541\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection.png\" alt=\"DocumentDB Local: New Connection\" width=\"3004\" height=\"1772\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection.png 3004w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection-300x177.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection-1024x604.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection-768x453.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection-1536x906.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Connection-2048x1208.png 2048w\" sizes=\"(max-width: 3004px) 100vw, 3004px\" \/><\/a><\/p>\n<ol>\n<li>Open the <strong>DocumentDB for VS Code Extension<\/strong>.\n<ul>\n<li>Locate and select the <strong>DocumentDB<\/strong>\u00a0icon in the primary VS Code sidebar on the left-hand side.<\/li>\n<\/ul>\n<\/li>\n<li>Add a new connection to your DocumentDB Local:\n<ul>\n<li>In the <strong>DocumentDB Connections<\/strong> area, locate and expand the <strong>DocumentDB Local<\/strong>\u00a0node.<\/li>\n<li>Select the <strong>New Local Connection<\/strong> option.<\/li>\n<li>Confirm the port, username, password, and choose the <code>Disable TLS\/SSL<\/code> option.\n<ul>\n<li>Note: TLS\/SSL can be enabled, but this walkthrough skips those steps for simplicity.<\/li>\n<\/ul>\n<\/li>\n<li>A new DocumentDB Local entry will be added and listed in your <strong>DocumentDB Connections<\/strong> area.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u2705 Your DocumentDB Local database is now ready, and you can begin managing and exploring your data.<\/strong><\/p>\n<h4>3.4. Connect and Create a New Database and a Collection<\/h4>\n<p>Once the new connection has been created, you can connect to your <strong>DocumentDB Local<\/strong> and create a new database and collection to start managing data.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10543\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database.png\" alt=\"DocumentDB Local: New Database\" width=\"2656\" height=\"809\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database.png 2656w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database-300x91.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database-1024x312.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database-768x234.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database-1536x468.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-New-Database-2048x624.png 2048w\" sizes=\"(max-width: 2656px) 100vw, 2656px\" \/><\/a><\/p>\n<ol>\n<li><strong>Connect<\/strong> by expanding the newly created <strong>DocumentDB Local<\/strong> entry.<\/li>\n<li>Select <strong>Create Database\u2026<\/strong> option shown.<\/li>\n<li>Enter <code><strong>MyDatabase<\/strong><\/code> when prompted for the database name.<\/li>\n<li>Expand the newly created <strong>MyDatabase<\/strong> node.<\/li>\n<li>Select <strong>Create Collection<\/strong>\u00a0option shown.<\/li>\n<li>Enter <code><strong>MyCollection<\/strong><\/code> when prompted for the collection name.<\/li>\n<\/ol>\n<p><strong>\u2705 You have successfully created a new database and collection.<\/strong><\/p>\n<h4>3.5 Import Sample Data<\/h4>\n<p>Populate your collection with sample data to explore the extension\u2019s features. <a href=\"https:\/\/gist.github.com\/tnaum-ms\/fe56a0dcff69f10793d2875ad9d7498a\" target=\"_blank\" rel=\"noopener\"><strong>Here<\/strong><\/a> is a download link for a sample file containing a description of 500 restaurants and their reviews. Download the file and have it available for the next steps.<\/p>\n<ol>\n<li>Expand the newly created <strong>MyCollection<\/strong> node.<\/li>\n<li>Click <strong>Documents<\/strong> to open the <strong>Collection View<\/strong>.<\/li>\n<li>In the <strong>Collection View<\/strong>, click the <strong>Import<\/strong> button in the upper right corner.<\/li>\n<li>Select <strong>Import from JSON\u2026<\/strong>.<\/li>\n<li>Navigate to the downloaded file <a href=\"https:\/\/gist.github.com\/tnaum-ms\/fe56a0dcff69f10793d2875ad9d7498a\" target=\"_blank\" rel=\"noopener\"><code><strong>restaurants.json<\/strong><\/code><\/a>.<\/li>\n<li>A confirmation message will indicate that <strong>500 documents<\/strong> were imported.<\/li>\n<li>Click <strong>Refresh<\/strong> to see them in the <strong>Collection View<\/strong>.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-10546\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import.png\" alt=\"DocumentDB Local: Import from JSON\" width=\"2756\" height=\"1589\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import.png 2756w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import-300x173.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import-1024x590.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import-768x443.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import-1536x886.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Import-2048x1181.png 2048w\" sizes=\"(max-width: 2756px) 100vw, 2756px\" \/><\/a><\/p>\n<p><strong>\u2705 You&#8217;ve now connected to DocumentDB Local using the VS Code extension and imported your first dataset.<\/strong><\/p>\n<h4>3.6. Explore JSON, Tree, and Table Views<\/h4>\n<p>Use the <strong>JSON<\/strong>, <strong>Tree<\/strong>, and <strong>Table<\/strong> <strong>Views<\/strong> to analyze your data in different formats.<\/p>\n<ul>\n<li><strong>JSON View<\/strong>\n<ul>\n<li>Displays documents in raw format for quick inspection.<\/li>\n<li>Includes syntax highlighting for readability.<\/li>\n<li>Useful for examining properties such as <code><strong>additionalInfo<\/strong><\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Tree View<\/strong>\n<ul>\n<li>Organizes documents hierarchically.<\/li>\n<li>Expand\/collapse nodes to focus on key parts of the document.<\/li>\n<li>Columns show property <strong>name, value, and data type<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Table View<\/strong>\n<ul>\n<li>Displays multiple documents with values grouped into columns.<\/li>\n<li>Helps identify data inconsistencies or missing values.<\/li>\n<li>Double-click properties like <code><strong>additionalInfo<\/strong><\/code> to inspect embedded objects.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Navigate through the <strong>paging controls<\/strong> to explore beyond the first <strong>10 documents<\/strong>.<\/p>\n<p><strong>\u2705 You have explored different ways to view your data.<\/strong><\/p>\n<h3>4. More Ways To Connect<\/h3>\n<p>Working with <strong>DocumentDB for VS Code<\/strong> is only one way to connect to <strong>DocumentDB Local<\/strong>. You can also use any MongoDB-compatible tool, or go directly to the shell:<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">mongosh localhost:10260 -u &lt;username&gt; -p &lt;password&gt; \\\r\n        --authenticationMechanism SCRAM-SHA-256 \\\r\n        --tls \\\r\n        --tlsAllowInvalidCertificates\r\n<\/code><\/pre>\n<p>The <strong>DocumentDB for VS Code extension<\/strong> can also launch the shell for you. This is helpful because it automatically handles your credentials and connection parameters.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell.png\"><img decoding=\"async\" class=\"aligncenter wp-image-10548\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell-1024x682.png\" alt=\"DocumentDB Local: Launch Shell\" width=\"640\" height=\"426\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell-1024x682.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell-300x200.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell-768x512.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell-1536x1023.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/2025-05-DocumentDB-Local-Launch-Shell.png 1587w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h2>There Is More<\/h2>\n<p>The tutorial above introduced the basic setup of <strong>DocumentDB Local<\/strong> and the core features of the <strong>DocumentDB for VS Code Extension<\/strong>. However, both tools offer more advanced functionality to support your development workflow.<\/p>\n<p><strong>DocumentDB Local<\/strong> is an open-source, PostgreSQL-based document database engine that <strong>implements the MongoDB wire protocol<\/strong>. It enables local-first development and testing while ensuring compatibility with DocumentDB for Azure. Its containerized architecture makes it easy to start and stop on-demand and fits perfectly into CI\/CD workflows.<\/p>\n<p><strong>DocumentDB for VS Code<\/strong> is a lightweight extension that helps developers <strong>manage DocumentDB and MongoDB instances<\/strong> without leaving their editor. It provides an intuitive GUI for browsing databases, managing documents, importing\/exporting data, and running queries across local and remote environments.<\/p>\n<h2>\ud83d\udcac Join the Discussion!<\/h2>\n<p><strong>We welcome your feedback<\/strong> on both tools! Join the conversation, report issues, and contribute ideas on <strong>GitHub<\/strong>:<\/p>\n<h4><strong>DocumentDB Local<\/strong><\/h4>\n<ul>\n<li><a href=\"https:\/\/github.com\/microsoft\/documentdb\">Source &amp; Documentation<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/documentdb\/discussions\">Discussions<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/documentdb\/issues\">Issues<\/a><\/li>\n<\/ul>\n<h4><strong>DocumentDB for VS Code Extension<\/strong><\/h4>\n<ul>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\">Source &amp; Documentation<\/a><\/li>\n<li><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.vscode-documentdb\">VS Code Marketplace<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/discussions\">Discussions<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/issues\">Issues<\/a><\/li>\n<\/ul>\n<p>Your feedback drives development! Vote on features, report issues, or suggest improvements. We look forward to hearing from you!<\/p>\n<h2 id=\"about-azure-cosmos-db\"><strong>About Azure Cosmos DB<\/strong><\/h2>\n<p>Azure Cosmos DB is a fully managed and serverless NoSQL and vector database for modern app development, including AI applications. With its SLA-backed speed and availability as well as instant dynamic scalability, it is ideal for real-time NoSQL and MongoDB applications that require high performance and distributed computing over massive volumes of NoSQL and vector data.<\/p>\n<p>To stay in the loop on Azure Cosmos DB updates, follow us on\u00a0<a id=\"menurosb\" class=\"fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn\" title=\"https:\/\/twitter.com\/azurecosmosdb\" href=\"https:\/\/twitter.com\/AzureCosmosDB\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Link X\">X<\/a>,\u00a0<a id=\"menurose\" class=\"fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn\" title=\"https:\/\/aka.ms\/azurecosmosdbyoutube\" href=\"https:\/\/aka.ms\/AzureCosmosDBYouTube\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Link YouTube\">YouTube<\/a>, and\u00a0<a id=\"menurosh\" class=\"fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn\" title=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\" href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Link LinkedIn\">LinkedIn<\/a>.<\/p>\n<p>To quickly build your first database, watch our\u00a0<a href=\"https:\/\/youtube.com\/playlist?list=PLmamF3YkHLoLLGUtSoxmUkORcWaTyHlXp\" target=\"_blank\" rel=\"noopener\">Get Started videos<\/a>\u00a0on YouTube and explore ways to\u00a0<a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/optimize-dev-test\" target=\"_blank\" rel=\"noopener\">dev\/test free.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction DocumentDB Local provides a lightweight, containerized environment that lets you develop and test applications locally using a MongoDB-compatible interface. It\u2019s ideal for prototyping or running integration tests without needing a cloud setup. When paired with the DocumentDB Extension for Visual Studio Code, it creates a focused and consistent local development environment. DocumentDB Local is [&hellip;]<\/p>\n","protected":false},"author":181541,"featured_media":10555,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,19],"tags":[963,1768,1951,1246,1870,498],"class_list":["post-10520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb-api","category-tips-and-tricks","tag-api-for-mongodb","tag-azure-cosmos-db-api-for-mongodb","tag-documentdb","tag-mongodb","tag-vcore","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>Introduction DocumentDB Local provides a lightweight, containerized environment that lets you develop and test applications locally using a MongoDB-compatible interface. It\u2019s ideal for prototyping or running integration tests without needing a cloud setup. When paired with the DocumentDB Extension for Visual Studio Code, it creates a focused and consistent local development environment. DocumentDB Local is [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/181541"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=10520"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10520\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/10555"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=10520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=10520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=10520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}