CLI Hello World

Here's a high-level overview of the steps required to activate the Hello World code sample using the EdgeWorkers CLI.

📘

Request enhanced debug headers

To return detailed debugging information for your EdgeWorkers functions follow the instructions in the Enhanced debug headers section.

👍

Before you start

Refer to the comprehensive CLI documentation for instructions on how to install the EdgeWorkers package. You'll also find an overview of commands you can use to manage your EdgeWorkers.

Make sure to follow the instructions in the Get Started with APIs documentation. These instructions apply to both Akamai APIs and Akamai CLIs. You need to authenticate your CLI requests using EdgeGrid, a proprietary authentication system for APIs deployed through Akamai Control Center.

StepLinkDescription
1Create an EdgeWorker IDCreate an EdgeWorker ID to activate and manage your Hello World code bundle.
2Add the EdgeWorkers behaviorSelect the EdgeWorker ID you created for the Hello World tutorial when you add the EdgeWorkers behavior.
3Create the Hello World code bundleGo to the EdgeWorkers GitHub repository and download the main.js and bundle.json files from the hello-world project.
4Deploy Hello WorldTo deploy your Hello World code bundle you need to create a version and activate it on the staging or production network.
5Test Hello WorldTo test the Hello World code sample make a request to exercise the EdgeWorker and note the response.