Skip to content

Add list command to display all Edge Functions for the current environment (v0.9.0)#54

Merged
krystiannowak merged 4 commits into
adobe:mainfrom
krystiannowak:implement-edge-functions-list
May 22, 2026
Merged

Add list command to display all Edge Functions for the current environment (v0.9.0)#54
krystiannowak merged 4 commits into
adobe:mainfrom
krystiannowak:implement-edge-functions-list

Conversation

@krystiannowak
Copy link
Copy Markdown
Collaborator

Add list command to display all Edge Functions for the current environment

Summary

Implements the aio aem edge-functions list command that lists all configured Edge Functions for the authenticated environment, using the GET /edgeFunctions API endpoint.

Changes

  • src/commands/aem/edge-functions/list.js — new list command
    • Calls GET /edgeFunctions on the CDN API endpoint
    • Displays a formatted table (NAME, CREATED, UPDATED, ACTIVE_PACKAGE)
    • Shows helpful message when no Edge Functions are found
    • --debug / -d flag shows API endpoint URL
    • Handles API errors with request-id when available
  • src/commands/aem/edge-functions/help.js — added list to help examples
  • test/commands/aem/edge-functions/list.test.js — unit tests
  • README.md — added List section with usage and debug mode documentation
  • CHANGELOG.md — added 0.9.0 entry
  • package.json — bumped version to 0.9.0

Example output

$ aio aem edge-functions list

Edge Functions for current environment:

NAME              CREATED                UPDATED                ACTIVE_PACKAGE
abc-edgefunc      2026-02-10 09:31:47    2026-05-12 14:41:00    49
xyz-edgefunc      2026-02-10 09:32:13    2026-02-10 09:32:13    -

2 Edge Function(s) found.

@krystiannowak krystiannowak requested review from mpetria and phornig May 20, 2026 15:36
@krystiannowak krystiannowak merged commit 035b4a5 into adobe:main May 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants