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
- Server Down
Appwrite services are down. When will they start working again?
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Function was working: Failed to load ent...
I had a Bun function deployed two months ago working until 2 days ago on a daily basis, now I'm getting: Failed to load entrypoint, file src/main.js does not ex...