Skip to main content

3rd party Appwrite CLI - appw

This is not a replacement for the official Appwrite CLI. It just provides additional functionality by using the Appwrite API directly.

Installation

pip install appw

This installs a command line tool called appw which helps you manage your appwrite instance.

Usage

$ appw --help

 Usage: appw [OPTIONS] COMMAND [ARGS]...

 Appwrite wrapper cli to perform administrative tasks

╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --help      Show this message and exit.                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────╮
│ create       Create a new org, project, key, db, collection etc;                          │
│ delete       Remove org, project, key, db, collection etc;                                │
│ get          Get a specific org, project, key, db, collection etc; details                │
│ list         List org, project, key, db, collection etc;                                  │
│ login                                                                                     │
│ show         View summary/information of the current context                              │
│ snapshot     Create/restore/migrate snapshots                                             │
│ switch       Switch the default org/project/database                                      │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
appw snapshot --help                          1 changed file  main

 Usage: appw snapshot [OPTIONS] COMMAND [ARGS]...

 Create/restore/migrate snapshots

╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --help      Show this message and exit.                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────╮
│ create                                                                                    │
│ restore   Restores an existing snapshot and syncs everything - names, schema and more     │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

More details below.

Creating a snapshot

Assuming you are running your appwrite instance at http://localhost (this will be made configurable in the upcoming changes), you can run the following command to create a snapshot of your entire configuration.

appw login  # enter your credentials
appw snapshot create

This creates the snapshots directory under the current directory where you are running the command with a backup of all the configurations. You can check-in these files into your (private) repo. If you are using public repositories keep in mind that your OAuth credentials also get backend up in plain text.

Restoring/Syncing snapshot

You can use the snapshot restore command to either sync/migrate an existing appwrite instance or setup a completely new instance.

appw snapshot restore

Once you have the snapshot restored, you can run the official appwrite cli to initialize the project (to generate appwrite.json) - helps in deploying functions during development

appwrite init

NOTE

As mentioned above, this is not a replacement for the offcial CLI. But it has commands to create a new/update/remove organization, projects etc; without having to create them on the appwrite web console directly. This is what helps us to create and restore snapshots.

Contribute

Features, bug-fixes, issue reports are all welcome.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appw-0.0.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appw-0.0.1-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file appw-0.0.1.tar.gz.

File metadata

  • Download URL: appw-0.0.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for appw-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0e8a23f2cbe2fc0bdc295e8d7b0e90f93a924cbf9884a499bc863588d005500e
MD5 66627a8296357a416e19bb721dbbdccf
BLAKE2b-256 5a28ea79d1061ca4af939599410edc3af7278b4cbe3c1a09b62b1c2963f129f3

See more details on using hashes here.

File details

Details for the file appw-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: appw-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for appw-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33759f1cb7a64b2118daa25d8505d625c8022c0030c4333336aa5ad233ff8ec3
MD5 62690fadddf6dee50e1aa402714ad1a2
BLAKE2b-256 57567aae7ea20c4338650fa2f68e0204ccef3afa52ff1c01f589b0663215bc54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page