Get started
Dashboard runs a Sanity Studio or SDK app inside the shared Dashboard host instead of as a standalone app. This guide creates a new app configured for Dashboard. To move an existing SDK app, see Migrate an existing application.
Step 1: Create a Dashboard-ready app
Use the bare command for a Studio, or add the App SDK template for a custom app:
npx sanity@latest init --dashboardnpx sanity@latest init --dashboard --template app-quickstartStep 2: Inspect the CLI configuration
The generated sanity.cli.ts config opts your app into the local Dashboard environment. A Studio does not need an entry point.
Whilst the name and slug are both the same in the above example the name field cannot be changed after deployment, however the slug field can.
import {defineCliConfig, defineApplication} from 'sanity/cli'
export default defineCliConfig({
app: defineApplication({
name: 'content-app',
slug: 'content-app',
title: 'Content app',
organizationId: 'YOUR_ORGANIZATION_ID',
entry: './src/App.tsx',
}),
})Step 3: Run the app in Dashboard
Start the development server:
Dashboard will start on the configured port. Open the URL printed by the CLI and you’ll be redirected to your local app or studio.
A Dashboard renders one organization at a time, so sanity dev runs one dev server per organization. The CLI reads organizationId from defineApplication and looks for a dev server already serving that organization.
If no dev server is running for that organization, the CLI starts one, using the next free port if the configured port is taken. If one is already running, the app joins it, so several local apps from the same organization are grouped into the same dev server and appear in the same Dashboard. Each dev server only serves apps from its own organization, so a change in another organization's app does not reload it.
Within a dev server, each local app is available at localhost:<port>/applications/<slug> and each local studio at localhost:<port>/studios/<slug>, using the slug from defineApplication. The CLI prints the full URL on startup.
npx sanity@latest devpnpm dlx sanity@latest devyarn dlx sanity@latest devbunx sanity@latest devNext steps
Was this page helpful?
Feedback submitted, thanks for helping us improve the docs. Have you tried these alternatives?