Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation


appwrite-cli

A fast, single-binary CLI for Appwrite — built for power users and CI/CD.


ReleaseDownloadsGoLicense


Why This Exists

Appwrite has an official CLI built on Node.js. This is something different.

Official CLIappwrite-cli
RuntimeRequires Node.jsSingle binary, zero dependencies
AuthOne project at a timeNamed profiles — switch instantly
OutputText6 formats: JSON, table, CSV, TSV, YAML, minimal
Self-hostedRequires manual configFirst-class --endpoint per profile
EnvironmentsNo comparisonaw diff --source staging --target production
IaCPush/pull workflowaw export / aw import — full YAML config
MonitoringNoneaw watch — live terminal dashboard
DiagnosticsNoneaw doctor — validate everything in one command
CI/CDNeeds Node setupDrop in binary, set env vars, go
CompletionsBasicDynamic — tab-complete database IDs, function names

Quick Install

brew tap AndroidPoet/tap && brew install appwrite-cli

Or download from Releases. After install, use appwrite-cli or the alias aw.

Setup

# Cloud
aw auth login --api-key your_api_key_here
# Self-hosted
aw auth login --api-key your_key --endpoint https://appwrite.example.com/v1 --name self-hosted
# Initialize project
aw init --project your_project_id
# Verify everything works
aw doctor

Command Overview

75+ commands across 13 resource groups covering the full Appwrite REST API.

CategoryCommandsWhat you can do
DatabaseslistgetcreateupdatedeleteManage databases
Collectionslistgetcreateupdatedeletelist-attributeslist-indexesSchema management
DocumentslistgetcreateupdatedeleteCRUD with JSON data
Storagelist-bucketsget-bucketcreate-bucketupdate-bucketdelete-bucketlist-filesget-filedelete-fileBuckets and files
Functionslistgetcreateupdatedeletelist-executionslist-variableslist-deploymentsServerless functions
Userslistgetcreateupdate-nameupdate-emaildeletelist-sessionslist-logsUser management
Teamslistgetcreateupdatedeletelist-membersTeam management
Messaginglist-messagesget-messagelist-topicsget-topiccreate-topicdelete-topiclist-providersPush, email, SMS
HealthgetdbcachestoragequeueInstance health checks
AuthloginswitchlistcurrentdeleteMulti-profile auth

Power Commands

CommandDescription
aw statusProject overview dashboard — databases, functions, buckets, users, teams
aw doctorDiagnostic checks — config, API key, project, endpoint, connectivity
aw watch healthLive health monitoring with auto-refresh
aw watch metricsLive project metrics dashboard
aw diff --source staging --target prodCompare resource counts across environments
aw export --file infra.yamlExport databases + collections + schemas to YAML
aw import --file infra.yamlImport infrastructure from YAML
aw reportGenerate comprehensive project report

Commands

Databases

aw databases list
aw databases list --all -o table
aw databases get --database-id mydb
aw databases create --name "Production DB"
aw databases create --database-id mydb --name "My Database" --enabled
aw databases update --database-id mydb --name "Renamed DB"
aw databases delete --database-id mydb --confirm

Collections

aw collections list --database-id mydb
aw collections get --database-id mydb --collection-id users
aw collections create --database-id mydb --name "Users" --document-security
aw collections update --database-id mydb --collection-id users --name "App Users"
aw collections delete --database-id mydb --collection-id users --confirm
aw collections list-attributes --database-id mydb --collection-id users
aw collections list-indexes --database-id mydb --collection-id users

Documents

aw documents list --database-id mydb --collection-id users
aw documents list --database-id mydb --collection-id users --all -o csv
aw documents get --database-id mydb --collection-id users --document-id doc123
aw documents create --database-id mydb --collection-id users \
--data '{"name":"Alice","email":"alice@example.com"}'
aw documents update --database-id mydb --collection-id users --document-id doc123 \
--data '{"name":"Alice Updated"}'
aw documents delete --database-id mydb --collection-id users --document-id doc123 --confirm

Storage

aw storage list-buckets
aw storage get-bucket --bucket-id uploads
aw storage create-bucket --name "User Uploads" --max-file-size 10000000 --encryption --antivirus
aw storage update-bucket --bucket-id uploads --name "Media" --compression gzip
aw storage delete-bucket --bucket-id uploads --confirm
aw storage list-files --bucket-id uploads
aw storage get-file --bucket-id uploads --file-id file123
aw storage delete-file --bucket-id uploads --file-id file123 --confirm

Functions

aw functions list
aw functions get --function-id myfunc
aw functions create --name "Process Order" --runtime node-18.0 --timeout 30
aw functions update --function-id myfunc --name "Process Order v2" --timeout 60
aw functions delete --function-id myfunc --confirm
aw functions list-executions --function-id myfunc
aw functions list-variables --function-id myfunc
aw functions list-deployments --function-id myfunc

Users

aw users list
aw users list --all -o table
aw users get --user-id user123
aw users create --email alice@example.com --password secret123 --name "Alice"
aw users update-name --user-id user123 --name "Alice Smith"
aw users update-email --user-id user123 --email newemail@example.com
aw users delete --user-id user123 --confirm
aw users list-sessions --user-id user123
aw users list-logs --user-id user123

Teams

aw teams list
aw teams get --team-id engineering
aw teams create --name "Engineering" --roles admin,member
aw teams update --team-id engineering --name "Platform Engineering"
aw teams delete --team-id engineering --confirm
aw teams list-members --team-id engineering

Messaging

