Skip to main content

kwil-cli database read-schema

kwil-cli database read-schema

Read schema is used to view the details of a deployed database schema.

Synopsis

Read schema is used to view the details of a deployed database schema.

You can either specify the database to execute this against with the `--name` and `--owner`
flags, or you can specify the database by passing the database id with the `--dbid` flag. If a `--name`
flag is passed and no `--owner` flag is passed, the owner will be inferred from your configured wallet.
kwil-cli database read-schema [flags]

Examples

# Reading the schema of the "mydb" database, owned by 0x9228624C3185FCBcf24c1c9dB76D8Bef5f5DAd64
kwil-cli database read-schema --name mydb --owner 0x9228624C3185FCBcf24c1c9dB76D8Bef5f5DAd64

Options

  -i, --dbid string    the target database id
-h, --help help for read-schema
-n, --name string the target database name
-o, --owner string the target database owner

Options inherited from parent commands

  -Y, --assume-yes           Assume yes for all prompts
--chain-id string the expected/intended Kwil Chain ID
--config string the path to the Kwil CLI persistent global settings file (default "/Users/brennanlamey/.kwil-cli/config.json")
--output string the format for command output - either 'text' or 'json' (default "text")
--private-key string the private key of the wallet that will be used for signing
--provider string the Kwil provider RPC endpoint (default "http://127.0.0.1:8484")
-S, --silence Silence logs

SEE ALSO

  • kwil-cli database - The database command is a parent command containing subcommands for interacting with databases.