import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.extensions.download('id_or_name');
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Download the extension as a ZIP archive by ID or name.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.extensions.download('id_or_name');
console.log(response);
const content = await response.blob();
console.log(content);"<string>"