The Silicon Cloud CLI is an open source tool, you can get the latest version from GitHub.
The Silicon Cloud CLI is a command line tool for managing your files on silicon cloud. It provides an easy way to upload, and manage your silicon cloud files.
All releases please click here.
SiliconCloud-CLI is available on Linux, macOS and Windows platforms. Binaries for Linux, Windows and Mac are available as tarballs in the release page.
- Linux
VERSION=0.1.0 tar -xzvf siliconcloud-cli-linux-$VERSION-amd64.tar.gz install siliconcloud /usr/local/bin
-
Via a GO install
# NOTE: The dev version will be in effect! go install github.com/siliconflow/siliconcloud-cli@latest
SiliconCloud-CLI is currently using GO v1.22.X or above. In order to build it from source you must:
-
Clone the repo
-
Build and run the executable
make build && ./execs/siliconcloud
The Silicon Cloud CLI uses api-keys to authenticate client. To login your machine, run the following CLI:
# if you have an environment variable SF_API_KEY set with your api key
siliconcloud login
# or using an option --key,-k
siliconcloud login -k $SF_API_KEY
To logout your machine, run the following CLI:
siliconcloud logout
To upload files to the silicon cloud, run the following CLI:
siliconcloud upload -n mymodel -t bizyair/checkpoint -p /local/path/directory-or-file
You can specify overwrite flag to overwrite the model if it already exists in the silicon cloud.
siliconcloud upload -n mymodel -t bizyair/checkpoint -p /local/path/directory-or-file --overwrite
You can specify model name, model type and path to upload by using the -n
, -t
and -p
flags respectively.
To view all your models in the silicon cloud, run the following CLI:
siliconcloud model ls -t bizyair/checkpoint
You must specify model type by using the -t
flag.
You can specify public flag --public
to view all public models in the silicon cloud. By default it will show only your private models.
### View Model Files
To view all files in a model, run the following CLI:
```bash
siliconcloud model ls-files -n mymodel -t bizyair/checkpoint
You can specify public flag --public
to view all public model files in the silicon cloud. By default, it will show only your private model files.
If you want to see the files in a model in tree view, run the following CLI:
siliconcloud model ls-files -n mymodel -t bizyair/checkpoint --tree
You must specify model name and model type by using the -n
and -t
flags respectively.
To remove model from the silicon cloud, run the following CLI:
siliconcloud model rm -n mymodel -t checkpoint
You must specify model name and model type by using the -n
and -t
flags respectively.