Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/appwrite/mod.ts>Functions#createDeployment

[READ-ONLY] Official Appwrite Deno SDK 🦕
Latest
method Functions.prototype.createDeployment
Re-export
import { Functions } from "https://deno.land/x/appwrite@12.1.0/mod.ts";

Create deployment

Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.

This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the Appwrite Cloud Functions tutorial.

Use the "command" param to set the entrypoint used to execute your code.

Parameters

functionId: string
code: InputFile
activate: boolean
optional
entrypoint: string
optional
commands: string
optional
onProgress = [UNSUPPORTED]