CLI Hello World

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

For instructions on how to return detailed debugging information about your EdgeWorkers, go to 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.

Step

Link

Description

1

Create an EdgeWorker ID

Create an EdgeWorker ID to activate and manage your Hello World code bundle.

2

Add the EdgeWorkers behavior

Select the EdgeWorker ID you created for the Hello World tutorial when you add the EdgeWorkers behavior.

3

Create the Hello World code bundle

Go to the EdgeWorkers GitHub repository and download the main.js and bundle.json files from the hello-world project.

4

Deploy Hello World

To deploy your Hello World code bundle you need to create a version and activate it on the staging or production network.

5

Test Hello World

To test the Hello World code sample make a request to exercise the EdgeWorker and note the response.


Did this page help you?