New to
pcl? Start with the Quickstart Tutorial to learn the workflow.Global Options
Commands
Commands are listed in the order they are usually used in the assertion development workflow.auth
Manage authentication with your Phylax platform account.
auth login
Login to pcl. Opens a browser window where you can authenticate via wallet, email, Google, or GitHub.
auth logout
Logout from pcl and clear local authentication token.
auth status
Check current authentication status.
test
Run tests for your assertions.
pcl test uses Forge underneath for test execution. Note that pcl uses an older version of Forge, so newer Forge features may not be available. The Forge version is periodically updated to include new features. See the Forge test documentation for all available options.build
Build contracts using phorge.
apply
Preview and apply declarative deployment changes from credible.toml. This is the primary command for deploying assertions to the platform.
pcl apply reads your credible.toml configuration, builds and compiles the referenced assertion contracts, and creates a release on the platform.
By default,
pcl apply looks for credible.toml at assertions/credible.toml relative to the project root. Use -c to override this path.config
Manage your pcl configuration including authentication tokens and settings.
config show
Display the current configuration stored in ~/.config/pcl/config.toml.
config delete
Delete the current configuration file.
credible.toml Configuration
The credible.toml file defines your project’s assertion deployment configuration. It maps contracts to their assertions in a declarative format.
Default location: assertions/credible.toml (relative to your project root)
Format
Fields
| Field | Type | Required | Description |
|---|---|---|---|
environment | string | Yes | Deployment environment name (e.g., "production") |
project_id | UUID | No | Platform project ID. If omitted, you are prompted to select one interactively |
contracts | map | Yes | Named contract definitions (see below) |
| Field | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Contract address on-chain |
name | string | Yes | Human-readable contract name |
assertions | array | Yes | List of assertions to apply to this contract |
| Field | Type | Required | Description |
|---|---|---|---|
file | string | Yes | Path to assertion contract file (relative to project root) |
args | array | No | Constructor arguments for the assertion |
Example
Each contract address must be unique within the configuration.
pcl apply validates this and returns an error if duplicates are found.Environment Variables
PCL_AUTH_URL
Base URL for authentication service. Default: https://app.phylax.systems
PCL_API_URL
Base URL for the Phylax platform API. Default: https://app.phylax.systems
Configuration File
Configuration is stored in~/.config/pcl/config.toml and includes:
- Authentication tokens and identity
pcl config show or delete it with pcl config delete.
Next Steps
Apply Assertions
Learn how to deploy assertions with pcl apply
Quick Start Guide
Step-by-step tutorial for your first assertion
Installation
Install pcl
Deploy with the Platform
Deploy assertions to protect your contracts

