To keep things simple, we’ve provided a getting-started repository that contains everything you need to create a release. Follow along with us by cloning the repository.
Releases are primarily defined by the config schemas they contain. The getting-started repository contains two sets of schemas for each of the supported schema languages:
Empty schemas - regard all config instances as valid
Strict schemas - constrain the valid fields, types, and values for instances of the config type they belong to
For this tutorial, choose one of these schema sets to create your release with.If you’re unfamiliar with schema languages, we recommend starting with JSON Schema. If you don’t currently use a schema, we recommend starting with an empty schema and gradually adding constraints as needed.
To be able to push the schemas to Miru, we must first create config types to house them. We’ll start with the Mobility config type.Navigate to the config types page.
Click the New Config Type button, supply the name Mobility and slug mobility, and click Create.
The provided slug is a unique identifier for the config type—it’s how the CLI determines which config type a schema belongs to. As such, config schemas must be annotated with the slug of the config type to which they belong.
Copy
Ask AI
x-miru-config-type: "mobility"
The getting-started repository already annotates the schemas with the appropriate slugs, so no need to add them yourself.After creating the Mobility config type, repeat this process for the Communication and Planning config types, using the slugs communication and planning respectively.
Next, we’ll install the CLI—the primary method of creating releases in Miru.This is a deliberate design choice. We believe a release’s schemas should live in a Git repository. This allows them to be versioned alongside the code that uses them and encourages better software development practices.While this tutorial covers creating releases on your local machine, the CLI can also be used to create releases in a CI pipeline.
Retrieve your authentication token from the Secrets page.
You must be an user to retrieve an authentication token.
Paste the token into the CLI.
Copy
Ask AI
Please retrieve your authentication token from the following URL:🔗 https://app.mirurobotics.com/settings/cli-token🔑 Paste your authentication token: **********Validating authentication token...✅ Successfully logged in as Benjamin
With the CLI setup, we are ready to create a release in Miru.Navigate to the root of the getting-started repository and create the release with a schema set of your choice.
Git metadata is pulled from the local Git repository that the schemas are defined in.
To view the release in Miru, navigate to the releases page and click into the release.
Then select the overview tab at the top of the page to view the release’s details.
For a more comprehensive guide on creating releases, visit the create releases documentation. For a concise reference of the CLI command, visit the CLI Reference.