Skip to content

Feature: fetch an instance's public FAPI /v1/environment for config verification #332

Description

@jacekradko

After changing instance configuration (in our case toggling bot protection via the platform config API), the natural way to verify the change took effect is the instance's public FAPI /v1/environment payload, since that is what clerk-js actually consumes. The CLI speaks BAPI and PLAPI but has no FAPI surface, so verification falls back to curl plus manually decoding the FAPI domain out of the publishable key.

A small addition would close the loop, any of:

  • clerk api --fapi /environment --app <id> --instance <dev|prod> (resolve the FAPI domain from the instance's pk, no auth needed for public endpoints)
  • a clerk config pull --effective style command that fetches the public environment alongside the platform config

This would make config changes verifiable end to end with the CLI alone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions