---
title: "Send test results to Grafana Cloud | Grafana Labs"
description: "Stream your k6 test results to Grafana Cloud for real-time visualization and analysis."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Send test results to Grafana Cloud

In this milestone, you send your k6 test results to Grafana Cloud for real-time visualization and analysis.

1. In the main menu, go to **Testing &amp; synthetics** &gt; **Performance** &gt; **Settings**.
2. Under **Access**, click **Personal token**, then copy your API token. You’ll use it in the next step to authenticate k6. For other token types, refer to [Authenticate on the CLI](/docs/grafana-cloud/testing/k6/author-run/tokens-and-cli-authentication/).
3. **In your terminal**, navigate to the directory where you saved your `script.js` file, then log in to Grafana Cloud k6:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   k6 cloud login --token YOUR_API_TOKEN --stack YOUR_STACK_URL
   ```
   
   Replace `YOUR_API_TOKEN` with the token you copied. Replace `YOUR_STACK_URL` with your stack URL (for example, `https://my-team.grafana.net`) or stack slug (for example, `my-team`).
4. Run your test with the `--local-execution` flag to stream results to Grafana Cloud:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   k6 cloud run --local-execution script.js
   ```
5. After the test completes, scroll up in your terminal output and find the `output:` line. It contains a URL like:
   
   `output: cloud (https://your-stack.grafana.net/a/k6-app/runs/...)`
6. Copy this URL — it links to your test results in Grafana Cloud. You’ll use it in the next milestone to view your results.

In the next milestone, you analyze your test results in Grafana Cloud dashboards.
