# `triplit schema`

Read our guide on [how to update a schema](/schemas/updating) for more information.

## `triplit schema push`

```
triplit schema push
Apply the local schema to the server

Flags:
--failOnBackwardsIncompatibleChange Fail if there is a backwards incompatible change
--printIssues Print all schema warnings regardless of whether the push succeeds or not
--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 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
```
