#deploy function with dart

19 messages · Page 1 of 1 (latest)

brisk sage
#

Can I create and deploy a dart function with a dart script and the appwrite_dart sdk? if so is the an example how to do it?

long marsh
#

I believe there's a starter example using dart function, check appwrite console -> function

brisk sage
#

ahh my question is not how to create a function, my question is if I can use instead of the appwrite node.js cli the appwrite_dart sdk to "create/upload" my function code

#

something like this:
-- appwrite_dart_create_script
-- -- functions
-- -- -- my_function_dart
-- -- -- -- function code...
-- deploy_script.dart // uses the appwrite_dart sdk to deploy my_function_dart dircectory

midnight merlin
brisk sage
#

I know, my question is if I can deploy them with dart not with the cli

onyx umbra
#

you mean to upload a dart function via dart? you can do that via the server side sdk.

brisk sage
#

how?

brisk sage
# frank oak Why? 🧐

I have a deploy script where I create db's/collections/admin user etc. so I wanna add to that script the function I wrote

brisk sage
frank oak
brisk sage
#

okey thanks

#

can you link me the cli source code?

brisk sage
#

thx

brisk sage
#

for the depoyment, can I also provide a path instead of a file for the "code" key?