# Sailpoint CLI Output Types

**URL:** <https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584>\
**Category:** Bugs\
**Tags:** cli, identity-security-cloud\
**Created:** [November 27, 2023, 11:22am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584 "2023-11-27T11:22:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [November 27, 2023, 11:22am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584/1 "2023-11-27T11:22:50Z")

</div>

Using Sailpoint CLI search command with outputTypes option receives error.

**Error: unknown flag: --outputTypes**

Command used :

sail search query “name:amanda\*” --indices identities --outputTypes csv

The command without the outputTypes argument runs successfully. Have tried to run this with json type too and got same error.

I am referring to this documentation: [Search | SailPoint Developer Community](https://developer.sailpoint.com/idn/tools/cli/search#flags)

Can someone please confirm if this is a bug Or this option isn’t supported?

@LukeHagar

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [November 27, 2023, 12:37pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584/2 "2023-11-27T12:37:26Z")

</div>

> [@sharvari](#):
>
> arch query

Hi @sharvari  
Got exactly same error as you do  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/f/f8f507ddd68b750dce3509eb6ccdda81cf6d9256.png)

As documentation states it is there available

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/f/f864e8837188ca63efdf4c46aa07efb44a6a0a42.png)

I’ve created bug ticket into the cli repo.

> <https://github.com/sailpoint-oss/sailpoint-cli/issues/121>
>
> \*\*Describe the bug\*\* A clear and concise description of what the bug is.
> Cannot… use outputTypes flag in the sail search query execution
> \*\*To Reproduce\*\* Steps to reproduce the behavior:
> Execute:
> sail search query "name:a\*" --indices identities --outputTypes json
> 
> 
> \*\*Expected behavior\*\*
> !\[image\](https://github.com/sailpoint-oss/sailpoint-cli/assets/37939333/85d3c459-23eb-402c-a7f3-e402bc110618)
> 
> \*\*Actual behavior\*\* A clear and concise description of what actually happens.
> !\[image\](https://github.com/sailpoint-oss/sailpoint-cli/assets/37939333/d0dec4f0-114f-4b5d-992e-022746f1173a)

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 27, 2023, 4:09pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584/4 "2023-11-27T16:09:48Z")

</div>

I’ve assigned this to our dev tools team (@dev\_tools\_team) to look at.

---

<div class="post-metadata">

**Author:** ![LukeHagar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/lukehagar/32/1605_2.png) [@LukeHagar](https://developer.sailpoint.com/discuss/u/LukeHagar)\
**Post date:** [November 29, 2023, 5:44pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584/5 "2023-11-29T17:44:56Z")

</div>

Hey @sharvari, @kjakubiak,

Thank you both for bringing this to our attention.

The outputTypes flag was deprecated as part of the 2.0 release of the CLI, the reason being that CSV is not a valid output format for the level of complexity that occurs in these data sets, and we were having a number of issues in the conversion to CSV.

The only supported output format at the moment is JSON, and thus that flag has been removed.

That being said this is a good lesson going forward, I will look to add documentation to the CLI itself notating when flags are deprecated.

Please let us know if you have any other issues or concerns with the SailPoint CLI

---

<div class="post-metadata">

**Author:** ![antony\_petson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/antony_petson/32/2697_2.png) [@antony\_petson](https://developer.sailpoint.com/discuss/u/antony_petson)\
**Post date:** [February 23, 2024, 12:41pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-cli-output-types/21584/6 "2024-02-23T12:41:20Z")

</div>

Hey Luke  
Can it be removed from the documentation ?  
I think still people are following the same documentation on [Search | SailPoint Developer Community](https://developer.sailpoint.com/idn/tools/cli/search#command) which is misguiding.

> Output Types[​](https://developer.sailpoint.com/idn/tools/cli/search#output-types)

Use the `outputTypes` flag to specify the output data format for the search query results. Currently, the only supported output types are `json` and `csv`.
