0.71.4 • Published 4 days ago

grafbase v0.71.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 days ago

Grafbase

The Grafbase CLI

Usage

The Grafbase command line interface

USAGE:
    grafbase [OPTIONS] <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    dev          Start the Grafbase local development server
    completions  Output completions for the chosen shell to use, write the output to the appropriate location for your shell
    init         Sets up the current or a new project for Grafbase
    login        Log in to your Grafbase account
    logout       Log out of your Grafbase account
    create       Set up and deploy a new project
    deploy       Deploy your project
    link         Connect a local project to a remote project
    unlink       Disconnect a local project from a remote project
    logs         Tail logs from a standalone graph
    start        Start Grafbase in production mode
    build        Build the Grafbase project in advance to avoid the resolver build step in the start command
    introspect   Introspect a graph and print its schema
    subgraphs    List subgraphs
    schema       Fetch a federated graph or a subgraph
    publish      Publish a subgraph schema
    check        Check a graph for validation, composition and breaking change errors

Subcommand Flag and Argument Documentation

completions

Output completions for the chosen shell. to use, write the output to the appropriate location for your shell

Usage: grafbase completions <COMMAND>

Commands:
  bash        Generate completions for bash
  fish        Generate completions for fish
  zsh         Generate completions for zsh
  elvish      Generate completions for elvish
  powershell  Generate completions for powershell

dev

Start the Grafbase local development server

Usage: grafbase dev [OPTIONS]

Commands:
  -p, --port <PORT>                                                 Use a specific port
  -s, --search                                                      If a given port is unavailable, search for another
      --disable-watch                                               Do not listen for schema changes and reload
      --log-level-functions <FUNCTION_LOG_LEVEL>                    Log level to print from function invocations, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level-graphql-operations <GRAPHQL_OPERATION_LOG_LEVEL>  Log level to print for GraphQL operations, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level-fetch-requests <FETCH_REQUEST_LOG_LEVEL>          Log level to print for fetch requests, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level <LOG_LEVEL>                                       Default log level to print [possible values: none, error, warn, info, debug]

init

Sets up the current or a new project for Grafbase

Usage: grafbase init [OPTIONS] [NAME]

Arguments:
  [NAME]
          The name of the project to initialize

Options:
  -t, --template <TEMPLATE>
          The name or GitHub URL of the template to use for the new project

  -g, --graph <GRAPH>
          What graph type (federated or standalone) to initialize the project with

          Possible values:
          - federated: Creates a federated graph
          - single:    Creates a standalone graph

create

Set up and deploy a new project

Usage: grafbase create [OPTIONS]

Options:
  -n, --name <NAME>       The name to use for the new project
  -a, --account <SLUG>    The slug of the account in which the new project should be created

link

Usage: grafbase link [OPTIONS]

Options:
  -p, --project <PROJECT_ID>  The id of the linked project

logs

Tail logs from a standalone graph

Usage: grafbase logs [OPTIONS] [PROJECT_BRANCH]

Arguments:
  [PROJECT_BRANCH]  The reference to a project: either `{account_slug}/{project_slug}`, `{project_slug}` for the personal account, or a URL to a deployed gateway. Defaults to the linked project if there's one

Options:
  -l, --limit <LIMIT>  How many last entries to retrieve [default: 100]
      --no-follow      Whether to disable polling for new log entries

start

Start Grafbase in production mode

Usage: grafbase start [OPTIONS]

Options:
  -p, --port <PORT>                                                 Use a specific port [default: 4000]
      --log-level-functions <FUNCTION_LOG_LEVEL>                    Log level to print from function invocations, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level-graphql-operations <GRAPHQL_OPERATION_LOG_LEVEL>  Log level to print for GraphQL operations, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level-fetch-requests <FETCH_REQUEST_LOG_LEVEL>          Log level to print for fetch requests, defaults to 'log-level' [possible values: none, error, warn, info, debug]
      --log-level <LOG_LEVEL>                                       Default log level to print [possible values: none, error, warn, info, debug]
      --listen-address <LISTEN_ADDRESS>                             IP address on which the server will listen for incoming connections. Defaults to 127.0.0.1

