#migration #scm #scylla-db #manager #cli #environment #env

app scm-cli

An ergonomic ScyllaDB migration manager

1 unstable release

0.1.0 May 27, 2023

#9 in #scm

MIT license

16KB
277 lines

scm

scm is an ergonomic CLI tool to manage ScyllaDB clusters written in Rust. It's very basic, very fast, and very easy to use.

Installation

cargo install scm-cli

Usage

scm --help
scm env create # create a new environment at dev.scm.toml
scm create "bob migration" # create a new migration
# edit the migration file
echo "CREATE KEYSPACE IF NOT EXISTS my_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};" >> `scm list | tail -n 1`
scm apply # apply the migration to the default dev environment

Dependencies

~20–30MB
~476K SLoC