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: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:
function-key.txt:
MatchWebhook:
