Turso Database
소개
가입
- 가입 이후 작업은 CLI 로 진행하기로 한다. (대시보드 제공하긴함)
CLI 설치 로컬용 (이건 패스)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.sh | sh
CLI 설치 클라우드용
curl -sSfL https://get.tur.so/install.sh | bash
PATH 등록
echo 'export PATH="$HOME/.turso:$PATH"' >> ~/.bashrc
. ~/.bashrc
turso --version
로그인 및 db 생성
turso auth login --headless
# 주어지는 url 에 접속해서 해당 토큰 (토큰 등록 명령) 을 복사해서 쉘에 입력한다.
turso config set token "토큰"
turso db create blog
turso db show blog
database shell 사용
turso db shell blog
# 빠져나오려면 .quit