# Provision your first device

## Overview

This tutorial uses a combination of command line and UI steps for quick device provisioning. For comprehensive coverage of all provisioning methods, see \[Begin device provisioning], which covers command line, UI, and API approaches in detail.

### Prerequisites

Make sure you have the following:

* Guardian Cloud account
* Provisioning package for the system
* A test device or the mcguard\_provision utility
* Basic device information (component name, system ID, hardware ID)

### Steps to provision

<details>

<summary>Step 1: Generate a provisioning request (command line)</summary>

On your device or using mcguard\_provision:

```bash
bash# Generate provisioning request offline./mcguard_provision \  --mode provision \  --component test_component \  --system test_system \  --hardware-id test_device_001 \  --offline \  /path/to/initial/provisioning/profile
```

This creates two files:

* `test_component_test_system_test_device_001.mcpr` (can be uploaded)
* `test_component_test_system_test_device_001.mcpi` (keep secure, never upload)

</details>

<details>

<summary>Step 2: Upload provisioning request to Guardian Cloud</summary>

1. Sign in to **Guardian Cloud**
2. Click **Provisioning** item on the sidebar
3. Click the **Upload provisioning request** button.
4. Select your `.mcpr` file.
5. Verify the device information shown
6. Click **Submit.**

</details>

<details>

<summary>Step 3: Download the system provisioning package</summary>

1. Wait for processing (usually 1-2 minutes)
2. Check the status in your dashboard
3. Download the .mcp file when ready
4. Transfer the .mcp file back to your device

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.medcrypt.com/get-started/quickstart-process/provision-your-first-device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
