Command-Line Example
This example demonstrates how to use SchemaCrawler directly from the shell command line to explore and document database schemas.
How to Run
Before running this example, complete the setup in Getting Started.
- Get a list of all available command-line options:
schemacrawler --help
- List all database objects:
schemacrawler \
--server postgresql \
--host postgresql \
--database schemacrawler \
--user schemacrawler \
--password schemacrawler \
--info-level minimum \
--command list
Replace with the connection options for your chosen database. See Getting Started.
How to Experiment
- Explore the grep example to search schema objects by regular expression.
- Explore the lint example to detect database design issues.
- Explore the offline example to save and reuse a database snapshot.
- Try different
--info-levelvalues:minimum,standard,detailed,maximum. - Edit
config/schemacrawler.config.propertiesto customize output options.