shippercli / cli
A shipper application built with Laravel Zero with strict type checking
Requires
- php: ^8.3
- composer-runtime-api: ^2.2
- guzzlehttp/guzzle: ^7.0
- laravel-zero/framework: ^12.1
- shippercli/contracts: ^1.2
- symfony/clock: ^7.3
- symfony/console: ^7.3
- symfony/string: ^7.3
- symfony/translation: ^7.3
- symfony/yaml: ^7.4.23
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pint: ^1.29
- mockery/mockery: ^1.6
- pestphp/pest: ^4.0
- shippercli/provider-cpanel: ^1.0
Suggests
- shippercli/provider-cpanel: Deploy through cPanel accounts with domain, runtime, database, cron, SSL, and lifecycle management.
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-ci/testparity-baseline-gate
- dev-servead-readme-embed
- dev-ci/use-testparity-action
- dev-test/create-plan-action-parity
- dev-test/provider-registry-parity
- dev-test/provider-factory-parity
- dev-test/plan-flow-parity
- dev-test/destroy-flow-parity
- dev-test/config-loader-parity
- dev-test/apply-command-config-error
- dev-test/resolve-deployment-context
- dev-test/logs-command-coverage
- dev-test/status-command-coverage
- dev-test/rollback-command-coverage
- dev-test/destroy-command-coverage
- dev-test/plan-command-coverage
- dev-test/provider-adapter-coverage
- dev-codex/validate-configuration-flow-coverage
- dev-codex/testparity-1-4-1
- dev-test/validate-command-coverage
- dev-test/apply-deployment-flow
- dev-test/associated-coverage-gaps
- dev-ci/testparity
- dev-codex/update-action-pins
- dev-codex/api-example-frontend
- dev-codex/phar-smoke-ci
- dev-codex/api-example-ci-env
- dev-codex/verify-api-example
- dev-fix/november-symfony-locks
- dev-audit/2026-10-16-url-redaction
- dev-audit/2026-10-16-config-booleans
- dev-audit/2026-10-16-single-pass-interpolation
- dev-audit/2026-10-16-cli-distribution
- dev-codex/released-ploi-database-guide
- dev-codex/ci-tagged-install-guide
- dev-codex/tagged-provider-install
- dev-codex/preview-hostname-matching
- dev-audit/2026-10-16-cleanup-safety
- dev-codex/declare-databases
- dev-codex/easypanel-v2-docs
- dev-audit/2026-10-16-blocked-plans
- dev-codex/document-provider-install
- dev-codex/test-apply-failure-contract
- dev-fix/api-example-php82-dependencies
- dev-audit/2026-10-16-phar-smoke
- dev-audit/2026-10-16-database-guide
- dev-audit/2026-10-16-api-example
- dev-wip/workspace-handoff-2026-10-08
- dev-chore/remove-in-tree-stubs-v2
- dev-chore/remove-in-tree-forge
- dev-fix/cli-safety-hygiene
- dev-fix/easypanel-repository-source
- dev-chore/refresh-composer-dependencies
- dev-chore/cli-tooling-cleanup
- dev-refactor/extract-ploi-provider
- dev-fix/provider-capability-truthfulness
- dev-fix/unresolved-environment-placeholders
- dev-fix/extract-github-action
- dev-codex/fix-phar-release
- dev-marktopper-patch-1
- dev-copilot/merge-pull-request-70
- dev-copilot/update-pr-70-details
- dev-copilot/sub-pr-70-again
- dev-copilot/sub-pr-70
- dev-copilot/fix-phpstan-issues
- dev-copilot/check-github-workflows-setup
- dev-copilot/investigate-job-start-issue
- dev-copilot/resolve-phpstan-issues
- dev-copilot/create-action-groups-folder
- dev-copilot/fix-failed-tests-indicator
- dev-copilot/move-deployment-providers
- dev-copilot/rename-shipper-cli-action
- dev-copilot/create-roadmap-md-file
- dev-copilot/create-github-http-client
- dev-copilot/add-php-8-4-and-8-5-tests
- dev-copilot/create-docs-folder-and-update-links
- dev-copilot/update-website-and-db-naming
- dev-copilot/build-cli-binary
- dev-copilot/update-shipper-tool-usage
- dev-copilot/rename-project-to-shipper
- dev-copilot/use-pr-specific-database
- dev-copilot/configure-database-instances
- dev-copilot/install-laravel-example
- dev-copilot/add-sample-files-frontend-site
- dev-copilot/fix-action-exit-codes
- dev-copilot/move-business-logic-to-actions
- dev-copilot/rename-domains-for-deployment
- dev-copilot/weekly-cleanup-action
- dev-copilot/fix-deployment-log-issue
- dev-copilot/cleanup-preview-sites-on-merge
- dev-copilot/add-docs-folder-and-files
- dev-copilot/fix-github-actions-deployment-log
- dev-copilot/install-github-repository
- dev-copilot/add-laravel-zero-cli-deployer
- dev-copilot/setup-laravel-zero-strict
This package is auto-updated.
Last update: 2026-11-19 02:28:59 UTC
README
Declarative application deployments through a built-in provider and Composer provider plugins.
Shipper reads shipper.yml, validates the selected project and profile, shows
the planned operations, and delegates deployment work to the installed
provider package.
Install
Install globally with Composer:
Deployment Features
- ✅ Declarative YAML configuration (
shipper.yml) - ✅ Multiple projects and deployment profiles (production, staging, preview)
- ✅ Composer-discovered provider plugins through
shippercli/contracts - ✅ Plan/apply workflow for safe deployments
- ✅ Configuration validation
- ✅ GitHub Actions workflows for CI/CD
- ✅ Database configuration and automatic provisioning
- ✅ Database lifecycle management (create, link, destroy)
composer global require shippercli/cli
Or work from source:
composer install ./shipper list
Prebuilt PHAR binaries are published on the releases page.
Providers
Provider availability and lifecycle support currently differ by distribution:
| Provider | Distribution | Registered | Validate / plan | Apply | Destroy | Status / logs / rollback |
|---|---|---|---|---|---|---|
| Ploi | shippercli/provider-ploi from tagged GitHub releases |
When installed | Yes | Yes | Yes | Status and logs; no rollback |
| cPanel | shippercli/provider-cpanel on Packagist |
When installed | Yes | Yes | Yes | Yes |
| EasyPanel | shippercli/provider-easypanel 2.x on Packagist |
When installed | Yes | Yes | Yes | Status and logs; no rollback |
| Forge | shippercli/provider-forge from tagged GitHub releases |
When installed | Yes | Yes | Yes | Status and logs; no rollback |
| Coolify | shippercli/provider-coolify from tagged GitHub releases |
When installed | Yes | Yes | Yes | Yes |
| Railway, Cloudflare Pages, Hostinger, Portainer | Source only | No by default | Experimental | Unavailable by default | Unavailable by default | See provider source |
See the provider capability matrix for the scope of live deployment verification.
Incomplete in-tree providers are deliberately not registered. Calling an
unimplemented lifecycle operation directly returns failure with a clear
not implemented error rather than reporting a successful deployment.
For local global use, install the CLI and providers into the same Composer
home, then run Composer's global vendor/bin/shipper:
composer global require shippercli/cli shippercli/provider-cpanel shippercli/provider-easypanel
Existing EasyPanel 1.x deployments require a separate cutover before adopting 2.x. See the EasyPanel upgrade instructions.
For Forge, Ploi, and Coolify, register the GitHub repositories for the providers you need in the same Composer home before installing them. For example, to install all three:
composer global config repositories.shipper-forge git https://github.com/shippercli/provider-forge.git composer global config repositories.shipper-ploi git https://github.com/shippercli/provider-ploi.git composer global config repositories.shipper-coolify git https://github.com/shippercli/provider-coolify.git composer global require shippercli/cli shippercli/provider-forge shippercli/provider-ploi shippercli/provider-coolify
Shipper discovers packages with Composer's runtime plugin metadata. Provider credentials, platform features, and configuration options belong to each provider's documentation rather than the core CLI.
The release PHAR has its own dependencies and cannot discover separately
installed provider packages. For CI, use
shippercli/actions/.github/actions/shipper@92aa9fcfd445ca39548b99f07d4f096f6b07074f,
which installs the CLI and providers together in an isolated Composer
directory. For Forge, Ploi, and Coolify, register the provider repositories
in a Composer home shared with the Action. The
GitHub Actions example
shows how to install the tagged providers and validate a configuration.
Configure
Create shipper.yml in the application repository:
providers: provider_name: api_token: "${PROVIDER_API_TOKEN}" projects: backend: provider: provider_name path: "." web_directory: /public profiles: production: branch: main domain: "api.example.com" staging: branch: develop domain: "api.example-test.com"
provider_name is the slug registered by the installed package. Profiles can
override provider-supported runtime, database, domain, environment, and
lifecycle options.
Environment placeholders use ${NAME} syntax and are resolved at runtime.
Keep credentials in the shell, CI secrets, or another secret manager.
Commands
# Validate all configured projects and profiles. shipper validate # Preview provider operations without changing remote state. shipper plan backend --profile=production # Apply a deployment. --force skips the confirmation prompt. shipper apply backend --profile=production --force # Inspect provider-defined deployment and resource state. shipper status backend --profile=production # Read recent provider or application log lines. shipper logs backend --profile=production --lines=100 # Restore the latest or a named provider-managed release. shipper rollback backend --profile=production shipper rollback backend --profile=production --release=release-id # Remove only resources the provider identifies as Shipper-managed. shipper destroy backend --profile=preview --force
status, logs, and rollback are optional provider capabilities. Shipper
returns a clear error when the selected provider does not implement one.
Provider contracts
Every provider implements validation, planning, apply, destroy, name, and
error-reporting methods from shippercli/contracts.
Optional contracts add:
- deployment status
- recent logs
- release rollback
- server provisioning and cleanup
The CLI adapts installed contract providers to its internal flows. New providers are Composer plugins and are discovered from their package metadata.
GitHub Actions
A minimal deployment workflow installs Shipper and its provider packages in an isolated tool directory through the composite action:
name: Deploy on: push: branches: [main] permissions: contents: read jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Deploy with Shipper uses: shippercli/actions/.github/actions/shipper@c2c276e12f831ba2c3377a063d579fede5cc5ecc with: command: apply project: backend profile: production force: true providers: | shippercli/provider-cpanel:^1.0 env: CPANEL_USERNAME: ${{ secrets.CPANEL_USERNAME }} CPANEL_API_TOKEN: ${{ secrets.CPANEL_API_TOKEN }}
See GitHub Actions for production, staging, preview, cleanup, and reusable-action patterns.
Documentation
-
Configuration Guide - Complete shipper.yml configuration reference
-
Server Lifecycle - Existing servers, managed preview servers, and cleanup rules
-
PR Previews - Set up preview environments for pull requests
-
Sites Management - Managing site lifecycle and deployment
-
Database Management - Database configuration and operations
-
GitHub Actions Setup - Automated deployments with GitHub Actions
-
GitHub Action Usage - Using Shipper as a reusable GitHub Action
-
Build System - Understanding the build and release process
-
Strict Standards - Code quality and type safety standards
-
Roadmap - Planned features and Ploi.io configurations not yet supported
Development
composer format
composer format:check
composer analyse
XDEBUG_MODE=coverage composer test
composer build
The codebase targets PHP 8.3+, Laravel Pint, PHPStan level 9, and Pest.
Orphan preview cleanup
cleanup-orphaned uses GITHUB_TOKEN and GITHUB_REPOSITORY (owner/repo) to
read open PRs. It considers only projects whose repository.provider is github
and whose repository.name matches that repository. Names may use owner/repo,
https://github.com/owner/repo.git, or git@github.com:owner/repo.git; matching
is case insensitive. Projects with missing or different repository metadata are
excluded, so a PR list from one repository cannot authorize another's cleanup.
Only the preview profile is enumerated. Its domain must contain exactly one
${GITHUB_PR_NUMBER} placeholder. Cleanup requires a positive PR number and
the provider's ownership checks. Malformed or incomplete GitHub inventories stop
cleanup; a fetch failure after confirmation also returns a failure exit status.
Use --dry-run to inspect candidates before deletion.
Release
Tags build and publish the PHAR through GitHub Actions:
git tag v1.0.0 git push origin v1.0.0
URL credentials in command output
Command lines, including provider plan fields, logs, status JSON and error
messages, redact the user information in HTTP(S) URLs before display. For
example, https://user:password@example.com/repo.git is displayed as
https://[redacted]@example.com/repo.git. Provider execution receives the
original configuration. This covers URL user information only; providers remain
responsible for redacting tokens, query parameters, environment values and
other secret forms from their output.
License
MIT