teslaworksumn / proton-cli

Command line interface to manipulate ProtonLights projects.
MIT License
1 stars 1 forks source link

cli

Command line interface to manipulate ProtonLights projects.

Interface

Permissions include:

Native Dependencies

Setting up the database

Install postgresql
$ sudo apt install postgres

Set password of postgres user (can be anything. You won't be able to see the password while you type it)
$ sudo passwd postgres

Change to postgres user and start the server
$ su - postgres
$ psql

Set psql's postgres password (can/should be different than the other password)
# \password postgres

Create proton user (password used by cli, so keep the same)
# CREATE USER proton WITH PASSWORD '1234qwermnbv'

Create database
# CREATE DATABASE proton_cli

Quit psql
# \q

Load in database structure
$ psql proton_cli < /path/to/proton-cli/db_backups/working_xx_p

Done, so exit su
$ exit