SalesforceCommerceCloud / SalesforceCommerceCloud/b2c-developer-tooling

Implement ecdn cache ocapi-toggle command

Open
#301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
53
Forks
19
Avg merge
1d 4h
Merged PRs (30d)
33

Description

Summary

The b2c ecdn cache ocapi-toggle command was documented but never implemented. This command would toggle the OCAPI caching page rule on a CDN zone.

Command to Implement

  • b2c ecdn cache ocapi-toggle --zone <zone> --enabled/--no-enabled

Context

Discovered during v1.0 GA readiness audit. Documentation was removed in the cleanup PR.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the CLI entry point for b2c ecdn cache and inspect how existing cache commands handle --zone and boolean options. Implement ocapi-toggle to toggle the OCAPI caching page rule on the selected CDN zone, then verify both --enabled and --no-enabled behavior against the command's tests or CLI checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.