1.0.3 • Published 4 years ago

@ellx/cli v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Ellx CLI

Ellx CLI enables local development in Ellx. Simply run

ellx -u your-ellx-username

to serve current working directory in Ellx. Select "Ellx CLI connect" in the Ellx user menu and input server identity value ("localhost~3002" by default) and that's it!

Installation

npm i -g @ellx/cli or yarn global add @ellx/cli

Options

Option, aliasDefaultDescription
--user, -urequiredEllx username
--port, -p3002Serve on this port
--identity, -ilocalhost~portLocal server instance identity (the value you should input in "Ellx CLI connect")
--root, -rcwdDirectory to serve

Syncing with Github

Please refer to this section of Ellx docs on how to set up Github action to sync a repository and an Ellx project.

Server REST API

PathParametersDescription
GET /identityretrieve the identity of the server (default: localhost-port)
GET /resource/:pathretrieve the resource (a file or a folder index)
POST /resource/:pathaction (move/copy), destinationmove or copy the resource
DELETE /resource/:pathdelete the resource
PUT /resource/:folderPathfiles: [[path, contents]]create or update multiple files or folders