capabilities.work

Bootstrap Project

A 3-step recipe with Sanity. We can help you get access.

Recipe · 3 steps

Bootstrap Project

with Sanity

Stand up a new project with an initial dataset in one pass.

  1. Create a new Sanity project and capture its generated id.
  2. Create the first dataset inside the newly created project using its generated id.
  3. List the project's datasets to confirm the bootstrap completed.
What you'll need to have ready
  • apiToken: Sanity management API token used as a Bearer credential.
  • displayName: Human-readable name for the new project.
  • organizationId: Optional organization id to associate the project with.
  • datasetName: Name for the initial dataset to create in the project.
  • aclMode: Access control mode for the initial dataset (public or private).
For your developer

Arazzo workflow sanity:bootstrap-project, 3 operations: createProject → createDataset → listDatasets. Specs on APIs.io.