Install
Generate access token
1. pip install hydra-cli
python package (pypi)hydra for setup:
the hydra command
the hydra command
the
hydra command does the following:- run
hydra setupif needed - run
hydra connect --start- start the server
- open a psql shell
- stop the server and cleanup when you exit the shell
exit, \\q or ^D.2. Access token
Thehydra command will ask for an access token and provides the URL (https://platform.hydra.so/token) to generate your token. Copy the token and paste it into the CLI to unlock a 14-day free trial of Hydra’s serverless analytics.
Commands
You can runhydra help for a list of commands, and hydra COMMAND --help to get help about any command.
Configuration
Configuration is persistent. Once you specify your settings, it will remember what port you used. If would like to change the settings, you can runhydra setup again. You can also change the port number at any time with hydra start.
Configuration files
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
-C/--config-dir, but you will need to pass this in with every execution.
Uninstalling
hydra stopremoves the running container, if one remains.hydra teardownwill confirm removal of the configuration files and the Docker volume, respectively.pip uninstall hydra-cliwill remove the CLI itself.
