{"library":"prefect-cloud","title":"Prefect Cloud CLI","description":"Prefect-cloud is a Python package providing a command-line interface (CLI) to easily deploy and run Python functions and workflows to Prefect Cloud. It streamlines the process of getting your data pipelines orchestrated and monitored in a serverless environment. The current version is 0.1.10, and it maintains an active release cadence with regular updates.","language":"python","status":"active","last_verified":"Sun Apr 12","install":{"commands":["pip install prefect-cloud"],"cli":{"name":"prefect-cloud","version":"0.1.10"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# hello_flow.py\nfrom prefect import flow, task\n\n@task\ndef say_hello(name: str) -> str:\n    print(f\"Hello, {name}!\")\n    return f\"Said hello to {name}\"\n\n@flow(name=\"My Cloud Hello Flow\")\ndef hello_world_flow(target_name: str = \"World\"):\n    result = say_hello(target_name)\n    print(f\"Task result: {result}\")\n\n# To deploy: save this file, commit to a GitHub repo (e.g., your-username/your-repo/flows/hello_flow.py)\n# Then run the CLI command below.\n\n# CLI command (after logging into Prefect Cloud via 'uvx prefect cloud login'):\n# uvx prefect-cloud deploy hello_world_flow --from https://github.com/your-username/your-repo/blob/main/flows/hello_flow.py --name \"Hello Deployment\" --schedule \"0 0 * * *\"\n","lang":"python","description":"To use `prefect-cloud`, you first define your workflows using the `prefect` library's `@flow` and `@task` decorators. After developing your flow (e.g., in a file named `hello_flow.py`) and pushing it to a GitHub repository, you can deploy it to Prefect Cloud using the `uvx prefect-cloud deploy` command. This command uploads your flow, creates a deployment, and can optionally schedule its execution. Before deploying, ensure you've logged into Prefect Cloud using `uvx prefect cloud login`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}