shippercli / provider-cpanel
cPanel provider plugin for Shipper CLI
Package info
github.com/shippercli/provider-cpanel
Type:shipper-plugin
pkg:composer/shippercli/provider-cpanel
Requires
- php: ^8.3
- composer-runtime-api: ^2.1
- guzzlehttp/guzzle: ^7.9
- shippercli/contracts: ^1.2
Requires (Dev)
- pestphp/pest: ^3.8
- vlucas/phpdotenv: ^5.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-ci/testparity-baseline-gate
- dev-servead-readme-embed
- dev-ci/use-testparity-action
- dev-codex/testparity-1-4-1
- dev-test/provider-associated-coverage
- dev-codex/testparity-pr-coverage
- dev-codex/verify-dns-record-removal
- dev-fix/custom-ssl-chain
- dev-codex/cpanel-dotenv-literals
- dev-fix/status-output
- dev-codex/reconcile-cpanel-domain-deletion
- dev-codex/cpanel-existing-directory
- dev-audit/2026-10-16-api-json-failures
- dev-audit/2026-10-16-api-transport-errors
- dev-audit/2026-10-16-api-redirects
- dev-codex/cpanel-first-deploy-retry
- dev-codex/preserve-cpanel-retry-manifest
- dev-audit/2026-10-16-cpanel-database-connections
- dev-audit/2026-10-16-database-inventory
- dev-audit/2026-10-16-postgres-password
- dev-audit/2026-10-16-manifest-scope
- dev-audit/2026-10-16-deployment-booleans
- dev-audit/2026-10-16-status-privacy
- dev-audit/2026-10-16-account-inventory
- dev-audit/2026-10-16-account-resource-booleans
- dev-audit/2026-10-16-clean-directory-inventory
- dev-audit/2026-10-16-dns-inventory
- dev-audit/2026-10-16-dns-literal-ownership
- dev-audit/2026-10-16-home-directory
- dev-audit/2026-10-16-release-inventory
- dev-audit/2026-10-16-task-cleanup
- dev-audit/2026-10-16-upload-verification
- dev-audit/2026-10-16-cpanel-dotenv
- dev-audit/2026-10-16-required-check-names
- dev-feat/capability-manifest-contract
This package is auto-updated.
Last update: 2026-11-19 02:29:15 UTC
README
Deploy and operate applications on cPanel accounts from Shipper CLI.
Install
composer require shippercli/provider-cpanel
Shipper discovers the provider through Composer's plugin metadata. No cPanel implementation is bundled into the CLI.
Configure
Use a cPanel API token when the hosting provider allows one. Password authentication remains available for hosts that do not expose account tokens.
Configure the final API endpoint directly; authenticated API calls reject redirects. See the API redirect policy.
providers: cpanel: host: "cpanel.hosting.com" port: 2083 username: "${CPANEL_USERNAME}" api_token: "${CPANEL_API_TOKEN}" projects: app: provider: cpanel path: "." web_directory: /public profiles: production: branch: main domain: "api.example.com" deploy_path: "/api" runtime: type: php version: "8.4" install_dependencies: true cpanel: domain_type: existing backup_before_deploy: true release_retention: 5
See configuration for runtime, database, cron, SSL, release, and account-specific options.
Operate
shipper validate shipper plan app --profile=production shipper apply app --profile=production shipper status app --profile=production shipper logs app --profile=production --lines=100 shipper rollback app --profile=production shipper destroy app --profile=production
The implementation targets cPanel account UAPI, the remaining operations that only exist in cPanel API 2, and optional privileged WHM API operations. See the capability model for availability rules and the operations guide for rollback and cleanup safety.
Git deployment status output
shipper status exposes a summary of saved Git deployment tasks and retrieved
Git deployment records: identifiers, method, repository root, state/status, and
recognized lifecycle timestamps. Commands, logs, output, and unknown task fields
are omitted. Unavailable or malformed Git status responses use fixed diagnostics.
This changes the status JSON shape; consumers needing command output should use
an explicit log or API operation. Other status sections retain their existing
behavior. This does not establish live cPanel deployment verification.
Runtime data in both shipper plan and shipper status is also summarized:
only type, version, application root, base URI and the dependency-install flag
are included. PHP INI directives can contain credentials or command arguments
and are omitted from these outputs. The full configured directives continue to
be used when applying runtime configuration.