Validate command
The validate command validates one or many SurrealQL (.surql) language files.
BEFORE YOU START
Command options
| Arguments | Description |
|---|---|
[PATTERNS]
| Glob pattern for the files to validate [default: "*/.surql"] |
Example usage
To perform validation on a SurrealQL local file, in a terminal run the surreal validate command with the required argument.
Using the command on its own will validate all the .surql files in the current directory.
You can perform validation on a single file, regardless of extension.
You can also perform validation on multiple files using a single glob pattern:
Finally, you can also perform validation on multiple files using multiple paths/patterns:
If any files are invalid, the command will abort at this point and return an error.
Command help
To see the help information and usage instructions, in a terminal run the surreal validate --help command without any further arguments. This command gives general information on the arguments, inputs, and additional options for the validate command.
The output of the above command: