Back to API Docs

Seed Subscription Plan (Testing)

Use this management command to create/update a SubscriptionPlan and (optionally) attach it to a user via UserSubscription.

Command: - python manage.py seed_subscription_plan

Common usage (set team limit so invitations work):

python manage.py seed_subscription_plan \\
  --plan-alias PRO \\
  --plan-name "Pro" \\
  --team-member-limit 5 \\
  --user-email khajankasganj@gmail.com \\
  --status-code active \\
  --duration-days 30

Notes: - The command is idempotent for the same --plan-alias (it updates fields if they differ). - If --user-email is provided, it updates the latest UserSubscription for that user (or creates one).