> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirurobotics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

export const Framed = ({image, background, link, alt = "Framed content", borderWidth = "24px", outerRadius = "10px", innerRadius = "6px"}) => {
  const parseShorthand = value => {
    const values = String(value).trim().split(/\s+/);
    switch (values.length) {
      case 1:
        return [values[0], values[0], values[0], values[0]];
      case 2:
        return [values[0], values[1], values[0], values[1]];
      case 3:
        return [values[0], values[1], values[2], values[1]];
      default:
        return values.slice(0, 4);
    }
  };
  const isZero = v => parseFloat(v) === 0;
  const padding = parseShorthand(borderWidth);
  const outer = parseShorthand(outerRadius);
  const cornerMasks = [];
  if (isZero(padding[0]) && isZero(padding[3])) {
    cornerMasks.push(`radial-gradient(circle at 0% 0%, transparent ${outer[0]}, black ${outer[0]})`);
  }
  if (isZero(padding[0]) && isZero(padding[1])) {
    cornerMasks.push(`radial-gradient(circle at 100% 0%, transparent ${outer[1]}, black ${outer[1]})`);
  }
  if (isZero(padding[2]) && isZero(padding[1])) {
    cornerMasks.push(`radial-gradient(circle at 100% 100%, transparent ${outer[2]}, black ${outer[2]})`);
  }
  if (isZero(padding[2]) && isZero(padding[3])) {
    cornerMasks.push(`radial-gradient(circle at 0% 100%, transparent ${outer[3]}, black ${outer[3]})`);
  }
  const backgroundMask = cornerMasks.length > 0 ? cornerMasks.join(", ") : undefined;
  const innerImage = <img src={image} alt={alt} noZoom={link ? true : false} style={{
    display: "block",
    width: "100%",
    margin: 0,
    borderRadius: 0
  }} />;
  return <div style={{
    display: "inline-block",
    position: "relative",
    borderRadius: outerRadius,
    overflow: "hidden"
  }}>
            {}
            {background && <div style={{
    position: "absolute",
    inset: 0,
    backgroundImage: `url(${background})`,
    backgroundSize: "cover",
    maskImage: backgroundMask,
    WebkitMaskImage: backgroundMask,
    maskComposite: "intersect",
    WebkitMaskComposite: "source-in"
  }} />}
            {}
            <div style={{
    position: "relative",
    padding: borderWidth
  }}>
                <div style={{
    borderRadius: innerRadius,
    overflow: "hidden",
    lineHeight: 0
  }}>
                    {link ? <a href={link}>{innerImage}</a> : innerImage}
                </div>
            </div>
        </div>;
};

<Framed background="https://assets.mirurobotics.com/docs/v04/images/devices/background.jpeg" image="https://assets.mirurobotics.com/docs/v04/images/devices/header:create-panel.png" borderWidth={"36px 100px 0 0"} innerRadius={"0 8px 0 0"} />

Provisioning a device is the process of creating a device in Miru and registering a physical machine with the Miru control plane. Once provisioned, a device is ready to receive deployments.

## Methods

There are three methods for provisioning a device:

1. [Dashboard](/learn/devices/provision/dashboard) - a manual method for provisioning devices one at a time via the Miru web interface; great for getting started or managing individual devices.

2. [Provisioning tokens](/learn/devices/provision/provisioning-tokens) - a programmatic method for securely provisioning devices at scale; great for automated provisioning or integrating with existing infrastructure management tools and workflows.

3. [Provisioning script](/learn/devices/provision/provisioning-script) - the legacy method for programmatically provisioning devices; unsupported with Miru Agent [v0.9.0](/changelog/agent) or later.

## Miru Agent installation

No matter which method you choose, the device requires the `miru-agent` package to be installed. For more information about installing the `miru-agent` package, visit the [agent installation](/developers/agent/install) documentation.

If you're having trouble downloading the `miru-agent` package to your device, refer to the [poor connectivity](/developers/agent/install#poor-connectivity) documentation for a workaround.

Once you've installed the `miru-agent` package, proceed with the provisioning process via the [dashboard](/learn/devices/provision/dashboard) or [provisioning tokens](/learn/devices/provision/provisioning-tokens).

## Reprovisioning

Reprovisioning a device is the process of reassociating a physical device with a device in Miru. Reprovisioning a device fully maintains the device's deployment history in Miru, even if reprovisioning occurs on a different physical device.

Visit the [reprovisioning documentation](/learn/devices/provision/reprovision) for more information.

## Authentication model

If you're curious about Miru's authentication model, please consult the [agent security](/developers/agent/security) documentation.
