antonio84Original post
Rank 1: Thread
Hello, when I deploy a function with appwrite CLI with this command: appwrite functions createDeployment --functionId=myfunc --entrypoint='main.py' --code="." --activate=true
how can I ignore files and directories?
Summary
You should use `appwrite deploy function` instead of `appwrite functions createDeployment`. The `deploy function` command respects the `appwrite.json` and `.gitignore` files to ignore files and directories. Make sure your function is included in the `appwrite.json` file. If the ignore feature is not working, try updating your Appwrite CLI version or check if there is an issue with your `.gitignore` file.