Deploy Hello World

You can also refer to the EdgeWorkers CLI developer documentation for instructions on how to use the CLI to register, upload, activate and test your EdgeWorker functions.

Create an EdgeWorker version

  1. Add a new version to your Hello World EdgeWorker ID.
akamai edgeworkers upload <bundlePath> <edgeworker-identifier>
  • Replace <bundlePath> with the filename and path to the Hello World code bundle.

  • Replace <edgeworker-identifier> with the ID of your Hello World EdgeWorker.

  1. Issue this CLI command to verify that the EdgeWorker version was created:
akamai edgeworkers list-versions <edgeworker-identifier>
  • Replace <edgeworker-identifier> with the ID of your Hello World EdgeWorker.

The version you just created should appear in the list of versions.

Activate the EdgeWorker version

  1. Use this command to activate the EdgeWorker version on the Akamai network. Note the activationId.
akamai edgeworkers activate <edgeworker-identifier> <network> <version-identifier>
  • Replace <edgeWorker-identifier> with the ID of your Hello World EdgeWorker.

  • Replace <network> with STAGING.

  • Replace <version-identifier> with the version number of your Hello World EdgeWorker.

  1. To monitor the activation of the EdgeWorker version, try issuing this CLI command.
akamai edgeworkers status <edgeworker-identifier>
  • Replace <edgeWorker-identifier> with the ID of your Hello World EdgeWorker.
  1. Next, follow these instructions to test the Hello World code bundle.