Skip to content

Commit ee981b0

Browse files
authored
Point to railway.com (#585)
* point to railway.com * more updates from .app to .com
1 parent 94a34cd commit ee981b0

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ cargo install graphql_client_cli
2929
Then, run the following command to generate the schema:
3030

3131
```sh
32-
graphql-client introspect-schema https://backboard.railway.app/graphql/v2 > src/gql/schema.json
32+
graphql-client introspect-schema https://backboard.railway.com/graphql/v2 > src/gql/schema.json
3333
```

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "railwayapp"
33
version = "3.20.1"
44
edition = "2021"
55
license = "MIT"
6-
authors = ["Railway <contact@railway.app>"]
6+
authors = ["Railway <contact@railway.com>"]
77
description = "Interact with Railway via CLI"
88
readme = "README.md"
99
homepage = "https://github.com/railwayapp/cli"
@@ -24,7 +24,8 @@ dirs = "5.0.1"
2424
serde = { version = "1.0.217", features = ["derive"] }
2525
serde_json = "1.0.134"
2626
reqwest = { version = "0.12.12", default-features = false, features = [
27-
"rustls-tls", "json"
27+
"rustls-tls",
28+
"json",
2829
] }
2930
chrono = { version = "0.4.39", features = ["serde"], default-features = false }
3031
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }

README.md

+18-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[![CI](https://github.com/railwayapp/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/railwayapp/cliv3/actions/workflows/ci.yml)
55
[![cargo audit](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml/badge.svg)](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml)
66

7-
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.
7+
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.
88

9-
[View the docs](https://docs.railway.app/develop/cli)
9+
[View the docs](https://docs.railway.com/develop/cli)
1010

1111
The Railway command line interface (CLI) connects your code to your Railway project from the command line.
1212

@@ -18,47 +18,55 @@ The Railway CLI allows you to
1818
- Create services and databases right from the comfort of your fingertips
1919

2020
## Status
21+
2122
Currently pre-release. We are looking for feedback and suggestions. Please join our [Discord](https://discord.gg/railway) to provide feedback.
2223

2324
## Installation
2425

2526
### Cargo
27+
2628
```bash
2729
cargo install railwayapp --locked
2830
```
2931

3032
### Homebrew
3133

32-
```bash
34+
```bash
3335
brew install railway
3436
```
3537

3638
### NPM
39+
3740
```bash
3841
npm install -g @railway/cli
3942
```
4043

4144
### Bash
45+
4246
```bash
43-
# Install
47+
# Install
4448
bash <(curl -fsSL cli.new)
4549

4650
# Uninstall
4751
bash <(curl -fsSL cli.new) -r
4852
```
4953

5054
### Scoop
55+
5156
```ps1
5257
scoop install railway
5358
```
5459

5560
### Arch Linux AUR
5661

5762
Install using Paru
63+
5864
```bash
5965
paru -S railwayapp-cli
6066
```
67+
6168
Install using Yay
69+
6270
```bash
6371
yay -S railwayapp-cli
6472
```
@@ -68,11 +76,13 @@ yay -S railwayapp-cli
6876
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.
6977

7078
Install from the command line
79+
7180
```bash
7281
docker pull ghcr.io/railwayapp/cli:latest
7382
```
7483

7584
Use in GitHub Actions
85+
7686
```yml
7787
deploy-job:
7888
runs-on: ubuntu-latest
@@ -86,6 +96,7 @@ deploy-job:
8696
```
8797
8898
Use in GitLab CICD
99+
89100
```yml
90101
deploy-job:
91102
image: ghcr.io/railwayapp/cli:latest
@@ -99,10 +110,12 @@ deploy-job:
99110
> GitLab can access a protected (secret) variable directly, all you need to do is to add it in CI/CD settings.
100111
101112
### From source
113+
102114
See [CONTRIBUTING.md](https://github.com/railwayapp/cli/blob/master/CONTRIBUTING.md) for information on setting up this repo locally.
103115
104116
## Documentation
105-
[View the full documentation](https://docs.railway.app)
117+
118+
[View the full documentation](https://docs.railway.com)
106119
107120
## Feedback
108121

src/commands/docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ pub async fn command(_args: Args, _json: bool) -> Result<()> {
1717
return Ok(());
1818
}
1919

20-
::open::that("https://docs.railway.app/")?;
20+
::open::that("https://docs.railway.com")?;
2121
Ok(())
2222
}

src/config.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ impl Configs {
146146

147147
pub fn get_host(&self) -> &'static str {
148148
match Self::get_environment_id() {
149-
Environment::Production => "railway.app",
150-
Environment::Staging => "railway-staging.app",
151-
Environment::Dev => "railway-develop.app",
149+
Environment::Production => "railway.com",
150+
Environment::Staging => "railway-staging.com",
151+
Environment::Dev => "railway-develop.com",
152152
}
153153
}
154154

0 commit comments

Comments
 (0)