Skip to main content

![Status](https://img.shields.io/badge/status-alpha-red.svg) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE.md) [![CircleCI](https://circleci.com/gh/electric-db/electric-cli/tree/main.svg?style=shield&circle-token=67d43361b7c2aa039a0eef39d3617a9f481e54c5)](https://circleci.com/gh/electric-db/electric-cli/tree/main)

# Electric DB CLI

The Electric DB CLI is the command line interface utility for the [Electric DB](https://electricdb.net) geo-distributed database hosting service. It’s developed in Python and the code is published under the [MIT License](https://github.com/electric-db/electric-cli/blob/master/LICENSE) at [github.com/electric-db/electric-cli](https://github.com/electric-db/electric-cli).

## Develop

You can install the CLI for local development by installing the dependencies into a Python3 environment and developing the egg:

`sh pip install -r requirements.txt python setup.py develop `

This will install a electric binary in your local Python environment’s bin folder. You can check that this is on your path with e.g.:

`sh which electric `

## Build

If you want to build standalone binaries, you first need to install the extra development requirements:

`sh pip install -r dev-requirements.txt `

Then you can build a [Pex](https://pex.readthedocs.io) executable using:

`sh python setup.py bdist_pex --bdist-all `

This will create a ./dist/electric binary which you can copy and run anywhere on your system.

Alternatively, you can build a standalone binary with an embedded Python interpretor using [PyOxidizer](https://pyoxidizer.readthedocs.io):

`sh pyoxidizer run `

This will create a binary at ./build/:target/debug/install/electric that you can run on any machine with the same architecture and OS as your build machine.

## Usage

Run the electric command without arguments or with the –help flag for usage information:

`sh electric --help `

You can drill down into usage information for the resources / command groups and for individual commands, e.g.:

`sh electric auth --help electric auth login --help `

Further [documentation is available on the Electric DB website](https://electricdb.net/docs).

## Test

Running the tests requires nose and coverage, included in the dev-requirements.txt.

Then, run e.g.:

`sh nosetests --with-coverage --cover-package electric `

Metadata

Release files for electric-db-cli 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for electric-db-cli 0.0.3
File Size Uploaded
electric-db-cli-0.0.3.tar.gz 4.8 kB Details

Release files / electric-db-cli-0.0.3.tar.gz

Download URL electric-db-cli-0.0.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bbcd6e56ce2d810173db31e8629a8952a8d0afbb9437cea7da44cfd63810899f
BLAKE2b-256 checksum
How to use checksums
31b5cd3a2ebd13dc43d341fb0f8ba2b9bc8b97e53c8e0b3249a3155e3e61698f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page