build

Build the Grafbase project in advance to avoid the resolver build step in the start command

    Usage: grafbase build [OPTIONS]

Options:
      --parallelism <PARALLELISM>  Number of resolver builds running in parallel

introspect

Introspect a graph and print its schema

    Usage: grafbase introspect [OPTIONS] [URL]

Arguments:
  [URL]  GraphQL URL to introspect

Options:
  -H, --header [<HEADER>...]  Add a header to the introspection request
      --dev                   Pass this argument to introspect the local project. --url and --dev cannot be used together

subgraphs

List all subgraphs for a project

Usage: grafbase subgraphs <PROJECT_REF>

Arguments:
  <PROJECT_REF>  Project reference following the format "account/project@branch"

schema

Fetch a federated graph or a subgraph schema

    Usage: grafbase schema [OPTIONS] <PROJECT_REF>

Arguments:
  <PROJECT_REF>  Project reference following the format "account/project@branch"

Options:
      --name <SUBGRAPH_NAME>  The name of the subgraph to fetch. If this is left out, the federated graph is fetched

publish

Publish a subgraph schema

Usage: grafbase publish [OPTIONS] --name <SUBGRAPH_NAME> --url <URL> <--dev|PROJECT_REF> <--dev|--schema <SCHEMA_PATH>>

Arguments:
  [PROJECT_REF]  Project reference following the format "account/project@branch"

Options:
      --dev                          Publish to a running development server
      --name <SUBGRAPH_NAME>         The name of the subgraph
      --schema <SCHEMA_PATH>         The path to the GraphQL schema file to publish. If this argument is not provided, the schema will be read from stdin
      --url <URL>                    The URL to the GraphQL endpoint
      --dev-api-port <DEV_API_PORT>  The listening port of the federated dev [default: 4000]
  -H, --header [<HEADER>...]         Add a header to the introspection request

check

Check a graph for validation, composition and breaking change errors

Usage: grafbase check [OPTIONS] <PROJECT_REF>

Arguments:
  <PROJECT_REF>  Project reference following the format "account/project@branch"

Options:
      --name <SUBGRAPH_NAME>  The name of the subgraph to check. This argument is always required in a federated graph context, and it should not be used in a standalone graph context
      --schema <SCHEMA>       The path to the GraphQL schema to check. If this is not provided, the schema will be read from STDIN
0.71.4

4 days ago

0.71.3

5 days ago

0.71.2

5 days ago

0.71.0

11 days ago

0.70.1

12 days ago

0.70.0

18 days ago

0.69.1

22 days ago

0.69.0

23 days ago

0.68.0

24 days ago

0.67.3

26 days ago

0.67.2

29 days ago

0.67.0

1 month ago

0.67.1

1 month ago

0.66.1

1 month ago

0.66.0

1 month ago

0.66.0-rc

1 month ago

0.65.2

1 month ago

0.65.1

1 month ago

0.64.3

2 months ago

0.64.2

2 months ago

0.65.0

2 months ago

0.64.1

2 months ago

0.64.0

2 months ago

0.63.0

2 months ago

0.62.1

2 months ago

0.62.0

2 months ago

0.63.0-rc.1

2 months ago

0.61.0

2 months ago

0.60.0

2 months ago

0.59.0

3 months ago

0.58.1

3 months ago

0.58.0

3 months ago

0.57.0

3 months ago

0.56.0

3 months ago

0.55.0

3 months ago

0.54.1

3 months ago

0.54.0

3 months ago

0.53.0

4 months ago

0.52.3

4 months ago

0.52.4

4 months ago

0.52.2

4 months ago

0.52.1

5 months ago

0.52.0

5 months ago

0.51.0

5 months ago

0.50.1

5 months ago

0.50.0

5 months ago

0.48.0

5 months ago

0.48.1

5 months ago

0.43.0

6 months ago

0.44.6

6 months ago

0.44.4

6 months ago

0.44.5

