# 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">


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmachine.com/developers/javascript/cli/cli-token-and-secret.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
