- You must have Docker and Python 3 installed.
pip install hydra-cli
(or as desired for your preferred Python environment)
Just run hydra
and we'll take care of the rest!
$ hydra
This will:
- run
hydra setup
if needed - run
hydra connect --start
- start the server
- open a psql shell
- stop the server and cleanup when you exit the shell
To exit the psql shell, use exit
, \q
or ^D
.
Now you're ready to follow our quickstart guide to learn more about serverless analytics with Hydra.
Any data stored in duckdb
tables are stored in Hydra's cloud service. Data saved in Postgres (heap) tables will be
stored in a local Docker volume and is not persisted to the cloud.
You can run hydra help
for a list of commands, and hydra COMMAND --help
to get help about any command.
$ hydra setup
- asks for token; optional port, username, password
$ hydra start
- starts service
$ hydra connect
- connects to service via psql
$ hydra connect --start
- automatically starts and stops the service around a psql session
$ hydra stop
- stops service
$ hydra config
- prints stored config info
$ hydra teardown
- prompts to delete configuration files
- prompts to delete docker volume
$ hydra help
$ hydra --help
- prints reference top-level information for the CLI
$ hydra COMMAND --help
- prints helpful information about the command
Configuration is persistent. Once you specify your settings, it will remember what port you used. If would like to change
the settings, you can run hydra setup
again. You can also change the port number at any time with hydra start
.
By default, configuration is saved to hydra-cli
in your platform's user data directory:
- Mac OS X:
~/Library/Application Support/hydra-cli
- Linux:
~/.local/share/hydra-cli
You can specify a different configuration directory with -C
/--config-dir
, but you will need to pass this in with
every execution.
hydra stop
removes the running container, if one remains.hydra teardown
will confirm removal of the configuration files and the Docker volume, respectively.pip uninstall hydra-cli
will remove the CLI itself.