Skip to main content

kwil-cli database deploy

kwil-cli database deploy

Deploy a database schema to the target Kwil node.

Synopsis

Deploy a database schema to the target Kwil node. A path to a file containing the database schema must be provided using the --path flag.

Either a Kuneiform or a JSON file can be provided. The file type is determined by the --type flag. By default, the file type is kf (Kuneiform). Pass --type json to deploy a JSON file.

kwil-cli database deploy [flags]

Examples

# Deploy a database schema to the target Kwil node
kwil-cli database deploy --path ./schema.kf

Options

  -h, --help          help for deploy
-n, --name string set the name of the database, overriding the name in the schema file
-N, --nonce int nonce override (-1 means request from server) (default -1)
-p, --path string path to the database definition file (required)
--sync synchronous broadcast (wait for it to be included in a block)
-t, --type string file type of the database definition file (kf or json) (default "kf")

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.