cli/CONTRIBUTING.md
Jake Runzer ee981b0756
Point to railway.com (#585)
* point to railway.com

* more updates from .app to .com
2025-01-08 14:33:37 -05:00

33 lines
675 B
Markdown

# Contribute to the Railway CLI
## Prerequisites
- [Rust](https://www.rust-lang.org/tools/install)
- [CMake](https://cmake.org/install/)
OR
- [Nix](https://nixos.org/download.html)
## Setting Up with Nix
Use `nix-shell` to enter an environment with all necessary dependencies.
## Running and Building
- Run the binary with: `cargo run -- <args>`
- Build the binary with: `cargo build --release`
## Generating the Schema
Install `graphql-client` with cargo:
```sh
cargo install graphql_client_cli
```
Then, run the following command to generate the schema:
```sh
graphql-client introspect-schema https://backboard.railway.com/graphql/v2 > src/gql/schema.json
```