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.
Metadata
Release files for appw 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| appw-1.0.1.tar.gz | 27.3 kB | Without provenance | Details for appw-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| appw-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for appw-1.0.1-py3-none-any.whl |
Total release size: 68.4 kB
Release files / appw-1.0.1.tar.gz
| Download URL | appw-1.0.1.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4a4bdbf0c99229a30b79985c6ebc76d5664e7379162a30a11c62b79452cc71
|
|
BLAKE2b-256 checksum How to use checksums |
b72d7557ebd90aa0eb26f4297234f504a32339611c50cef40482ede0f7cce0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / appw-1.0.1-py3-none-any.whl
| Download URL | appw-1.0.1-py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c9f5fddaeb9473d0fa145e049892a467817672732610bf5d8becbe71ecd8219
|
|
BLAKE2b-256 checksum How to use checksums |
86872ded0ec95264d3f6b17583a66ab2ecf115493532508f61b6a7a1f87fdd42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for appw 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.