> yarn run tinacms Usage: @tinacms/cli command [options] Options: -V, --version output the version number -h, --help display help for command Commands: server:start [options] Start Filesystem Graphql Server schema:compile [options] Compile schema into static files for the server schema:types [options] Generate a GraphQL query for your site's schema, (and optionally Typescript types) init [options] Add Tina Cloud to an existing project audit [options] Audit your schema and the files to check for errors help [command] display help for command
The init command must be run inside of a Next.js project
npx @tinacms/cli init
To run this command, you must have a valid
server:start will compile the schema into static files, generates typescript types for you to use in your project and starts a graphQL server on http://localhost:4001
This command also takes the following arguments
|Specify a port to run the server on. (default 4001)|
|Don't regenerate config on file changes. This option is good to add when building in CI or if you do not want to watch the file system for changes.|
|Don't generate the generated client SDK. Read here for more details about the SDK|
schema:compile is used to compile and transpile the schema files into static file(s) ready to be used with the server. The compilation can be found in the
schema:types will generate a GraphQL query for your site's schema and typescript files. You will find the generated files in the
audit is used for checking for errors in your in your files. It currently does two things.
By default the mutation will not change the content of the files.
Takes the following options,
|When this flag is used, it really submits the Graphql mutations to the file system. This means that it will clean out any fields that are not defined in your |