Skip to content

sagecontinuum/sage-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sage-cli

Command line client for SAGE

CI

install

pip install  git+https://github.com/sagecontinuum/sage-cli.git

Usage examples

export SAGE_STORE_URL="http://localhost:8080"
export SAGE_USER_TOKEN="user:testuser" 

sage-cli.py storage bucket create --datatype model

Optionally wit docker (--net only for local test instance):

docker run -ti -e SAGE_STORE_URL="http://sage-api:8080" -e SAGE_USER_TOKEN="user:testuser" --net sage-storage-api_default sagecontinuum/sage-cli 

sage-cli.py storage bucket create --datatype model

testing

Create test environment:

git clone https://github.com/sagecontinuum/sage-storage-api.git
cd sage-storage-api
docker-compose up -d
cd ..

Wait a few seconds, run test:

export SAGE_USER_TOKEN=user:testuser
export SAGE_STORE_URL=http://localhost:8080
./tests.sh

Clean-up:

cd sage-storage-api
docker-compose down
cd ..
rm -rf ./sage-storage-api

About

SAGE Command Line Interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •