Domains CLI
Use the Domains CLI for verification and routing mappings.
Prerequisites
- Set
FREESTYLE_API_KEYin your environment. - Run commands as
npx freestyle ....
Verify a domain
Create a verification request (prints the TXT record details):
npx freestyle domains verify example.comComplete verification by domain:
npx freestyle domains complete --domain example.comOr complete by verification ID:
npx freestyle domains complete --verification-id <verification-id>List verification requests:
npx freestyle domains verificationsList verified domains
npx freestyle domains listManage domain mappings
Map a domain to a deployment:
npx freestyle domains map app.example.com --deployment-id <deployment-id>Map a domain to a VM port:
npx freestyle domains map app.example.com --vm-id <vm-id> --vm-port 3000List mappings:
npx freestyle domains mappingsDelete mapping:
npx freestyle domains unmap app.example.comJSON output is supported via --json on list and write operations.