SchemaSpy is downloadable here http://schemaspy.sourceforge.net/
You run SchemaSpy from the command line like so:
java -jar schemaSpy.jar -t dbType -db dbName [-s schema] -u user [-p password] -o outputDir -dp pathToDrivers |
$ java -jar schemaSpy_5.0.0.jar -t pgsql -db amp_test_20130114 -u meridian -p meridian -host localhost -o ./amp -dp /home/steveh/.m2/repository/postgresql/postgresql/9.0-801.jdbc4/postgresql-9.0-801.jdbc4.jar -s sdp