CLI Reference
Complete reference for the synfire command-line tool for automation and CI/CD.
Installation
Install Synfire to use the CLI:
pip install synfireVerify the installation:
synfire --versionAuthentication Commands
synfire login
Authenticate with the Synfire registry.
synfire loginOpens your browser for authentication. Tokens are stored securely in your OS credential store.
synfire logout
Remove stored credentials.
synfire logoutsynfire whoami
Display the currently authenticated user.
synfire whoamiModel Commands
synfire pull
Download a model from the registry.
synfire pull <org>/<repo>[:<version>]Examples:
# Pull latest version
synfire pull nrg-lab/snn-classifier
# Pull specific version
synfire pull nrg-lab/snn-classifier:1.0.0
# Pull to specific directory
synfire pull nrg-lab/snn-classifier -o ./models/synfire push
Publish a model to the registry.
synfire push <org>/<repo> --version <version> --model <path> --card <path>Example:
synfire push nrg-lab/snn-classifier --version 1.0.0 \
--model ./model.nir \
--card ./nir-card.jsonsynfire search
Search for models in the registry.
synfire search <query> [--hardware <target>] [--tag <tag>]Environment Variables
SYNFIRE_TOKEN- API token for authentication (CI/CD)SYNFIRE_API_URL- Override the API endpoint (advanced)