cds-client
v1.1.2
Published
Custom Domain Service Client
Downloads
27
Readme
Custom Domain Service Client
Small Client Library for Custom Domain Service. Allows to refresh a custom domain website (ie invalidate the CDN) or get a website details.
You can achieve this via JS:
const client = new CDSClient(YOUR_TOKEN_HERE)
client.refreshSite(domain_name).then(data => console.log(data))
client.getSite(domain_name).then(data => console.log(data))
Or via the CLI:
cds refresh-site domain.com
cds get-site domain.com
Please note that you would need to set the CDS_API_TOKEN
environment variable for the CLI to work.