From bd9c320098a1fa013eafad2eb2220f8db0005e15 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Wed, 8 Jan 2025 14:21:15 -0500 Subject: [PATCH] more updates from .app to .com --- CONTRIBUTING.md | 2 +- Cargo.toml | 5 +++-- README.md | 23 ++++++++++++++++++----- src/commands/docs.rs | 2 +- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f5e29f55..97b263a2c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,5 +29,5 @@ cargo install graphql_client_cli Then, run the following command to generate the schema: ```sh -graphql-client introspect-schema https://backboard.railway.app/graphql/v2 > src/gql/schema.json +graphql-client introspect-schema https://backboard.railway.com/graphql/v2 > src/gql/schema.json ``` diff --git a/Cargo.toml b/Cargo.toml index e18fd7b8b..1bf00f529 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "railwayapp" version = "3.20.1" edition = "2021" license = "MIT" -authors = ["Railway "] +authors = ["Railway "] description = "Interact with Railway via CLI" readme = "README.md" homepage = "https://github.com/railwayapp/cli" @@ -24,7 +24,8 @@ dirs = "5.0.1" serde = { version = "1.0.217", features = ["derive"] } serde_json = "1.0.134" reqwest = { version = "0.12.12", default-features = false, features = [ - "rustls-tls", "json" + "rustls-tls", + "json", ] } chrono = { version = "0.4.39", features = ["serde"], default-features = false } graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] } diff --git a/README.md b/README.md index 9b84f3ba1..cc0605add 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ [![CI](https://github.com/railwayapp/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/railwayapp/cliv3/actions/workflows/ci.yml) [![cargo audit](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml/badge.svg)](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml) -This is the command line interface for [Railway](https://railway.app). Use it to connect your code to Railway's infrastructure without needing to worry about environment variables or configuration. +This is the command line interface for [Railway](https://railway.com). Use it to connect your code to Railway's infrastructure without needing to worry about environment variables or configuration. -[View the docs](https://docs.railway.app/develop/cli) +[View the docs](https://docs.railway.com/develop/cli) The Railway command line interface (CLI) connects your code to your Railway project from the command line. @@ -18,29 +18,33 @@ The Railway CLI allows you to - Create services and databases right from the comfort of your fingertips ## Status + Currently pre-release. We are looking for feedback and suggestions. Please join our [Discord](https://discord.gg/railway) to provide feedback. ## Installation ### Cargo + ```bash cargo install railwayapp --locked ``` ### Homebrew -```bash +```bash brew install railway ``` ### NPM + ```bash npm install -g @railway/cli ``` ### Bash + ```bash -# Install +# Install bash <(curl -fsSL cli.new) # Uninstall @@ -48,6 +52,7 @@ bash <(curl -fsSL cli.new) -r ``` ### Scoop + ```ps1 scoop install railway ``` @@ -55,10 +60,13 @@ scoop install railway ### Arch Linux AUR Install using Paru + ```bash paru -S railwayapp-cli ``` + Install using Yay + ```bash yay -S railwayapp-cli ``` @@ -68,11 +76,13 @@ yay -S railwayapp-cli Before using the CLI in a non-interactive environment, ensure you have created an access token (only project-tokens are supported as of now) and set it as the `RAILWAY_TOKEN` environment variable. CI environments are automatically detected by the presence of `CI=true` variable. In these environments, only build logs will be streamed, and the CLI will exit with an appropriate code indicating success or failure. Install from the command line + ```bash docker pull ghcr.io/railwayapp/cli:latest ``` Use in GitHub Actions + ```yml deploy-job: runs-on: ubuntu-latest @@ -86,6 +96,7 @@ deploy-job: ``` Use in GitLab CICD + ```yml deploy-job: image: ghcr.io/railwayapp/cli:latest @@ -99,10 +110,12 @@ deploy-job: > GitLab can access a protected (secret) variable directly, all you need to do is to add it in CI/CD settings. ### From source + See [CONTRIBUTING.md](https://github.com/railwayapp/cli/blob/master/CONTRIBUTING.md) for information on setting up this repo locally. ## Documentation -[View the full documentation](https://docs.railway.app) + +[View the full documentation](https://docs.railway.com) ## Feedback diff --git a/src/commands/docs.rs b/src/commands/docs.rs index 2149c6751..b2b45597c 100644 --- a/src/commands/docs.rs +++ b/src/commands/docs.rs @@ -17,6 +17,6 @@ pub async fn command(_args: Args, _json: bool) -> Result<()> { return Ok(()); } - ::open::that("https://docs.railway.app/")?; + ::open::that("https://docs.railway.com")?; Ok(()) }