Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install pscale CLI #3

Open
lakruzz opened this issue Mar 22, 2023 · 0 comments
Open

Install pscale CLI #3

lakruzz opened this issue Mar 22, 2023 · 0 comments
Labels
Template Template issue

Comments

@lakruzz
Copy link
Member

lakruzz commented Mar 22, 2023

PlanetScale is a MySql compliant environment. The CLI is called pscale and has a dependency to the mysql CLI.

Much the same way GitHubs CLI gh has a dependency to the git cli.

Actually you'll find that pscale is built much on the same concept as gh - nice!

Now we need to setup the environment for use:

We're here on PlanetScale environment set up in the documentation.


Install using package manager

MacOs

Assuming MySql client is already installed (more details):

brew install planetscale/tap/pscale

Windows

Assuming MySql client is already installed (more details):

scoop bucket add pscale https://github.com/planetscale/scoop-bucket.git
scoop install pscale mysql

Codespace (Ubuntu)

Assuming your are on a default Codespace on GitHub (Ubuntu) - without MySql Client installed more details

sudo apt-get update && sudo apt-get install -y mysql-client
curl -LO https://github.com/planetscale/cli/releases/download/v0.131.0/pscale_0.131.0_linux_amd64.deb
sudo dpkg -i pscale_0.131.0_linux_amd64.deb 
rm pscale_0.131.0_linux_amd64.deb

To test if it works simply run

pscale
@lakruzz lakruzz added the Template Template issue label Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Template Template issue
Projects
None yet
Development

No branches or pull requests

1 participant