Code Monkey home page Code Monkey logo

graphcool-cli's Introduction

graphcool-cli npm version CircleCI

๐Ÿ“Ÿ Manage your GraphQL backend from your terminal

Features

  • Instantly setup a production-ready GraphQL backend
  • Edit your schema locally and version control changes via GraphQL SDL
  • Supports multi-stage environment workflows

Quickstart

Watch this video tutorial ๐ŸŽฅ to get started with the CLI and follow the frontend quickstart guide.

# Create a new GraphQL backend
graphcool init

# Edit `project.graphcool` to change schema and push updates using...
graphcool push

Check out the CLI in action:

Install

Installs the global graphcool command via NPM (or Yarn).

npm install -g graphcool

Usage

  Serverless GraphQL backend for frontend developers (https://www.graph.cool)
  
  Usage: graphcool [command]

  Commands:
    init          Create a new project
    push          Push project file changes
    pull          Download the latest project file
    export        Export project data
    endpoints     Print GraphQL endpoints
    console       Open Graphcool Console
    playground    Open GraphQL Playground
    projects      List projects
    auth          Sign up or login
    version       Print version
    
  Run 'graphcool COMMAND --help' for more information on a command.
  
  Examples:
  
  - Initialize a new Graphcool project
    $ graphcool init
  
  - Local setup of an existing project
    $ graphcool pull -p <project-id | alias>
    
  - Update live project with local changes
    $ graphcool push
    

Resources

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!

graphcool-cli's People

Contributors

cjoudrey avatar julianbauer avatar nikolasburk avatar schickling avatar

Stargazers

 avatar

Watchers

 avatar  avatar

graphcool-cli's Issues

Escaped characters breaks import

Switch from inline to variables. Field values with \" are not correctly escaped to \\\" when putting them inline. Using variables should fix this.

Minimum requirements for a PR

  • Minimal error handling
  • Change count to use return value from the API call (so if not all records are imported, that is at least visible on the result count)
  • Describe import format (create basic documentation)
  • Do some minimal test on nested input objects (might work out of the box, would be a waste to ignore if so)
  • Set hardcoded maximum batch size (to prevent high server load)
  • Anything else?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.