Skip to main content
The playfab cloudscript command family is Experimental. Its CLI interface might change or be removed based on feedback. Manage Classic CloudScript, the JavaScript that PlayFab hosts, with classic, and the Azure Functions that CloudScript calls, with function. None of these commands ask before they run.

playfab cloudscript classic

playfab cloudscript function

function registers existing Azure Functions with PlayFab, so CloudScript can call them. It doesn’t create or change anything in Azure.

Function keys

An HTTP-triggered Azure Function with function-level authorization, Azure’s default, needs its function key. Pass the key in a file rather than in the URL, so it stays out of shell history and process listings: The CLI adds the key to the URL as code, and registers the same URL that the Azure portal’s Get function URL shows.

Table output

These commands accept --output table; the others don’t. See Table output. To see a registration’s URL and other details, use JSON output.

Examples

Check the published version, and read a revision:
Upload main.js as a new revision:
create returns the new revision’s Version and Revision. After you review the revision, publish it with those numbers:
List HTTP function registrations:
Register a function whose key is in function-key.txt:
To read the key from stdin instead, such as from a secret store:
Register a function that needs no key:
Unregister MatchWebhook:
Last modified on November 18, 2026