CloudDeploy
✖
CloudDeploy
deploys expr to a cloud object at the specified location relative to the user's current cloud directory.
Details and Options




- CloudDeploy works from both desktop and cloud.
- CloudDeploy returns the CloudObject that was deployed.
- CloudDeploy performs different actions depending on the form of expr:
-
APIFunction[…] create a web API to access using GET or POST requests FormFunction[…] create a form to access from the web FormPage[…] create a page containing a form and result to access from the web AskFunction[…] deploy a program that asks questions during execution NotebookObject[…] output as a notebook in the cloud ExportForm[expr,"fmt"] output expr in the specified format Delayed[obj] set obj to be reevaluated whenever it is accessed on the web Dynamic[obj] set obj to be dynamically autorefreshed on the web ScheduledTask[expr,…] evaluate expr on a schedule ContinuousTask[expr] continuously reevaluate expr AutoRefreshed[obj,…] set obj to be reevaluated on a schedule HTTPResponse[…] give a specific HTTP response on the web HTTPRedirect[…] redirect to another location on the web ExternalBundle[…] deploy a directory or hierarchy of objects EmbedCode[…] output as a web version of embed code GrammarRules[…] deploy as a grammar to be applied URLDispatcher[…] define a dispatcher of relative URLs MailReceiverFunction[…] deploy a mail receiver ChannelReceiverFunction[…] deploy a channel receiver - For other forms of expr, CloudDeploy[expr,…] gives a cloud notebook, equivalent to CloudDeploy[ExportForm[expr,"NB"],…].
- CloudDeploy[expr,URL["loc"]] is equivalent to CloudDeploy[expr,"loc"].
- CloudDeploy[Dynamic[obj,UpdateInterval->dt]] specifies that the web output should be refreshed every dt seconds.
- CloudDeploy allows the following options:
-
AutoCopy False whether to make a copy when opened AutoRemove False whether to schedule the object for deletion CachePersistence Automatic controls the time duration for which an object is cached by a client CloudBase Automatic what cloud to deploy to CloudObjectNameFormat Automatic format to use for the name portion of the URL CloudObjectURLType Automatic base type of URL to use (obj, env, ...) EvaluationPrivileges Automatic privileges of evaluations by the object IconRules Automatic icons to use for the deployed object IncludeDefinitions True whether to automatically include dependencies Magnification Automatic magnification to use for the deployed notebook MetaInformation {} metainformation for the deployed object Permissions Automatic permissions for the deployed object SourceLink Automatic object to be linked as the source - With IncludeDefinitions->True, CloudDeploy[expr,…] automatically deploys all definitions needed to evaluate expr. With IncludeDefinitions->False, the evaluation of expr must explicitly evaluate all definitions that are needed.
- With the default setting MagnificationAutomatic, CloudDeploy ignores any Magnification setting in the source document and uses a 100% magnification in the deployed notebook. With MagnificationInherited, the magnification of the source document is preserved.
- With the default setting Permissions->Automatic, CloudDeploy creates a cloud object with permissions set to $Permissions, which is usually private.
- With the default setting SourceLink->Automatic, CloudDeploy sets the source link for the deployed cloud object to be the cloud object corresponding to the current notebook. If no such cloud object exists, it sets the source link to None.
- To copy an existing local file to the cloud, use CopyFile.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Deploy a Manipulate expression to a new anonymous cloud object:

https://wolfram.com/xid/05fd5yprh6-8qkmfu

Deploy an APIFunction to a new unnamed object:

https://wolfram.com/xid/05fd5yprh6-potdve

The resulting API viewed in a web browser, with color set to Blue:
Deploy a FormFunction to a named object:

https://wolfram.com/xid/05fd5yprh6-bj4oo1

Scope (6)Survey of the scope of standard use cases
ExportForm (1)
Manipulate (1)
Options (4)Common values & functionality for each option
AutoRemove (1)
Magnification (1)
Permissions (1)
SourceLink (1)
Deploy with a cloud notebook given as the source:

https://wolfram.com/xid/05fd5yprh6-binsnt


https://wolfram.com/xid/05fd5yprh6-f98bpo

Make a copy of the original source to preserve the source as it was at the time of deployment:

https://wolfram.com/xid/05fd5yprh6-g35wtc


https://wolfram.com/xid/05fd5yprh6-b5qx9h

Confirm that there is no source link:

https://wolfram.com/xid/05fd5yprh6-knj7jj

Properties & Relations (3)Properties of the function, and connections to other functions
Saving Dependencies (1)
All dependencies of the deployed expression are persisted in the resulting cloud object, by effectively executing CloudPut with IncludeDefinitions set to True:

https://wolfram.com/xid/05fd5yprh6-5og8a0

https://wolfram.com/xid/05fd5yprh6-75zlko

https://wolfram.com/xid/05fd5yprh6-ztzob0

Deleting Deployments (1)
Apply DeleteFile to the resulting CloudObject to delete a deployment:

https://wolfram.com/xid/05fd5yprh6-5me91g


https://wolfram.com/xid/05fd5yprh6-rsmwh9
Exporting Content (1)
CloudDeploy[ExportForm[expr,"fmt"]] is equivalent to CloudExport[expr,"fmt"]:

https://wolfram.com/xid/05fd5yprh6-dd627d


https://wolfram.com/xid/05fd5yprh6-6vcale

Possible Issues (2)Common pitfalls and unexpected behavior
Permissions settings determine access to a deployed cloud object:

https://wolfram.com/xid/05fd5yprh6-lz2flw

The owner of the cloud object can call the APIFunction:

https://wolfram.com/xid/05fd5yprh6-chrv5m


https://wolfram.com/xid/05fd5yprh6-hg7ppl
The APIFunction is no longer accessible:

https://wolfram.com/xid/05fd5yprh6-yvlehq

Arbitrary expressions are deployed as notebooks:

https://wolfram.com/xid/05fd5yprh6-i9r4t2

Use CloudPut to store the expression directly:

https://wolfram.com/xid/05fd5yprh6-oe3qeb

Wolfram Research (2014), CloudDeploy, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudDeploy.html (updated 2019).
Text
Wolfram Research (2014), CloudDeploy, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudDeploy.html (updated 2019).
Wolfram Research (2014), CloudDeploy, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudDeploy.html (updated 2019).
CMS
Wolfram Language. 2014. "CloudDeploy." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudDeploy.html.
Wolfram Language. 2014. "CloudDeploy." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudDeploy.html.
APA
Wolfram Language. (2014). CloudDeploy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudDeploy.html
Wolfram Language. (2014). CloudDeploy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudDeploy.html
BibTeX
@misc{reference.wolfram_2025_clouddeploy, author="Wolfram Research", title="{CloudDeploy}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/CloudDeploy.html}", note=[Accessed: 30-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_clouddeploy, organization={Wolfram Research}, title={CloudDeploy}, year={2019}, url={https://reference.wolfram.com/language/ref/CloudDeploy.html}, note=[Accessed: 30-April-2025
]}