prefect-cloud
⚡ Deploy your code to Prefect Cloud in seconds! ⚡
Deploy and run your Python functions on Prefect Cloud with a single command.
Installation
First, install uv if you haven't already. See installation docs here
curl -LsSf https://astral.sh/uv/install.sh | sh
Create and activate a virtual environment:
uv venv && source .venv/bin/activate
Then install prefect-cloud:
uv pip install prefect-cloud
Alternatively, you can run prefect-cloud as a tool without installing it using uvx. See uv tools guide for more details.
Quick Start with uvx (no installation required)
If you prefer to run without installing, you can use uvx to run prefect-cloud commands directly:
# Login to Prefect Cloud
uvx prefect-cloud login
# Connect to GitHub (for private repos)
uvx prefect-cloud github setup
# Deploy your workflow
uvx prefect-cloud deploy examples/hello.py:hello_world --from PrefectHQ/prefect-cloud
# Run it
uvx prefect-cloud run hello_world/hello_world
# Schedule it
uvx prefect-cloud schedule hello_world/hello_world "0 * * * *"
Login to Prefect Cloud
prefect-cloud login
Deploy your workflow
Deploy any Python function from a GitHub repository. For example:
# https://github.com/ExampleOwner/example-repo-cloud/blob/main/examples/hello.py
def hello_world():
print("Hello, World!")
Deploy to Prefect Cloud
prefect-cloud deploy <path/to/file.py:function_name> --from <source repo URL>
e.g.
prefect-cloud deploy examples/hello.py:hello_world --from PrefectHQ/prefect-cloud
Run it with
prefect-cloud run <flow_name>/<deployment_name>
e.g.
prefect-cloud run hello_world/hello_world
Schedule it with
prefect-cloud schedule <flow_name>/<deployment_name> <SCHEDULE>
e.g.
prefect-cloud schedule hello_world/hello_world "0 * * * *"
Additional Options
Add Dependencies
# Add dependencies
prefect-cloud deploy ... --with pandas --with numpy
# Or install from requirements file at runtime
prefect-cloud deploy ... --with-requirements </path/to/requirements.txt>
Include Environment Variables
prefect-cloud deploy ... --env KEY=VALUE --env KEY2=VALUE2
Include Secrets as Environment Variables
# Create or replace secrets with actual values
prefect-cloud deploy ... --secret API_KEY=actual-secret-value --secret DB_PASSWORD=another-secret-value
# Reference existing secret blocks
prefect-cloud deploy ... --secret API_KEY="{existing-api-key-block}" --secret DB_PASSWORD="{my-database-password}"
From a Private Repository
(Recommended!) Install the Prefect Cloud GitHub App into the repository you want to deploy from. This will allow you to deploy from private repositories without needing to provide a personal access token.
prefect-cloud github setup
Alternatively, you can provide a personal access token on each deploy:
prefect-cloud deploy ... --from <private source repo URL> --credentials GITHUB_TOKEN
Metadata
Release files for prefect-cloud 0.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prefect_cloud-0.1.14.tar.gz | 135.6 kB | Without provenance | Details for prefect_cloud-0.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prefect_cloud-0.1.14-py3-none-any.whl | Python 3 | none | any | Details for prefect_cloud-0.1.14-py3-none-any.whl |
Total release size: 192.8 kB
Release files / prefect_cloud-0.1.14.tar.gz
| Download URL | prefect_cloud-0.1.14.tar.gz |
|---|---|
| Size | 135.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e199fb3cc3b77f7e7782ff2a6cdb73cf55464a7a73bc9e4a5e62acce2a01339
|
|
BLAKE2b-256 checksum How to use checksums |
dd8e31ded9a9f1f25a2ffd6bbd573dc894b01d5891c08ea577aae6b9a80383ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / prefect_cloud-0.1.14-py3-none-any.whl
| Download URL | prefect_cloud-0.1.14-py3-none-any.whl |
|---|---|
| Size | 57.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db39200da59c6590c3370f2e25173489ca93af9b6666fc529cf6b9c33073b150
|
|
BLAKE2b-256 checksum How to use checksums |
a1c87f2d981087925127bb85a0ecb961b78d91c725c05ae200a7f127bd1a603c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for prefect-cloud 0.1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.