https://github.com/appwrite/setup-for-appwrite
https://github.com/appwrite/setup-for-appwrite
hacktoberfest
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/appwrite/setup-for-appwrite
- Owner: appwrite
- License: mit
- Created: 2021-02-11T13:56:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T13:50:34.000Z (10 months ago)
- Last Synced: 2025-01-31T18:45:44.755Z (5 months ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 977 KB
- Stars: 24
- Watchers: 16
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Appwrite CLI for GitHub Actions


Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
Use the CLI to integrate your CI with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
For full API documentation and tutorials, go to [https://appwrite.io/docs](https://appwrite.io/docs)## Introduction
This action can be used in many ways:
- To add Appwrite CLI to your GitHub actions
- To log in to your Appwrite instance using **email and password**.
- To log in to your Appwrite instance using an **API key and project ID**.
- Optionally: you can pass a list of action to execute using the Appwrite CLI.### Inputes
#### ``endpoint``
Required: **NO**
Appwrite Endpoint, e.g. `https://cloud.appwrite.io/v1`
#### ``method``
Required: **NO**
Enter the login method to your Appwrite instance, available options
- keyWhen using email, you'll need to pass email and password
```yaml
- name: Appwrite action
uses: appwrite/setup-for-appwrite@v2
with:
method: email
email: ${{ secrets.EMAIL }}
password: ${{ secrets.PASSWORD }}
```When using key you'll need to pass the API key and project ID
```yaml
- name: Appwrite action
uses: appwrite/setup-for-appwrite@v2
with:
method: key
key: ${{ secrets.API_KEY }}
project: ${{ vars.PROJECT_ID }}
self_signed: true
```#### ``email``
Required: **NO**
User email
#### ``password``
Required: **NO**
User password
#### ``project``
Required: **NO**
Project ID
#### ``key``
Required: **NO**
API Key
#### ``self_signed``
Required: **NO**
Whether you are using a self-signed, local certificate
#### ``force``
Required: **NO**
When set to `true`, push or pull actions will have the `--force` flag
#### ``all``
Required: **NO**
When set to `true`, push or pull actions will have the `--all` flag
#### ``actions``
Required: **NO**
List of appwrite actions to execute, you can use write the command with or without the leading `appwrite`
```yaml
actions: |-
appwrite push functions
push collections
```## Usage
### Basic example
```yaml
name: List of userson:
workflow_dispatch:
jobs:
migrate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Appwrite
uses: appwrite/setup-for-appwrite@v2
- name: List users
run: appwrite users list
```### Full email example
```yaml
name: Database Migrationson:
release:
types: [ published ]jobs:
migrate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Appwrite
uses: appwrite/setup-for-appwrite@v2
with:
method: email
email: ${{ secrets.EMAIL }}
password: ${{ secrets.PASSWORD }}
force: true
all: true
actions: |-
push collections
```You can read more about the CLI [here](https://appwrite.io/docs/tooling/command-line/installation) and in our [docs](https://appwrite.io/docs).