amp flags

このページはまだあなたの言語に翻訳されていません。 現在取り組んでいますので、後でもう一度確認してください。

amp flags manages feature flags. This command family requires the flags:read and flags:write scopes.

amp flags list

List feature flags.

bash
amp flags list --project <project_id> --limit 5

Requires the flags:read scope.

amp flags get

Get feature flag.

bash
amp flags get --project <project_id> --flag <flag_id>

Requires the flags:read scope.

amp flags create

Create feature flag.

bash
amp flags create --project <project_id> --key my-flag --name "My Flag"

Requires the flags:write scope.

amp flags update

Updates feature flag metadata and rollout settings. Use --project and --flag to identify an existing flag, then pass the fields to update. Pass --body-json to merge fields that don't have their own flag.

Known issue

amp flags update --enabled false fails for flags that have no deployment. Avoid disabling a deployment-less flag this way until Amplitude fixes the issue.

bash
amp flags update --project <project_id> --flag <flag_id> --body-json '{"description": "Updated description"}'

Requires the flags:write scope.

amp flags archive

Archives a feature flag. Archiving is destructive: preview it first with --dry-run, then run the same command without it.

bash
amp flags archive --project <project_id> --flag <flag_id> --dry-run   # preview
amp flags archive --project <project_id> --flag <flag_id>             # archive

Requires the flags:write scope.

これは役に立ちましたか?

For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

このページでは