Skip to content

scopedb/scopeql

Repository files navigation

ScopeQL: ScopeDB Command Line Interface

Apache 2.0 licensed Build Status

Overview

scopeql provides a command line interface and interactive shell for ScopeDB.

Installation

You can install scopeql with Cargo:

cargo install scopeql

Or you can download pre-built binaries from the releases page.

Or you can use the Docker image:

docker run -it --rm scopedb/scopeql

Configuration

scopeql reads its default connection settings from config.toml. Each connection can optionally define an API key, which is sent as an Authorization: Bearer <key> header on requests.

default_connection = "default"

[connections.default]
endpoint = "https://<cell>.<provider>.scopedb.cloud"
api_key = "your-api-key"
headers = ["X-Tenant: acme"]

You can also override connection settings with environment variables such as SCOPEQL_CONFIG_CONNECTIONS_<CONNECTION_NAME>_ENDPOINT, SCOPEQL_CONFIG_CONNECTIONS_<CONNECTION_NAME>_API_KEY, and SCOPEQL_CONFIG_CONNECTIONS_<CONNECTION_NAME>_HEADERS. The SCOPEQL_CONFIG_CONNECTIONS_<CONNECTION_NAME>_HEADERS value should use newline-separated KEY: VALUE entries, matching the headers = ["KEY: VALUE"] TOML format.

License

This project is licensed under Apache License, Version 2.0.

About

ScopeDB Command Line Interface

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors