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
Error: Unsupported attribute type: email
at createAttribute (.../appwrite-cli/lib/commands/push.js:560:19)
Configuration
{
"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
- Add
email/urlcolumn toappwrite.config.json - Run
npx appwrite-cli push tables - 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.
Recommended threads
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- Magic Link token automatically consumed
Hi, I'm using the Magic Link auth system with Appwrite Cloud and I'm running into huge issues getting users to log in successfully. About 9 times out of 10, th...