logo logo

Hasura cli github

Your Choice. Your Community. Your Platform.

  • shape
  • shape
  • shape
hero image


  • 0. 4. 796371283. The npx call seems to find it, but isn't reflecting the values in the config. Start using hasura-cli in your project by running `npm i hasura-cli`. name: CI on: [push] jobs : hasura_cli : name: Run Hasura cli runs-on: ubuntu-latest steps : hasura-cli solves them. Trie The Hasura CLI utilizes a typical command / flag syntax enabling you to quickly manage your Hasura instance. x/healthz, api. May 14, 2021 · It's very hard to debug the hasura-image on heroku, because I can't get on the vm via ssh (hasura/issue). The yarn call seems to fail to find the config. May 27, 2021 · Been having a weird issue with hasura-cli v2. a. env Traditionally we keep local development-specific environment variables in . As far as I can tell, this was working previously with the 1. 2%. Synopsis. 0 CLI Version (for CLI related issue): v2. Mar 6, 2020 · And we'll wait until this is merged to attempt hasura#3705 for Control. env as substitutes in config. Refer to react-apollo-todo. route to Hasura. Download manifest file (manifest. It's recommended to use the Nhost CLI and the Nhost GitHub Integration to develop locally and automatically deploy changes to Feb 22, 2021 · Hi, Already have a project on hasura cloud, downloaded the hasura cli v. Download the cli-hasura-windows-amd64. Environment. You can follow the discussion in the issue in the Hasura GE repository. GraphQL Bench is a versatile tool for benchmarking and load-testing GraphQL Services. 9 against a server v2. 32. x/console or api. Hasura CLI in a docker instance. Contribute to hasura/graphql-engine-docs development by creating an account on GitHub. Anything else / routes elsewhere. Will default to config. There are 2 other projects in the npm registry using hasura-cli. Documentation for Hasura GraphQL engine. A real-world example following this structure would be: hasura migrate apply --admin-secret "<admin-secret>". /cli-hasura-darwin-arm64 --envfile . OSS/Cloud/EE. sh - joshuarobs/making-hasura-work-with-github-actions Nov 18, 2020 · I'm on windows 10 cli version=v1. local (added to . Dockerfile 34. 3. Contribute to dvasdekis/hasura-cli-docker development by creating an account on GitHub. cli-migrations-v2 including metadata and migrationfiles Toggle navigation. yaml). It wraps the binary in isolated manner as a virtue of npm package. # or. A typical command structure will follow this pattern: hasura <command> <subcommand> --<optional_flag> "<optional_flag_value>". Execute hasura plugins install track --manifest-file <PATH-TO-DOWNLOADED-MANIFEST-FILE> Example HASURA_ENDPOINT: required: false description: Optional overriding URL for the Hasura endpoint to call migrate apply and/or regression tests on. x/v1/, etc. cli-migrations-v2 Here is what I am trying to deploy: repo https://github. DB and all of that is connected. dockerfile I noticed that it builds on golang:1. A GitHub Action to run Hasura cli. Basically, do steps 1 and 2 mentioned in this blog post: https://hasura. I've tried with --move-state-only and it succeeds. hasura-bot. yaml and replace the project name with the one you get in the step above. May 2, 2020 · Run sudo npm install -g --unsafe-perm=true --allow-root hasura-cli to install the Hasura CLI. hasura cli migration with docker. The path from the root of your repository to the directory where the migrations folder can be found. npm install --save-dev hasura-cli. I have a new HGE instance running. What is the current behaviour? Let's take a look at the following scenario. I am trying to migrate from google cloudrun: Hasura v2. hasura-cli-track. yaml file (where I have overridden the endpoint). env. By default, it will match the version from your endpoint and fall back on stable if the version endpoint request fails. See Hasura cli documentation. Export/Import metadata using metadata. Further reading: Dec 11, 2022 · Saved searches Use saved searches to filter your results more quickly Install Hasura CLI; Login to Hasura CLI; Create Project; Copy Project Name. 1. When I run hasura console in my command prompt (Win 10) I get an erro The Hasura CLI Docker image is a specialized container image designed to work with the Hasura GraphQL Engine. sh script Sep 7, 2023 · It would be nice if the cli migration image could report that the graphql engine could was not able to connect to the database. The versions were in fact mismatching. 1, and attempting to add a data source, the cli crashes with this error: Hasura console is not able to reach your Hasura GraphQL engine instance. Community help wanted! Community help wanted! Projects To download the cli-hasura-windows-amd64. Mar 17, 2020 · Making the cli work without config. yaml so that the change is backwards compatible. The hasura metadata command suite is a powerful set of tools provided by the Hasura CLI for managing the Hasura GraphQL Engine's Metadata. GitHub integration is intended to improve the CI/CD experience on Hasura Cloud. Download the binary cli-hasura-windows-amd64. However, hasura migrate keeps failing after that. yarn add --dev hasura-cli. // Spin stops any existing spinner and starts a new one with the given message. HASURA_ADMIN_SECRET: required: false description: Optional overriding admin secret for the Hasura Jan 5, 2021 · While using hasura seeds create initial. This action allows automatically running migrations and regression tests against a Hasura instance on changes. It helps track and manage your Hasura Metadata and Migrations and commit them to version control and allows you to quickly move between environments like development and production. exe binary for Windows, follow these steps: Navigate to the Hasura GraphQL Engine releases page on GitHub. Contribute to hasura/v3-cli-plugin-upgrade-from-v2 development by creating an account on GitHub. yaml. Aug 30, 2020 · To elaborate on @John0x' comment—we keep prod/dev/test migrations separate from the infrastructure that sets up Hasura on AWS Fargate. ( --unsafe-perm=true and --allow-root used to prevent this error) Run sudo npm install -g nhost to install the Nhost CLI. Concurrent. By default, it will match the version from your endpoint and fall back on stable A GitHub Action to run Hasura cli. Cloning the repo will regenerate all of that for you. Flag can also be set using an env var HASURA_GRAPHQL_CLI_CONFIG_FILE. run. Aug 29, 2018 · The default value for this flag will be config. HTTP tests can be configured to run with your choice of: Autocannon. " I have tried setting the EDITOR environment manually as Hasura CI/CD Github Action. yaml: hasura console --endpoint Jul 9, 2019 · You signed in with another tab or window. Currently only works with a single database tagged as default in your metadata. /. This environment will automatically track database migrations and Hasura metadata. SSH to the server: ssh root@demo. cli-migrations-v2 CLI Version (for CLI related issue): Environment AWS ECS What is the current behaviour? My ECS service is starting tasks which are failing. I also propose to move the name of directory in which migrations are stored into config. Jul 13, 2020 · hasura migrate reset This command should clear the history of the migrations on the server and clear the local migrations. Read env vars as is from . This worked for me as well! Note that if an admin secret is configured, the --admin-secret flag can be used when running hasura metadata export. It allows developers to export, apply, and modify the metadata configuration of their Hasura instances, ensuring that the GraphQL API and related configurations are version-controlled and can be easily migrated across different environments. Jul 6, 2021 · @purush7, it would be api. Feel free to delete the project folders/files that were created. 0 Environment Server: Docker container launched on Amazon EC2 Instance(docker image: hasura/graphql-engine:v2. 0) Docker containers expose port 8080. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. You can pass various flags to customize the behavior of the command and pre-configure environment variables. Check out our Starter Kit to see a few example workflows. 0, last published: 15 days ago. This is a proof of concept following this RFC. I'm getting the following error: time="2021-01-05T19:42:52+05:00" level=fatal msg="cannot find default editor from env: open C:\\Users\\user\\AppData\\Local\\Temp\\*. The type of the clearedItemCount field in the /pro/cache/clear endpoint response has been changed from a string to a number. Both HTTP (Queries/Mutations) and Websocket (Subscriptions) tests are supported. yaml to see how it's done. Saved searches Use saved searches to filter your results more quickly Trying to make Hasura work with GitHub Actions via docker-run. Use the values defined in . May 18, 2021 · @drojkind I plan to resolve this in near future. Hasura CLI Docker Image. Please ensure that your instance i Aug 28, 2020 · Hasura CI/CD Github Action. 0 we noticed that the cli tool was calling an additional / with /v1 so it was putting in //v1 which matched no pattern. Feb 9, 2020 · I'm using a hasura server hosted on heroku, and have developed a schema using the console accessed via the heroku page. I init the project and confirmed connection to my cloud endpoint (can retrieve the metadata from the sever fine). . hasura-cli is an npm package that automatically installs Hasura CLI binary by detecting OS. The result from the curl command you You signed in with another tab or window. Oct 15, 2021 · When running the cli v2. Describe alternatives you've considered. sql: The filename, directory name, or volume label syntax is incorrect. It automatically downloads the CLI and exposes the command hasura. To associate your repository with the hasura-cli topic While the Git username & password/PAT can be specified on the command line. Latest version: 2. 1 DEBU global config file exists, verifying contents DEBU global config is pre-set to &cli. Note: For simplicity, in the examples below I'm using hasura CLI to apply metadata which uses replace_metadata API under the hood. // one. Nhost CLI. Example Workflow. As I mentioned above putting //v1 resolved the cli issue. It provides a command-line interface (CLI) for managing Hasura projects, including applying migrations, managing metadata, and configuring the GraphQL Engine. 3 version of hasura CLI. The version of the hasura cli you want to use. HASURA_ENGINE_VERSION - Optional. 0-beta. env metadata export --project hasura --log-level DEBUG INFO hasura cli version=v2. Pull the changes: cd demo-apps. We recommend the latter as it's an easier way to deploy your project and allows you the benefits of version control. Rename the downloaded file to hasura. There are two ways to do this. Rename the downloaded file to hasura for convenience. Contribute to sharescape/hasura-cli-docker development by creating an account on GitHub. I have been using yarn v1 mainly, so need some (uncertain amount of) time to research and experiment. Now I'm moving my staging environment to Hasura Cloud. Upgrading to 2. /cli-hasura-darwin-arm64 version && . HASURA_WORKDIR - Optional. git pull. We will try to update it and see if the issue gets resolved We will try to update it and see if the issue gets resolved More than 83 million people use GitHub to discover, fork, and contribute to over 200 million projects. It is a best practice to set these variables using environment variables (HASURA_GIT_USERNAME & HASURA_GIT_PWD_OR_PAT respectively) or the config. Downloaded CLI would be isolated, making it only dedicated to the "project" that installed it. Shell 65. 3 weeks ago. The admin secret (if any) for the Hasura GraphQL engine. However, after downgrading the cli the issue was still there. A package that automatically installs and wraps Hasura CLI binary in isolated manner. Hasura CLI plugin which helps track tables in Hasura [NOT OFFICIAL] Usage. The only problem is when running hasura migrate because it tries to apply all the migrations that are already in place. Nhost is an open-source Firebase alternative with GraphQL. yaml . 2. 0) ie upgrade to a version which supports metadata v3. The Hasura CLI is a powerful tool that helps you manage your Hasura project and is recommended for the majority of development workflows. It can be run as a CLI application (local or Docker), and also provides a programmatic API. MachineLabsLtd / github-action-hasura-cli Public. Feb 19, 2021 · Saved searches Use saved searches to filter your results more quickly Aug 12, 2019 · I developed it. You switched accounts on another tab or window. 0 --console-port 8080--api-port 8081 # Start console without opening the browser automatically hasura console --no-browser # Use with admin secret: hasura console --admin-secret "<admin-secret>" # Connect to an instance specified by the flag, overrides the one mentioned in config. - hasura/graphql-engine. Run sudo nhost init to initialize Nhost project. Languages. Of course, you can install it as global package as well. yaml) for the latest release from Github Releases page. app. What I forgot to mention is that before the weekend I was able to access the server that is now not connecting to hasura console, and since then nothing changed. 1. So it would be a helpful feature, if the hasura-image could be extended so devs are able to ssh to their vm on heroku for debugging-purpose. com HASURA_WORKDIR - Optional. Sep 5, 2023 · $ . 4 https://hasura-clone-yyljssc5aq-ey. May 3, 2020 · Hello Hasura team, This is what happen on a fresh dockerized Heroku application with image hasura/graphql-engine:latest. Dec 20, 2022 · Hasura CLI currently only looks for environment varables like HASURA_GRAPHQL_ADMIN_SECRET from . Run CLI commands against a Hasura instance 0 stars 0 forks Activity. The functionality lives inside of entrypoint. 8%. gitignore) It would be nice if Hasura CLI If you need environment variables for the application, create a new-application. . name: CI on: [push] jobs : hasura_cli : name: Run Hasura cli runs-on: ubuntu-latest steps : Contribute to hasura/cli-plugins-index development by creating an account on GitHub. env file. Mar 18, 2021 · @go4cas Okay, that was my guess. Contribute to gfauchart/create-hasura-app development by creating an account on GitHub. 2. A tag already exists with the provided branch name. Contribute to sgm03020/hasura-migration development by creating an account on GitHub. exe file from the assets. Run sudo nhost login to login. hasura. bring docker-compose up and down and will and state of metadata persists. Notifications Fork 0; Star 0. Force CLI to use an older config version via the --version <VERSION> flag`)) // through viper. Git Clone Repo and cd into it; Go to Hasura. Upgrade your Hasura server to a newer version (>= v2. exe available under Assets of the latest release from the GitHub release page : https://github. Jan 7, 2022 · Version Information Server Version: v2. Here's how to effectively use the Hasura CLI Docker image: Introduction. We also have separate remote schema URLs for prod/dev/test. Reload to refresh your session. make sure the local metadata dir is mapped to /hasura-metadata on the hasura cli image. Using the CLI-migrations image is both heavier and more complicated than necessary due to the bundling of Hasura GraphQL engine and the renaming of the binary from the default hasura to hasura cli. io hasura console --address 0. sh script But it does not work when running from a npm command Running it directly: Running it though a . Extended * docs: avoid redirect, update title tag suffix (hasura#4030) * console: hide starter kit button if a framework has no starter kit (hasura#4023) * console: update actions intro image (hasura#4042) * docs: add note on pg versions for actions (hasura#4034 Sep 23, 2020 · c/cli Related to CLI good first issue Good for newcomers hacktoberfest help wanted Good candidate for contribution. It creates a directory with the necessary files and directories to configure an instance of the Hasura GraphQL Engine. 10. You can add the path to the environment variable PATH for making hasura accessible globally. 11 where it fails to restore metadata inside of Github CI with following error: > Run npx hasura-cli metadata apply --admin-secret "localadminsecret" time="2021-05-27T09:59:48Z" leve Dec 22, 2021 · Hello, I have a problem with migrations using the latest version of hasura and hasura cli using config v3. Sorry if this sounds too vague. x. Is the hasura CLI running docker commands in the background? Poking around cli-build. I've only had this issue after upgrading to the 2. Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events. Version Information Server Version: hasura/graphql-engine:v2. app/console Introduction. Locate the latest release and find the Assets section. Basically, 9691 is waiting for a temporary Hasura instance to become ready, Looking at the rest of the logs might give us some idea why it (temp hasura instance) is not able to start. sh as a single bash script and is well-commented for those curious. 0-alpha. Oct 11, 2021 · I'm still confused why the CLI is using docker for this stuff though. yaml is tracked at #1558. The Nhost CLI is used to set up a local development environment. yaml, instead of hard coded migrations. Use cases: Manage migrations on the database using migrate. Did you use hasura/graphql-engine:v1. sample file and add it to new-application. env file #4129 (comment)) Feb 12, 2024 · Upgrade V2 projects to V3. It works together with this module repository. 16 which is based on debian bullseye (current stable version). 38. This is generally the first command that you would run in a new project. 5 version. Helps to organize complex CI/CD flows through different environments. env and export them for the run. CLI tool to patch Hasura metadata json file. Dec 14, 2022 · Finding: Our configs use older Hasura Graphql engine version: hasura/graphql-engine:v2. yaml (as mentioned in cli: read env vars from . 2 I can run hasura It works in a . Now I'm trying to only run the console locally. yaml value (as the CLI is run from the directory containing config. Star Hasura CLI supplemented with Modules. An official Docker image with the Hasura CLI only. With GitHub integration, you can link a GitHub repository and a branch to a Hasura Cloud project and automatically deploy Metadata and Migrations in a given directory to the linked project. All you need is the project name. Now we can just add hasura cli to devDependency. GlobalConfig{UUID:"2c7618a3-e384-4bd2-84b6-dcef928f2edb", EnableTelemetry:true create-hasura-app cli to bootstrap hasura project. If you're deploying to Hasura Cloud, you can use the Hasura CLI or the GitHub integration. (Cloud / Enterprise edition only) Add config HASURA_GRAPHQL_REDIS_TIMEOUT to set a timeout for Redis queries (Enterprise edition only) Assets 7. com/hasura/graphql-engine/releases. The Hasura CLI is a command line tool that acts as an interface to the Hasura GraphQL Engine's Metadata API, providing a set of commands that you can use to create, migrate, and manage your Hasura projects. Commit and push the changes. Sign up Aug 17, 2022 · CLI Version (for CLI related issue): v2. 1 PostgresSQL v13. You signed out in another tab or window. Jul 25, 2019 · Hi @arnaud-cortisse, thank you for your reply. wh de nk py hg bk nw me ot dk