Memberstack CLI

Custom Fields

Manage custom fields for your Memberstack members.

View Markdown
memberstack custom-fields <subcommand> [options]

custom-fields list

List all custom fields.

memberstack custom-fields list

Example

$ memberstack custom-fields list
[
  {
    "id": "fld_abc123",
    "key": "tier",
    "label": "Member Tier",
    "visibility": "PUBLIC",
    "hidden": false
  }
]

custom-fields create

Create a new custom field.

memberstack custom-fields create --key <key> --label <label> [options]

Options

OptionDescriptionRequired
--key <key>Field keyYes
--label <label>Field labelYes
--hiddenHide the fieldNo
--visibility <visibility>Field visibility: PUBLIC or PRIVATENo
--restrict-to-adminRestrict field to admin accessNo
--plan-ids <ids...>Plan IDs to associate with the fieldNo

Examples

memberstack custom-fields create --key tier --label "Member Tier"

memberstack custom-fields create \
  --key vip \
  --label "VIP Status" \
  --visibility PRIVATE \
  --restrict-to-admin

memberstack custom-fields create --key type --label "Account Type" --hidden

custom-fields update

Update an existing custom field.

memberstack custom-fields update <id> [options]

Arguments

ArgumentDescriptionRequired
idCustom field IDYes

Options

OptionDescriptionRequired
--label <label>Field labelYes
--hiddenHide the fieldNo
--no-hiddenShow the fieldNo
--table-hiddenHide the field from the tableNo
--no-table-hiddenShow the field in the tableNo
--visibility <visibility>Field visibility: PUBLIC or PRIVATENo
--restrict-to-adminRestrict field to admin accessNo
--no-restrict-to-adminRemove admin restrictionNo

Examples

memberstack custom-fields update fld_abc123 --label "Updated Tier" --hidden

memberstack custom-fields update fld_abc123 \
  --label "Member Status" \
  --no-hidden \
  --visibility PUBLIC

custom-fields delete

Delete a custom field.

memberstack custom-fields delete <id>

Arguments

ArgumentDescriptionRequired
idCustom field IDYes

Example

memberstack custom-fields delete fld_abc123

FAQ

How is this guide?

Last updated on

On this page