---
title: "APPEND"
url: "https://docs.yugabyte.com/stable/yedis/api/append/"
---

# APPEND

## Synopsis

**`APPEND key string_value`**

This command appends a value to the end of the string that is associated with the given `key`.

- If the `key` already exists, the given `string_value` is appended to the end of the string value that is associated with the `key`.
- If the `key` does not exist, it is created and associated with an empty string.
- If the `key` is associated with a non-string value, an error is raised.

## Return value

Returns the length of the resulted string after appending.

## Examples

```sh
$ GET yugakey
```

```
"Yuga"
```

```sh
$ APPEND yugakey "Byte"
```

```
8
```

```sh
$ GET yugakey
```

```
"Yugabyte"
```

## See also

[`get`](/stable/yedis/api/get/ "get"), [`getrange`](/stable/yedis/api/getrange/ "getrange"), [`getset`](/stable/yedis/api/getset/ "getset"), [`incr`](/stable/yedis/api/incr/ "incr"), [`incrby`](/stable/yedis/api/incrby/ "incrby"), [`set`](/stable/yedis/api/set/ "set"), [`setrange`](/stable/yedis/api/setrange/ "setrange"), [`strlen`](/stable/yedis/api/strlen/ "strlen")
