You can output [[k6 (tool)|k6]] test results in a variety of formats using the `--output` or `-o` flag.
### CSV
`k6 run test.js -o csv=results.csv`
### JSON
`k6 run test.js -o json=results.json`
### k6 Cloud
You can also output test results directly to k6 Cloud by using:
`k6 login cloud --token <k6 API TOKEN>`
After authenticating, you can then do:
`k6 run test.js -o cloud`
The above command will still run the k6 test locally, but it will send the results to your k6 Cloud account for analysis.