- With lagrange-cli as the current work directory
git clone [email protected]:lagrangedao/lagrange-cli.git
cd lagrange-cli
pip install .
- Clones provided Lagrange repo into current directory
- Creates a new folder for the dataset in the current directory
lag clone https://lagrangedao.org/<type>/<wallet_address>/<name>
- Pulls latest version of a lagrange repo
- Must be done inside a cloned / initialized lagrange repo
cd some-cloned-dataset
lag pull
- Add files to be comitted
- Must be done inside a cloned lagrange repo
lag add file1 file2 file3 ...
- To add all files in current directory and subdirectories
lag add .
- Removes added files
- Must be done inside a cloned lagrange repo
lag remove file1 file2 file3 ...
- Commit added files to be pushed
lag commit -m "commit message"
- Push comitted files to designated dataset
- Must be done inside a cloned lagrange repo
lag push https://lagrangedao.org/<type>/<wallet_address>/<name>
Set API Token
lag config --api-token <TOKEN>