Prerequisites
Before publishing, ensure:- You are authenticated:
pragma auth login - Your
pyproject.tomlhas a[tool.pragma]table;pragma providers initgenerates it
Publish a Version
From your provider project directory:- Builds the wheel with
uv build - Extracts the resource type schemas from the provider package
- Uploads the wheel and schemas as
<org>/<provider>, where<org>is your organization’s slug and<provider>is theproviderkey of[tool.pragma]
version in pyproject.toml. Published versions are immutable: bump the version before publishing again.
Publish from another directory, attach release notes, or upload a wheel you built yourself:
Install the Provider
Install the published provider in your organization:install queues the provider, and the platform deploys it. Pin a version with --version:
Check Deployment Status
Ship a New Version
Publish the new version, then upgrade the installed provider to it:pragma providers deploy <org>/mycompany --version 0.2.0 redeploys an installed provider at a given version.
Verify Deployment
List the resource types your provider registered:test-resource.yaml:
Troubleshooting
”pyproject.toml not found” or “Missing [tool.pragma] section”
Runpublish from your provider directory, or pass the directory:
[tool.pragma] table in pyproject.toml needs provider, package, display_name, and description.
”Authentication required”
Log in to the platform:Version already published
Published versions are immutable. Bumpversion in pyproject.toml and publish again.
Build or schema extraction failed
Common causes:- Missing dependencies in
pyproject.toml - Syntax errors in provider code
- A
ConfigorOutputsclass without a docstring, or a config field with a bare type instead ofField[T] - A non-computed resource without
on_observe
Resource type not found
Ensure your resources are registered with the provider:[tool.pragma].
Resources not processing
Verify the provider is running:- The provider deployed successfully
- The resource configuration is valid
- The resource’s dependencies are ready
Complete Deployment Workflow
Publish, then install or upgrade:Next Steps
Lifecycle Methods
Implement create, update, and delete operations.
CLI Reference
Full command reference for provider management.