---
title: runtime.version() function
description: runtime.version() returns the current Flux version.
url: https://docs.influxdata.com/flux/v0/stdlib/runtime/version/
estimated_tokens: 129
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/runtime/version/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

InfluxDB support

`runtime.version()` returns the current Flux version.

##### Function type signature

```js
() => string
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Examples

### Return the Flux version in a stream of tables

```js
import "array"
import "runtime"

array.from(rows: [{version: runtime.version()}])
```

[](#view-example-output)

View example output

#### Output data

|version|
|-------|
|(devel)|
| version |
| --- |
| version |
| (devel) |
