schemahero version
Print the installed SchemaHero version.
Usage
schemahero versionOutput
SchemaHero 0.24.0Checking for Updates
Compare with the latest release:
# Your version
schemahero version
# Latest release
curl -s https://api.github.com/repos/schemahero/schemahero/releases/latest | grep tag_nameCI Usage
Pin a specific version in CI:
- name: Install SchemaHero
run: |
SCHEMAHERO_VERSION="0.24.0"
curl -sSL "https://github.com/schemahero/schemahero/releases/download/v${SCHEMAHERO_VERSION}/schemahero_linux_amd64.tar.gz" | tar xz
sudo mv schemahero /usr/local/bin/
schemahero version # Verify