CLI
Production Deployment
Configure, deploy, promote, and verify an Asiyst assistant with production settings and security guidance. Overview The asiyst deploy command pushes local...
On this page (17 sections)
Overview
The asiyst deploy command pushes local asiyst.config.json changes to the Asiyst Cloud Gateway.
Deploying Configuration Changes
# Preview changes without modifying live traffic
asiyst deploy --dry-run
# Deploy to production
asiyst deploy --env production
Production
Overview
Production environments run on global edge clusters optimized for high concurrency, low latency, and 99.99% availability.
Production Hardening Standards
- Remove localhost and wildcard entries from production Allowed Domains.
- Enable Content Security Policy (CSP) headers on your web server.
- Configure error webhook alerts in Project Settings > Notifications.
High Availability & Edge CDNs
SDK assets and 3D avatar bundles are served across 300+ Cloudflare edge locations with Cache-Control: public, max-age=31536000, immutable.
Production Setup
Overview
Complete this checklist before launching the assistant to production traffic.
Production Readiness Checklist
- Allowed Domains: Whitelist production origins (
https://mycompany.com).
- CSP Headers: Include
https://cdn.asiyst.cominscript-srcandconnect-src.
- Session Revocation: Call
Asiyst.logout()when users log out of your site.
Production Security Best Practices
Overview
Before directing enterprise traffic to pages with the embedded Asiyst assistant, complete this hardening checklist to ensure maximum security, privacy, and performance.
Production Readiness Checklist
| Category | Verification Item | Status |
|---|---|---|
| Credentials | Use pk_live_ public keys only; zero secret keys in client bundles | Required |
| Whitelists | Remove http://localhost and wildcards from production Allowed Domains | Required |
| CSP | Add https://cdn.asiyst.com and wss://api.asiyst.com to Content-Security-Policy | Required |
| Sessions | Implement Asiyst.logout() on user sign-out | Required |
| Alerts | Configure Slack / PagerDuty webhook for error rate spikes | Recommended |
| Retention | Set conversation data retention window (e.g. 90 days) | Recommended |
Content Security Policy (CSP) Directives
If your website enforces strict CSP headers, include these directives:
Content-Security-Policy:
default-src 'self';
script-src 'self' https://cdn.asiyst.com;
connect-src 'self' https://api.asiyst.com wss://api.asiyst.com https://cdn.asiyst.com;
img-src 'self' data: https://cdn.asiyst.com;
style-src 'self' 'unsafe-inline';
Monitoring & Incident Response
- Monitor 403 Origin rejections in the Analytics > Errors tab.
- Maintain a dedicated security contact email under Account Settings > Security Contact.
Publish
Overview
The asiyst publish command compiles and publishes an immutable version release of an avatar or prompt template.
Publishing Releases
asiyst avatar publish --avatar avt_9f8a2b3c4d --tag "v2.0"