Skip to content

How to deploy function variables with the Appwrite CLI? #4667

Answered by stnguyen90
s3ppo asked this question in Q&A
Discussion options

You must be logged in to vote

@s3ppo would you please try with variables instead like:

        {
            "$id": "my-function",
            "name": "my-function",
            "runtime": "dart-2.17",
            "path": "functions/my-function",
            "entrypoint": "lib/main.dart",
            "ignore": [".packages", ".dart_tool"],
            "execute": [],
            "variables": {
                "APPWRITE_FUNCTION_ENDPOINT": "https://[HOSTNAME]/v1",
                "APPWRITE_FUNCTION_API_KEY": "[API KEY]"
            },
            "events": ["databases.*.create"],
            "schedule": "",
            "timeout": 15
        }

Please also make sure you're on the latest appwrite CLI (appwrite -v should sho…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@s3ppo
Comment options

@stnguyen90
Comment options

@stnguyen90
Comment options

Answer selected by stnguyen90
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
product / functions Fixes and upgrades for the Appwrite Functions.
3 participants
Converted from issue

This discussion was converted from issue #4666 on November 13, 2022 15:40.