> For the complete documentation index, see [llms.txt](https://docs.appmachine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmachine.com/developers/javascript/cli/cli-token-and-secret.md).

# CLI Token and Secret

The CLI makes connecting a local JavaScript project to the JavaScript block of an AppMachine app possible and allows you to create, maintain, and publish updates to the JavaScript block's code directly through the command line.

Being able to setup the connection between a local JavaScript project and the JavaScript block of an AppMachine app requires the JavaScript block Mode to be set to Upload a local build. [Establishing a CLI connection](/developers/javascript/cli.md) itself requires a token and secret, which can be found in the AppMachine settings of the JavaScript block to which you want to link your project.&#x20;

Access to the CLI can be revoked by renewing the App secret via the refresh button.

***Note:** the CLI token and secret can only be viewed and/or renewed by the owner of the app.*

<img src="/files/PfEssXh372ZaszYylBV7" alt="" data-size="original">
