The MariaDB SkySQL DBaaS API CLI Client is a Technical Preview. Software in Tech Preview should not be used for production workloads.
This project contains a command line client for the SkySQL API.
Download the latest release of the cli for your OS from the Releases page on github:
https://github.com/mariadb-corporation/skysql-api-cli/releases/latest
We recommend renaming the file to skysqlcli
and placing it into your $PATH
for convenience.
The skysqlcli
may be configured via command line flags, environment variables, or config file (in that order of precedence).
To view the commands that are available, use...
skysqlcli --help
The usage information is also available in markdown form in the repository.
Environment variables read by this cli client are all prefixed with SKYSQL_
, and use the same flags as the command line with any hyphens replaced with underscores and using uppercase. For example, to provide the --api-key
flag via an environment variable, export the value using SKYSQL_API_KEY
.
Completion scripts may be generated for you preferred shell. Instructions are provided for each shell in the respective --help
output (e.g. skysqlcli completion bash --help
). Note that autocompletion on the cli will only work when an api-key is provided.
A devcontainer is provided to assist with setting up a developer environment, and is expected to be used with VSCode. Once in the container, run make deps
to install the dependencies for the project. A launch.json
is provided as an example for using the debugger.