Varnish Language syntax check

We generate our VCL files locally and then upload it to fastly. However, we would like to check the syntax, the same way as the replace function does.
Does Fastly provide any way to do it?

I had the idea of try to run a Varnish server local and then restart with the config file. However as Fastly has extended the VCL language with their needs I’m getting different issues and not allowed language syntaxes.

Do you guys have anyidea on how this could be done?

Hey @abnersajr would this VCL lint API endpoint do what you need? https://www.fastly.com/documentation/reference/api/vcl-services/vcl/#lint-vcl-default

1 Like