Skip to content
Back

CLI Error: Email and URL Field Types Not Supported

  • 0
  • Cloud
Drengr
9 Sep, 2025, 21:55

CLI throws "Unsupported attribute type: email" when pushing tables with email or url field types.

Environment

  • CLI: appwrite-cli (npx)
  • Region: NYC Cloud
  • OS: Windows 11

Error

TypeScript
Error: Unsupported attribute type: email
    at createAttribute (.../appwrite-cli/lib/commands/push.js:560:19)

Configuration

TypeScript
{
  "tables": [{
    "$id": "users",
    "columns": [{
      "key": "email",
      "type": "email",
      "required": true
    }]
  }]
}

Expected According to docs, email and url are supported column types. CLI should create these columns successfully.

Actual CLI fails with "Unsupported attribute type" for both email and url types.

Steps

  1. Add email/url column to appwrite.config.json
  2. Run npx appwrite-cli push tables
  3. Error occurs during deployment

Workaround Using string type works but loses validation benefits.

Request How should I go about this CLI compatibility with documented email and url field types.

TL;DR
CLI throws error for `email` and `url` column types, citing them as unsupported, despite documentation. Workaround is to use `string` type. Solution pending.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more