6 months ago

0.44.2

6 months ago

0.44.3

6 months ago

0.44.0

6 months ago

0.44.1

6 months ago

0.40.2

7 months ago

0.40.0

7 months ago

0.40.1

7 months ago

0.45.5

6 months ago

0.45.6

6 months ago

0.45.4

6 months ago

0.45.1

6 months ago

0.45.2

6 months ago

0.41.3

6 months ago

0.45.0

6 months ago

0.45.7

5 months ago

0.41.1

7 months ago

0.41.2

7 months ago

0.41.0

7 months ago

0.46.0

5 months ago

0.46.1

5 months ago

0.42.0

6 months ago

0.47.0

5 months ago

0.36.0-rc.2

8 months ago

0.36.0-rc.1

8 months ago

0.36.0

8 months ago

0.36.0-rc.3

8 months ago

0.35.0-rc.1

8 months ago

0.37.1

7 months ago

0.37.0

7 months ago

0.38.0

7 months ago

0.34.0

8 months ago

0.39.0

7 months ago

0.35.1

8 months ago

0.35.0

8 months ago

0.32.4

9 months ago

0.32.3

9 months ago

0.32.2

9 months ago

0.32.1

9 months ago

0.33.0-rc.1

9 months ago

0.33.2

9 months ago

0.33.1

9 months ago

0.33.0

9 months ago

0.25.0-rc.1

11 months ago

0.20.0

12 months ago

0.27.0-rc.1

10 months ago

0.32.0

9 months ago

0.30.0

9 months ago

0.29.0

10 months ago

0.25.3

10 months ago

0.27.0

10 months ago

0.25.2

11 months ago

0.25.1

11 months ago

0.25.0

11 months ago

0.23.0

11 months ago

0.21.1

12 months ago

0.32.0-rc.1

9 months ago

0.21.0

12 months ago

0.31.0

9 months ago

0.28.1

10 months ago

0.28.0

10 months ago

0.26.1

10 months ago

0.26.0

10 months ago

0.24.1

11 months ago

0.24.0

11 months ago

0.22.0

11 months ago

0.20.0-rc.6

12 months ago

0.20.0-rc.5

12 months ago

0.25.0-rc.3

11 months ago

0.22.0-rc.4

12 months ago

0.20.0-rc.4

12 months ago

0.23.0-rc.2

11 months ago

0.22.0-rc.7

11 months ago

0.20.0-rc.3

12 months ago

0.23.0-rc.1

11 months ago

0.22.0-rc.6

12 months ago

0.21.0-rc.1

12 months ago

0.21.0-rc.2

12 months ago

0.22.0-rc.3

12 months ago

0.28.2

10 months ago

0.18.11

1 year ago

0.18.10

1 year ago

0.18.13

1 year ago

0.18.12

1 year ago

0.19.0

1 year ago

0.19.1

1 year ago

0.19.2

1 year ago

0.18.0-rc.7

1 year ago

0.18.0-rc.8

1 year ago

0.18.9

1 year ago

0.18.1

1 year ago

0.18.6

1 year ago

0.18.7

1 year ago

0.18.8

1 year ago

0.18.0

1 year ago

0.18.0-rc.2

1 year ago

0.18.0-rc.5

1 year ago

0.18.0-rc.6

1 year ago

0.18.0-rc.3

1 year ago

0.18.0-rc.4

1 year ago

0.17.0

1 year ago

0.15.0

1 year ago

0.16.0

1 year ago

0.11.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.13.0

1 year ago

0.11.2

2 years ago

0.14.1

1 year ago

0.10.0

2 years ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2-pre.8

2 years ago

0.1.2-pre.7

2 years ago

0.1.2-pre.6

2 years ago

0.1.2-pre.5

2 years ago

0.1.2-pre.3

2 years ago

0.1.2-pre.1

2 years ago

0.1.1

2 years ago

0.1.0-pre.5-beta

2 years ago

0.1.0-pre.4

2 years ago

0.1.0-pre.3

2 years ago

0.1.0

2 years ago