CLI Token and Secret

This article explains where to find and/or renew the token and secret required to enable updating the JavaScript block's code via the Command Line Interface (CLI).

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 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.

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.

Last updated