Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#5782][Improvement] Add extended help for schema in Gravitino CLI (#5789)

Suvaid20b796031cae
diff --git a/clients/cli/src/main/resources/schema_help.txt b/clients/cli/src/main/resources/schema_help.txt
new file mode 100644
index 0000000000..2f8fa3e8b2
--- /dev/null
+++ b/clients/cli/src/main/resources/schema_help.txt
@@ -0,0 +1,21 @@
+gcli schema [list|details|create|properties]
+
+Please set the metalake in the Gravitino configuration file or the environment variable before running any of these commands.
+Setting and removing schema properties is not currently supported by the Java API or the Gravitino CLI.
+
+Example commands
+
+Show all schemas in a catalog
+gcli schema list --name catalog_postgres
+
+Show schema details
+gcli schema details --name catalog_postgres.hr
+
+Show schema audit information
+gcli schema details --name catalog_postgres.hr --audit
+
+Create a schema
+gcli schema create --name catalog_postgres.new_db
+
+Display schema properties
+gcli schema properties --name catalog_postgres.hr -i
\ No newline at end of file