Vizgql.Console 0.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Vizgql.Console --version 0.0.6
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Vizgql.Console --version 0.0.6
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Vizgql.Console&version=0.0.6
nuke :add-package Vizgql.Console --version 0.0.6

Vizgql.Console

Vizgql.Console is a command-line interface tool designed for parsing GraphQL SDL documents. It provides an overview of fields and their associated authorization directives, along with listing different roles/policies the directives may have.

Features

  • Parse GraphQL SDL documents from a file or URL.
  • Display fields with authorization directives.
  • List roles and policies linked to the authorization directives.
  • Highlight validation errors and unique constraints in the schema.

Installation

dotnet tool install Vizgql.Console --global

Usage

To use Vizgql.Console, execute the following commands with the appropriate options:

vizgql -f [path_to_file]
vizgql -u [URL]

Options

  • -f, --file: Path to the file to be parsed.
  • -u, --url: URL from which text will be downloaded for parsing.
  • -n, --header-name: HTTP header name for authentication (Default: Authorization).
  • -t, --header-token: HTTP header token for authentication.
  • -p, --policies: Comma-separated list of policies to apply to the schema.
  • -r, --roles: Comma-separated list of roles to apply to the schema.
  • --validations: Print out any validation errors (Default: false).
  • --unique-constraints: Prints all the unique constraints as a comma-separated list.
  • --help: Display help screen.
  • --version: Display version information.

Example

PS C:\Users\User> vizgql -u https://hotchocolateschema.com/graphql?sdl --validations --unique-constraints

Output when downloading sdl from a URL. Using the validations and unique-constraints option.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.0.8 96 4/25/2024
0.0.7 281 1/12/2024
0.0.6 177 1/9/2024
0.0.5 223 11/10/2023
0.0.3 214 10/10/2023
0.0.2 153 9/19/2023

feat: added csv output format
feat: added html output format
feat: updated to dotnet 8
feat: upgraded dependencies
feat: updated README