As I don't see bun in your activated functions
cloud
Ooh I thought it's self-hosted
cli takes proejcts from cloud console
The cloud support a limited list of runtimes till the production release.
If you want to have runtimes like Java then you'll need to create your Appwrite instance and self-host it.
I have self-hosted it but cli is going to the cloud console one
Gotcha
What OS you're using?
Ubuntu on WSL2
Good
Edit the ~/.appwrite/prefs.json file
Remove all the content or backup by renaming it.
Then relogin using the Appwrite CLI to your self-hosted instance, then you'll have the option to create a Java function.
cool. I'll try
yup it worked. Thanks for the help
<:appwriteupvote:899677724615016528>
in order to run the java file, i need to deploy the function right
?
What you mean?
You've created the function using appwrite init function?
yea
i need to run the Main.java file
Then edit the Main.java file and use the appwrite deploy function to upload it when you done
If you want to test it and run it locally I would recommend look here on Appwrite is running that file.
cool
I edited Main.java file and on running appwrite deploy function, it shows Success deployed 0 functions
You need to select the function using the spacebar then hit enter
ugh my bad
Recommended threads
- Substring lookup for array elements
Hello, Is substring look up possible for array of strings? ```js Query.contains('product_names', [chair]), ``` this only works if I have the exact item name. `...
- Weird CLI error
I'm a little lost ``` appwrite init project --organization-id my_actual_organiztion_id --project-name "test" --project-id "unique_id" ā¹ Info: For detailed erro...
- Appwrite docs mcp server 502 bad gateway
I added the appwrite docs mcp server to vscode following the docs https://appwrite.io/docs/tooling/mcp/vscode#step-1 but upon start it gives the following error...