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.

이 페이지에서