I’m trying to create a Netlify Integration capable of injecting an edge function. I am following the instructions here: Create a new extension | 2.5.2
As instructed I run the following command:
pnpm create @netlify/sdk@1.8.7
? Where do you want to create the integration? .
? What is the slug of the integration? (e.g. my-integration) netlify-integration-alt
? Summarize what your integration does. This will be shown on the integration's card on the Integrations page.
? Which boilerplate should be included? Edge Function Injection (beta)
? What level will this integration be installed on? site (recommended for Build Event Handlers, Edge Functions and
Functions)
? Would you like to configure VS Code to use Edge Functions? no
? Which package manager do you want to use? pnpm
? Do you want to create or link a Netlify site to your integration? This will help you test your integration and
will be used to host your integration. skip
Adding dependencies...
WARN 8 deprecated subdependencies found: abab@2.0.6, domexception@4.0.0, glob@7.2.3, google-p12-pem@3.1.4, inflight@1.0.6, rimraf@2.7.1, rimraf@3.0.2, string-similarity@1.2.2
Packages: +1056
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1110, reused 1056, downloaded 0, added 1056, done
node_modules/.pnpm/@netlify+content-engine@1.2.1_@google-cloud+storage@5.20.5/node_modules/@netlify/content-engine: node_modules/.pnpm/@netlify+content-engine@1.2.1_@google-cloud+storage@5.20.5/node_modules/@netlify/content-engine: Running postinstall script, done in 308ms
dependencies:
+ @netlify/sdk 2.4.4
+ typescript 5.6.2
Done in 11.3s
Initialising integration...
Error: The "netlify-integration" CLI has been renamed to "netlify-extension".
Please use the new "netlify-extension" command instead.
node:internal/errors:984
const err = new Error(message);
^
Error: Command failed: pnpm netlify-integration init -s netlify-integration-alt -d "" -l site -p site:read,site:write
Error: The "netlify-integration" CLI has been renamed to "netlify-extension".
Please use the new "netlify-extension" command instead.
I also tried the same command, but using @latest instead of @1.8.7 and this runs without any errors, but then when I try to actually use the deployed integration, it complains about a missing integration.yaml
. But it seems as though the new tooling creates an extension.yaml
instead.
Am I following the right instructions? Any suggestions to avoid these errors?