# Schema Devices and Custom Capabilities

**URL:** <https://community.smartthings.com/t/schema-devices-and-custom-capabilities/199675>\
**Category:** Tutorials\
**Created:** [July 17, 2020, 12:35pm UTC](https://community.smartthings.com/t/schema-devices-and-custom-capabilities/199675 "2020-07-17T12:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![cdelasablonniere](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@cdelasablonniere](https://community.smartthings.com/u/cdelasablonniere)\
**Post date:** [August 19, 2020, 3:46pm UTC](https://community.smartthings.com/t/schema-devices-and-custom-capabilities/199675/14 "2020-08-19T15:46:37Z")

</div>

Hi @nayelyz,

Things are progressing I guess 🙂

> Maybe some information was cached, so try updating the friendlyName and externalDeviceID in the discovery response of the Schema connector:  
> `addDevice(externalDeviceID, friendlyName, deviceHandlerType)`

I changed the externalDeviceID and friendly Name, but I still have the same result even after deleting and re-adding the device in Smartthings app.

> You can use the SmartThings CLI, see this [post](https://community.smartthings.com/t/custom-capability-and-cli-developer-preview/197296) where you can find documentation about the installation and commands; or API requests using a tool such as Postman (refer to the [SmartThings API document](https://smartthings.developer.samsung.com/docs/api-ref/st-api.html#operation/createCapability)).

- I installed the cli from [here](https://github.com/SmartThingsCommunity/smartthings-cli/releases/tag/v0.0.0-pre.8)
- Then I tried to create a custom capability, but I got an authentication error:  
 ![image](https://global.discourse-cdn.com/smartthings/original/3X/b/8/b8d21b4edfc791f1d25be469defea6dff8581fcf.png)
- I found the [CLI documentation](https://smartthings.developer.samsung.com/docs/workspace/general-tools/cli.html) and it talks about requesting an access token. I tried that but the CLI I have does not recognize that command:  
 ![image](https://global.discourse-cdn.com/smartthings/original/3X/9/7/97c40227b307dda837a46f272e7dddac91304bce.png)
- I then saw in the CLI documentation that I can download the CLI from the Developer Workspace:  
 ![image](https://global.discourse-cdn.com/smartthings/original/3X/9/a/9ad840398668b5c13b8effb18ed6fdb788b84601.png)  
But I do not have **“Tools”** menu in my Developer Workspace.

So my questions are:

- Are there different versions of the CLI ?
- Why the one I got does not recognize the “request-token” command?
- Am I suppose to have a **“Tools”** menu in my Developer Workspace?

Thanks for your help, it is appreciated.

Charles

---

_[View the full topic](https://community.smartthings.com/t/schema-devices-and-custom-capabilities/199675)._
