triplit schema
Read our guide on how to update a schema for more information.
triplit schema push
triplit schema push
Apply the local schema to the server
Flags:
--enforceBackwardsCompatibility, -e Enforce backwards compatibility, fail if there are any backwards incompatible changes
Default: false
--printIssues, -p Print issues even if successful
Default: false
--token, -t Service Token
--remote, -r Remote URL to connect to
--schemaPath File path to the local schema file
--requireSchema Throw an error if no local schema file is found
Default: false
triplit schema print
triplit schema print
View the schema of the current project
Flags:
--location, -l Location of the schema file
Options: local, remote (default: remote)
--format, -f Format of the output
Options: json, typescript, json-schema (default: typescript)
--token, -t Service Token
--remote, -r Remote URL to connect to
--schemaPath, -P File path to the local schema file
--noSchema, -N Do not load a schema file
triplit schema diff
triplit schema diff
Show the diff between local and remote schema
Flags:
--token, -t Service Token
--remote, -r Remote URL to connect to
--schemaPath, -P File path to the local schema file
--noSchema, -N Do not load a schema file