You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/next/get-started/running-k6.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Follow along to learn how to:
14
14
4. Ramp the number of requests up and down as the test runs.
15
15
16
16
With these example snippets, you'll run the test with your machine's resources.
17
-
But, if you have a k6 Cloud account, you can also use the `k6 cloud` command to outsource the test to k6 servers.
17
+
But, if you have a k6 Cloud account, you can also use the `k6 cloud run` command to outsource the test to k6 servers.
18
18
19
19
## Before you begin
20
20
@@ -235,7 +235,7 @@ k6 supports three execution modes to run a k6 test: local, distributed, and clou
235
235
-**Cloud**: the test runs on [Grafana Cloud k6](https://grafana.com/docs/grafana-cloud/testing/k6/get-started/run-cloud-tests-from-the-cli/).
236
236
237
237
```bash
238
-
k6 cloud script.js
238
+
k6 cloud run script.js
239
239
```
240
240
241
241
Additionally, cloud-based solutions can run cloud tests on your [own cloud infrastructure](https://grafana.com/docs/grafana-cloud/testing/k6/author-run/private-load-zone-v2/), and accept the test results from a [local](https://grafana.com/docs/k6/<K6_VERSION>/results-output/real-time/cloud) or [distributed test](https://github.com/grafana/k6-operator#k6-cloud-output).
Copy file name to clipboardExpand all lines: docs/sources/next/results-output/real-time/cloud.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ When streaming the results to the cloud, the machine - where you execute the k6
12
12
13
13
## Streaming results vs. running on cloud servers
14
14
15
-
Don't confuse `k6 run --out cloud script.js` (what this page is about) with `k6 cloud script.js`.
15
+
Don't confuse `k6 run --out cloud script.js` (what this page is about) with `k6 cloud run script.js`.
16
16
17
17
Fundamentally the difference is the machine that the test runs on:
18
18
19
19
-`k6 run --out cloud` runs k6 locally and streams the results to the cloud.
20
-
-`k6 cloud`, on the other hand, uploads your script to the cloud solution and runs the test on the cloud infrastructure. In this case you'll only see status updates in your CLI.
20
+
-`k6 cloud run`, on the other hand, uploads your script to the cloud solution and runs the test on the cloud infrastructure. In this case you'll only see status updates in your CLI.
21
21
22
22
In all cases you'll be able to see your test results at [k6 Cloud](https://app.k6.io) or [Grafana Cloud](https://grafana.com/products/cloud/).
23
23
@@ -34,14 +34,14 @@ so `k6 run --out cloud` will consume VUH or test runs from your subscription.
34
34
35
35
Assuming you have installed k6, the first step is to log in to the cloud service.
36
36
37
-
With the `k6 login cloud` command, you can set up your API token on the k6 machine to authenticate against the cloud service.
37
+
With the `k6 cloud login` command, you can set up your API token on the k6 machine to authenticate against the cloud service.
38
38
39
39
Copy your token from [k6 Cloud](https://app.k6.io/account/api-token) or [Grafana Cloud k6](https://grafana.com/docs/grafana-cloud/testing/k6/author-run/tokens-and-cli-authentication/) and pass it as:
40
40
41
41
{{< code >}}
42
42
43
43
```bash
44
-
$ k6 login cloud --token <YOUR_API_TOKEN>
44
+
$ k6 cloud login --token <YOUR_API_TOKEN>
45
45
```
46
46
47
47
{{< /code >}}
@@ -58,7 +58,7 @@ so `k6 run --out cloud` will consume VUH or test runs from your subscription.
58
58
59
59
{{< /code >}}
60
60
61
-
Alternatively, you could skip the `k6 login cloud` command when passing your API token to the `k6 run` command as:
61
+
Alternatively, you could skip the `k6 cloud login` command when passing your API token to the `k6 run` command as:
62
62
63
63
{{< code >}}
64
64
@@ -131,7 +131,7 @@ Outlier data—far outside the lower and upper quartiles— is not aggre
131
131
|`K6_CLOUD_AGGREGATION_OUTLIER_IQR_COEF_LOWER`| How many quartiles below the lower quartile are treated as non-aggregatable outliers (default `1.5`) |
132
132
|`K6_CLOUD_AGGREGATION_OUTLIER_IQR_COEF_UPPER`| How many quartiles above the upper quartile are treated as non-aggregatable outliers (default `1.3`) |
133
133
134
-
> When running a test entirely in the cloud with `k6 cloud`, `k6` will always
134
+
> When running a test entirely in the cloud with `k6 cloud run`, `k6` will always
135
135
> aggregate. For that case the aggregation settings are however set by the
136
136
> cloud infrastructure and are not controllable from the CLI.
Copy file name to clipboardExpand all lines: docs/sources/next/set-up/set-up-distributed-k6/troubleshooting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,10 +119,10 @@ Unlike `TestRun` deployment, when a `PrivateLoadZone` is first created, there ar
119
119
120
120
### Running tests in `PrivateLoadZone`
121
121
122
-
Each time a user runs a test in a PLZ, for example with `k6 cloud script.js`, there is a corresponding `TestRun` being deployed by the k6 Operator. This `TestRun` will be deployed in the same namespace as its `PrivateLoadZone`. If the test is misbehaving, for example, it errors out, or doesn't produce the expected result, then you can check:
122
+
Each time a user runs a test in a PLZ, for example with `k6 cloud run script.js`, there is a corresponding `TestRun` being deployed by the k6 Operator. This `TestRun` will be deployed in the same namespace as its `PrivateLoadZone`. If the test is misbehaving, for example, it errors out, or doesn't produce the expected result, then you can check:
123
123
124
124
1. If there are any messages in the GCk6 UI.
125
-
2. If there are any messages in the output of the `k6 cloud` command.
125
+
2. If there are any messages in the output of the `k6 cloud run` command.
126
126
3. The resources and their logs, the same way as with a [standalone `TestRun` deployment](#testrun-deployment)
Copy file name to clipboardExpand all lines: docs/sources/next/using-k6/environment-variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ PS C:\k6> $env:MY_HOSTNAME="test.k6.io"; k6 run script.js
65
65
66
66
#### ⚠️ Warning
67
67
68
-
By default, passing system environment variables doesn't work for `k6 archive`, `k6 cloud`, and `k6 inspect`.
68
+
By default, passing system environment variables doesn't work for `k6 archive`, `k6 cloud run`, and `k6 inspect`.
69
69
This is a security measure to avoid the risk of uploading sensitive data to k6 Cloud.
70
70
To override this mode, specify [--include-system-env-vars](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/k6-options/reference#include-system-env-vars).
0 commit comments