domain command group provides operations for creating, configuring, and managing Cadence domains.
Command Overview
d
What is a Domain?
A domain is a logical namespace for workflow executions. Domains provide:- Isolation: Separate workflow executions and task lists
- Multi-tenancy: Support multiple applications in one Cadence cluster
- Configuration: Domain-level settings for retention, archival, and clusters
- Security: Access control boundaries
Domain Registration
register
Create a new domain.Domain name (must be unique)
Domain description
Owner email for contact information
Workflow execution retention in days
Active cluster name for global domains
Comma-separated list of cluster names for replication
Enable global domain (active-passive replication)
History archival status: Enabled or Disabled
URI for history archival storage
Visibility archival status: Enabled or Disabled
URI for visibility archival storage
Custom domain metadata as key-value pairs
Example: Register with Archival
Domain Updates
update
Modify an existing domain’s configuration.Domain name to update
Update domain description
Update owner email
Update retention period in days
Update active cluster
Add bad binary checksum to blocklist
Remove binary checksum from blocklist
Example: Update Archival Settings
Domain Information
describe
Show detailed domain configuration.Domain name to describe
Domain Lifecycle
deprecate
Mark a domain as deprecated (prevents new workflows).Domain name to deprecate
delete
Delete a domain (admin operation).Domain name to delete
Cross-Cluster Operations
failover
Failover a global domain to a different active cluster.Global domain name
Target cluster for failover
list-failover-history
Show domain failover history.migration
Validate domain migration settings (does not perform actual migration).This command only validates migration compatibility. Actual data migration must be performed separately.
Source domain name
Target domain name
Common Usage Patterns
Development Domain
Simple local development domain:Multi-Region Production Domain
Global domain with replication:Enable Archival for Compliance
Block Bad Binary
Prevent workflows from using a problematic deployment:Unblock Binary
Domain Data
Custom metadata can be attached to domains:Troubleshooting
Domain already exists
Domain already exists
Error:
Domain already registeredSolution: Use domain update instead or choose a different name:Cannot create global domain
Cannot create global domain
Error:
Invalid cluster configurationSolution: Verify cluster names match server configuration:Failover fails
Failover fails
Error: Ensure target cluster is in the clusters list.
Domain not replicated to target clusterSolution: Check replication status:Archival not working
Archival not working
Problem: History not being archived despite enabled status.Checks:
- Verify archival URI is valid and accessible
- Check server archival configuration
- Ensure retention period has passed
- Review server logs for archival errors
Best Practices
- Naming: Use descriptive domain names (e.g.,
payments-prod,orders-staging) - Retention: Set based on compliance and debugging needs (typically 7-30 days)
- Archival: Enable for production domains requiring audit trails
- Global Domains: Use for multi-region high availability
- Owner Email: Set to team distribution list for production domains
- Bad Binaries: Proactively block problematic deployments
Next Steps
Workflow Commands
Start managing workflows in your domain
Task List Commands
Monitor domain task lists
Admin Commands
Advanced domain administration
Domain Concepts
Learn more about domains