Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createSnapshot = async () => {
// Required
const site = 'calibre'
// Optional
const ref = 'v100'
// Create the snapshot
const snapshot = await Snapshot.create({
site,
ref
})
// Output the formatted JSON response
console.log(JSON.stringify(snapshot, null, 2))
}