An open API service indexing awesome lists of open source software.

https://github.com/appwrite/sdk-for-node-cli


https://github.com/appwrite/sdk-for-node-cli

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

        

# Appwrite NAME SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-node-cli.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-0.12.1-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**WORK IN PROGRESS - NOT READY FOR USAGE**

Repo description goes here

![Appwrite](https://appwrite.io/v1/images/console.png)

## Installation

The Appwrite CLI is a Node based command line tool to help you interact with the Appwrite API. The CLI is distributed both as an [`npm package`](https://www.npmjs.com/package/appwrite-cli) as well as [pre built binaries](https://github.com/appwrite/sdk-for-node-cli/releases/latest) for specific operating systems and architectures.

### Install using NPM
---

If you have `npm` installed, it's as easy as running

```sh
$ npm install -g appwrite-cli
```

Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
0.0.19
```

### Install using prebuilt binaries
---

If you do not have `npm` installed, you can always install the prebuilt binaries for your architecture and OS using our convenient installation scripts.

### Linux / MacOS
```bash
$ wget -q https://appwrite.io/cli/install.sh -O - | /bin/bash
```

### Windows
```powershell
$ iwr -useb https://appwrite.io/cli/install.ps1 | iex
```

Once the installation completes, you can verify your install using
```
$ appwrite -v
0.0.19
```

## Contribution

This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

To build and test the CLI for development, follow these steps

1. Clone the SDK Generator repository and cd into the directory
```sh
$ git clone https://github.com/appwrite/sdk-generator
$ cd sdk-generator
```

2. Ensure Docker is running locally and then install the composer dependencies using
```sh
$ docker run --rm --interactive --tty --volume "$(pwd)":/app composer install --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist

# Generate the SDKs
$ docker run --rm -v $(pwd):/app -w /app php:7.4-cli php example.php
```

3. Head over to the generated SDK and install the dependencies.
```sh
$ cd examples/node-cli
$ npm install
```

4. Install the CLI using
```sh
$ npm install -g .
```

5. You can now use the CLI
```sh
$ appwrite -v
```
## License

Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.