---
Title: Time series commands
alwaysopen: false
categories:
- docs
- operate
- stack
description: Lists time series commands and provides links to the command reference
pages.
linkTitle: Commands
toc: 'false'
weight: 25
---
The following table lists time series commands. See the command links for more information about each command's syntax, arguments, and examples.
| Command | Redis
Software | Redis
Cloud | Description |
|:--------|:----------------------|:-----------------|:------|
| [TS.ADD]({{< relref "commands/ts.add" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Appends a sample to a time series. |
| [TS.ALTER]({{< relref "commands/ts.alter" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Updates the retention, chunk size, duplicate policy, or labels for an existing time series. |
| [TS.CREATE]({{< relref "commands/ts.create" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Creates a new time series. |
| [TS.CREATERULE]({{< relref "commands/ts.createrule" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Creates a compaction rule for [downsampling]({{< relref "develop/data-types/timeseries#aggregation" >}}). |
| [TS.DECRBY]({{< relref "commands/ts.decrby" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Decreases the value of the latest sample in a time series by the specified number. Either modifies the existing sample or adds the decreased value as a new sample, depending on the timestamp option. |
| [TS.DEL]({{< relref "commands/ts.del" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Removes all samples between two timestamps for a given time series. |
| [TS.DELETERULE]({{< relref "commands/ts.deleterule" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Removes a compaction rule. |
| [TS.GET]({{< relref "commands/ts.get" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Returns the last sample in a time series. |
| [TS.INCRBY]({{< relref "commands/ts.incrby" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Increases the value of the latest sample in a time series by the specified number. Either modifies the existing sample or adds the increased value as a new sample, depending on the timestamp option. |
| [TS.INFO]({{< relref "commands/ts.info" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Returns time series information and statistics. |
| [TS.MADD]({{< relref "commands/ts.madd" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Appends multiple samples to one or more time series. |
| [TS.MGET]({{< relref "commands/ts.mget" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Returns multiple samples with [labels]({{< relref "develop/data-types/timeseries#create-a-time-series" >}}) that match the filter. |
| [TS.MRANGE]({{< relref "commands/ts.mrange" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | For multiple time series, runs a query against samples within a range of timestamps, from earliest to latest. Supports [filtering]({{< relref "/develop/data-types/timeseries#query-data-points" >}}) and [aggregation]({{< relref "/develop/data-types/timeseries#aggregation" >}}). |
| [TS.MREVRANGE]({{< relref "commands/ts.mrevrange" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | For multiple time series, runs a query against samples within a range of timestamps in reverse order, from latest to earliest. Supports [filtering]({{< relref "/develop/data-types/timeseries#query-data-points" >}}) and [aggregation]({{< relref "/develop/data-types/timeseries#aggregation" >}}). |
| [TS.QUERYINDEX]({{< relref "commands/ts.queryindex" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | Returns the keys of all time series with [labels]({{< relref "/develop/data-types/timeseries#create-a-time-series" >}}) that match the given filters. |
| [TS.RANGE]({{< relref "commands/ts.range" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | From the start of a single time series, runs a query against samples within a range of timestamps. Supports [filtering]({{< relref "/develop/data-types/timeseries#query-data-points" >}}) and [aggregation]({{< relref "/develop/data-types/timeseries#aggregation" >}}). |
| [TS.REVRANGE]({{< relref "commands/ts.revrange" >}}) | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | From the end of a single time series, runs a query against samples within a range of timestamps in reverse order. Supports [filtering]({{< relref "/develop/data-types/timeseries#query-data-points" >}}) and [aggregation]({{< relref "/develop/data-types/timeseries#aggregation" >}}). |