npm.io
1.1.2 • Published 4 years agoCLI

cds-client

Licence
ISC
Version
1.1.2
Deps
1
Size
3 kB
Vulns
25
Weekly
0
DeprecatedThis package is deprecated

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.