aw messaging list-messages
aw messaging get-message --message-id msg123
aw messaging list-topics
aw messaging get-topic --topic-id announcements
aw messaging create-topic --name "Announcements"
aw messaging delete-topic --topic-id announcements --confirm
aw messaging list-providers

Health

aw health get # Overall health
aw health db # Database health
aw health cache # Cache health
aw health storage # Storage health
aw health queue # Queue health

Status & Monitoring

aw status # Project dashboard
aw watch health # Live health monitoring
aw watch metrics # Live project metrics
aw watch metrics --interval 10 # Custom refresh (seconds)

Export, Import & Diff

aw export --file infra.yaml # Export project to YAML
aw import --file infra.yaml --dry-run # Preview import
aw import --file infra.yaml # Apply import
aw diff --source staging --target production # Compare environments
aw report # Full project report

Auth & Setup

# Multi-profile management
aw auth login --api-key key_xxx --name production
aw auth login --api-key key_xxx --name staging --endpoint https://staging.example.com/v1
aw auth switch --name staging
aw auth list
aw auth current
aw auth delete --name old --confirm
# Project setup
aw doctor # Verify configuration
aw init --project proj_xxx # Create .aw.yaml
aw init --project proj_xxx --endpoint https://self-hosted.example.com/v1
# Shell completions
aw completion bash > /usr/local/etc/bash_completion.d/aw
aw completion zsh >"${fpath[1]}/_aw"
aw completion fish >~/.config/fish/completions/aw.fish

Output Formats

aw databases list # JSON (default)
aw databases list --pretty # Pretty JSON
aw databases list -o table # Table
aw databases list -o csv # CSV
aw databases list -o tsv # TSV
aw databases list -o yaml # YAML
aw databases list -o minimal # IDs only (for scripting)

Pipe-friendly

# Get all database IDs
aw databases list -o minimal
# Export users to CSV
aw users list --all -o csv > users.csv
# Count functions
aw functions list --all -o minimal | wc -l
# Use with jq
aw databases list --pretty | jq '.[].name'

Pagination

aw users list --limit 50
aw users list --limit 50 --offset 50
aw users list --all # Fetch everything

Multi-Profile Auth

Manage multiple Appwrite instances — cloud, self-hosted, staging, production — all from one CLI.

# Configure profiles
aw auth login --api-key cloud_key --name cloud
aw auth login --api-key self_key --name selfhosted --endpoint https://aw.mycompany.com/v1
aw auth login --api-key staging_key --name staging --endpoint https://staging.mycompany.com/v1
# Switch between them
aw auth switch --name staging
aw databases list -p my_project_id
# Or use env vars in CI
AW_API_KEY=xxx AW_PROJECT=yyy AW_ENDPOINT=https://... aw databases list

Environment Variables

VariableFlagDescription
AW_API_KEYAPI key (overrides profile)
AW_PROJECT--projectProject ID
AW_ENDPOINT--endpointAppwrite endpoint URL
AW_PROFILE--profileAuth profile name
AW_OUTPUT--outputOutput format
AW_DEBUG--debugShow API requests/responses
AW_TIMEOUT--timeoutRequest timeout

Configuration

Global config

Stored at ~/.appwrite-cli/config.json:

{
"default_profile": "production",
"profiles": {
"production": {
"name": "production",
"api_key": "your_key",
"endpoint": "https://cloud.appwrite.io/v1",
"default_project": "proj_xxx"
},
"staging": {
"name": "staging",
"api_key": "staging_key",
"endpoint": "https://staging.example.com/v1"
}
}
}

Project config

Create .aw.yaml in your project root:

project: your_project_idendpoint: https://cloud.appwrite.io/v1output: table

Auto-discovered from current or parent directories.

Install

Homebrew (macOS / Linux)

brew tap AndroidPoet/tap && brew install appwrite-cli

Go Install

go install github.com/AndroidPoet/appwrite-cli/cmd/appwrite-cli@latest

Binary Download

Download the latest binary for your platform from Releases.

PlatformArchitectureFile
macOSApple Siliconappwrite-cli_*_darwin_arm64.tar.gz
macOSIntelappwrite-cli_*_darwin_amd64.tar.gz
Linuxx86_64appwrite-cli_*_linux_amd64.tar.gz
LinuxARM64appwrite-cli_*_linux_arm64.tar.gz
Windowsx86_64appwrite-cli_*_windows_amd64.zip

Linux Packages

# Debian / Ubuntu
sudo dpkg -i appwrite-cli_*_amd64.deb
# RHEL / Fedora
sudo rpm -i appwrite-cli_*_amd64.rpm

How Releases Work

Releases are fully automated via GitHub Actions and GoReleaser.

Push v* tag → CI runs tests → GoReleaser builds → GitHub Release created
│
├── Binaries (macOS, Linux, Windows × amd64/arm64)
├── .deb and .rpm packages
├── Homebrew formula updated (AndroidPoet/homebrew-tap)
└── Checksums (checksums.txt)

Creating a release

git tag v0.1.0
git push origin v0.1.0

CI

Every push and PR to master runs:

  • go build ./...
  • go test ./... -v -race
  • go vet ./...

Contributing

git clone https://github.com/AndroidPoet/appwrite-cli.git
cd appwrite-cli
make deps # Download dependencies
make build # Build binary to bin/
make test# Run tests
make lint # Run linter

Find this repository useful? ❤️

Support it by joining stargazers for this repository. ⭐
Also, follow me on GitHub for my next creations! 🤩

License

MIT


Not affiliated with Appwrite.

About

Fast, single-binary CLI for Appwrite — multi-profile, multi-format, multi-environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages