<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Getting started with Dapr on Dapr Docs</title><link>https://v1-18.docs.dapr.io/getting-started/</link><description>Recent content in Getting started with Dapr on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/getting-started/index.xml" rel="self" type="application/rss+xml"/><item><title>Install the Dapr CLI</title><link>https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/</guid><description>&lt;p>You&amp;rsquo;ll use the Dapr CLI as the main tool for various Dapr-related tasks. You can use it to:&lt;/p>
&lt;ul>
&lt;li>Run an application with a Dapr sidecar.&lt;/li>
&lt;li>Review sidecar logs.&lt;/li>
&lt;li>List running services.&lt;/li>
&lt;li>Run the Dapr dashboard.&lt;/li>
&lt;/ul>
&lt;p>The Dapr CLI works with both &lt;a href="https://v1-18.docs.dapr.io/operations/hosting/self-hosted/">self-hosted&lt;/a> and &lt;a href="https://v1-18.docs.dapr.io/operations/hosting/kubernetes/">Kubernetes&lt;/a> environments.&lt;/p>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Before you begin&lt;/h4>

 In Docker Desktop&amp;rsquo;s advanced options, verify you&amp;rsquo;ve allowed the default Docker socket to be used. This option is not available if you are using WSL integration on Windows.
&lt;img src="https://v1-18.docs.dapr.io/images/docker-desktop-setting.png" width=800 style="padding-bottom:15px;">

&lt;/div>

&lt;h3 id="step-1-install-the-dapr-cli">Step 1: Install the Dapr CLI&lt;/h3>










&lt;ul class="nav nav-tabs" id="tabs-3" role="tablist">
 &lt;li class="nav-item">
 &lt;button class="nav-link active"
 id="tabs-03-00-tab" data-bs-toggle="tab" data-bs-target="#tabs-03-00" role="tab"
 data-td-tp-persist="linux" aria-controls="tabs-03-00" aria-selected="true">
 Linux
 &lt;/button>
 &lt;/li>&lt;li class="nav-item">
 &lt;button class="nav-link"
 id="tabs-03-01-tab" data-bs-toggle="tab" data-bs-target="#tabs-03-01" role="tab"
 data-td-tp-persist="windows" aria-controls="tabs-03-01" aria-selected="false">
 Windows
 &lt;/button>
 &lt;/li>&lt;li class="nav-item">
 &lt;button class="nav-link"
 id="tabs-03-02-tab" data-bs-toggle="tab" data-bs-target="#tabs-03-02" role="tab"
 data-td-tp-persist="macos" aria-controls="tabs-03-02" aria-selected="false">
 MacOS
 &lt;/button>
 &lt;/li>&lt;li class="nav-item">
 &lt;button class="nav-link"
 id="tabs-03-03-tab" data-bs-toggle="tab" data-bs-target="#tabs-03-03" role="tab"
 data-td-tp-persist="binaries" aria-controls="tabs-03-03" aria-selected="false">
 Binaries
 &lt;/button>
 &lt;/li>
&lt;/ul>

&lt;div class="tab-content" id="tabs-3-content">
 
 &lt;div class="tab-body tab-pane fade show active"
 id="tabs-03-00" role="tabpanel" aria-labelled-by="tabs-03-00-tab" tabindex="3">
 &lt;h4 id="install-from-terminal">Install from Terminal&lt;/h4>
&lt;p>Install the latest Linux Dapr CLI to &lt;code>/usr/local/bin&lt;/code>:&lt;/p></description></item><item><title>Initialize Dapr in your local environment</title><link>https://v1-18.docs.dapr.io/getting-started/install-dapr-selfhost/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/getting-started/install-dapr-selfhost/</guid><description>&lt;p>Now that you&amp;rsquo;ve &lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/">installed the Dapr CLI&lt;/a>, use the CLI to initialize Dapr on your local machine.&lt;/p>
&lt;p>Dapr runs as a sidecar alongside your application. In self-hosted mode, this means it is a process on your local machine. By initializing Dapr, you:&lt;/p>
&lt;ul>
&lt;li>Fetch and install the Dapr sidecar binaries locally.&lt;/li>
&lt;li>Create a development environment that streamlines application development with Dapr.&lt;/li>
&lt;/ul>
&lt;p>Dapr initialization includes:&lt;/p>
&lt;ol>
&lt;li>Running a &lt;strong>Redis container instance&lt;/strong> to be used as a local state store and message broker.&lt;/li>
&lt;li>Running a &lt;strong>Zipkin container instance&lt;/strong> for observability.&lt;/li>
&lt;li>Creating a &lt;strong>default components folder&lt;/strong> with component definitions for the above.&lt;/li>
&lt;li>Running a &lt;strong>Dapr placement service container instance&lt;/strong> for local actor support.&lt;/li>
&lt;li>Running a &lt;strong>Dapr scheduler service container instance&lt;/strong> for job scheduling.&lt;/li>
&lt;/ol>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Kubernetes Development Environment&lt;/h4>

 To initialize Dapr in your local or remote &lt;strong>Kubernetes&lt;/strong> cluster for development (including the Redis and Zipkin containers listed above), see &lt;a href="https://v1-18.docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/#install-dapr-from-the-official-dapr-helm-chart-with-development-flag">how to initialize Dapr for development on Kubernetes&lt;/a>

&lt;/div>



&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Docker&lt;/h4>

 &lt;p>The recommended development environment requires &lt;a href="https://docs.docker.com/install/">Docker&lt;/a>. While you can &lt;a href="https://v1-18.docs.dapr.io/operations/hosting/self-hosted/self-hosted-no-docker/">initialize Dapr without a dependency on Docker&lt;/a>, the next steps in this guide assume the recommended Docker development environment.&lt;/p></description></item><item><title>Use the Dapr API</title><link>https://v1-18.docs.dapr.io/getting-started/get-started-api/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/getting-started/get-started-api/</guid><description>&lt;p>In this guide, you&amp;rsquo;ll simulate an application by running the sidecar and calling the state management API directly.
After running Dapr using the Dapr CLI, you&amp;rsquo;ll:&lt;/p>
&lt;ul>
&lt;li>Save a state object.&lt;/li>
&lt;li>Read/get the state object.&lt;/li>
&lt;li>Delete the state object.&lt;/li>
&lt;/ul>
&lt;p>&lt;a href="https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/">Learn more about the state building block and how it works in our concept docs&lt;/a>.&lt;/p>
&lt;h3 id="pre-requisites">Pre-requisites&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/">Install Dapr CLI&lt;/a>.&lt;/li>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-selfhost/">Run &lt;code>dapr init&lt;/code>&lt;/a>.&lt;/li>
&lt;/ul>
&lt;h3 id="step-1-run-the-dapr-sidecar">Step 1: Run the Dapr sidecar&lt;/h3>
&lt;p>The &lt;a href="https://v1-18.docs.dapr.io/reference/cli/dapr-run/">&lt;code>dapr run&lt;/code>&lt;/a> command normally runs your application and a Dapr sidecar. In this case,
it only runs the sidecar since you are interacting with the state management API directly.&lt;/p></description></item></channel></rss>