# Not able to retrieve key from CLI, otherwise available through AQL

**URL:** <https://discuss.aerospike.com/t/not-able-to-retrieve-key-from-cli-otherwise-available-through-aql/1067>\
**Category:** AQL\
**Created:** [March 18, 2015, 4:01am UTC](https://discuss.aerospike.com/t/not-able-to-retrieve-key-from-cli-otherwise-available-through-aql/1067 "2015-03-18T04:01:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trivmanish](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@trivmanish](https://discuss.aerospike.com/u/trivmanish)\
**Post date:** [March 18, 2015, 4:01am UTC](https://discuss.aerospike.com/t/not-able-to-retrieve-key-from-cli-otherwise-available-through-aql/1067/1 "2015-03-18T04:01:37Z")

</div>

I am trying to use AQL and CLI to see if I get consistent results doing a “GET” operation.

## AQL:

## select \* from bar.collection where PK=221023161

I get valid result with 1 bin. ( althrough results are truncated, bin stores string array)

## CLI:

## cli -h server-01 -n bar -s collection -k 221023161

most problematic part is CLI returns “no data retrieved”.

Any help appreciated as I am exploring Aerospike.

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [March 20, 2015, 11:16pm UTC](https://discuss.aerospike.com/t/not-able-to-retrieve-key-from-cli-otherwise-available-through-aql/1067/2 "2015-03-20T23:16:38Z")

</div>

CLI is treating the number as a string, try:

```
cli -h server-01 -n bar -s collection -k 221023161 --integer-key

```
