mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
Point to railway.com (#585)
* point to railway.com * more updates from .app to .com
This commit is contained in:
parent
94a34cd230
commit
ee981b0756
5 changed files with 26 additions and 12 deletions
|
|
@ -29,5 +29,5 @@ cargo install graphql_client_cli
|
||||||
Then, run the following command to generate the schema:
|
Then, run the following command to generate the schema:
|
||||||
|
|
||||||
```sh
|
```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
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ name = "railwayapp"
|
||||||
version = "3.20.1"
|
version = "3.20.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["Railway <contact@railway.app>"]
|
authors = ["Railway <contact@railway.com>"]
|
||||||
description = "Interact with Railway via CLI"
|
description = "Interact with Railway via CLI"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
homepage = "https://github.com/railwayapp/cli"
|
homepage = "https://github.com/railwayapp/cli"
|
||||||
|
|
@ -24,7 +24,8 @@ dirs = "5.0.1"
|
||||||
serde = { version = "1.0.217", features = ["derive"] }
|
serde = { version = "1.0.217", features = ["derive"] }
|
||||||
serde_json = "1.0.134"
|
serde_json = "1.0.134"
|
||||||
reqwest = { version = "0.12.12", default-features = false, features = [
|
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 }
|
chrono = { version = "0.4.39", features = ["serde"], default-features = false }
|
||||||
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }
|
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -4,9 +4,9 @@
|
||||||
[](https://github.com/railwayapp/cliv3/actions/workflows/ci.yml)
|
[](https://github.com/railwayapp/cliv3/actions/workflows/ci.yml)
|
||||||
[](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml)
|
[](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.
|
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
|
- Create services and databases right from the comfort of your fingertips
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
Currently pre-release. We are looking for feedback and suggestions. Please join our [Discord](https://discord.gg/railway) to provide feedback.
|
Currently pre-release. We are looking for feedback and suggestions. Please join our [Discord](https://discord.gg/railway) to provide feedback.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Cargo
|
### Cargo
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo install railwayapp --locked
|
cargo install railwayapp --locked
|
||||||
```
|
```
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew install railway
|
brew install railway
|
||||||
```
|
```
|
||||||
|
|
||||||
### NPM
|
### NPM
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install -g @railway/cli
|
npm install -g @railway/cli
|
||||||
```
|
```
|
||||||
|
|
||||||
### Bash
|
### Bash
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install
|
# Install
|
||||||
bash <(curl -fsSL cli.new)
|
bash <(curl -fsSL cli.new)
|
||||||
|
|
||||||
# Uninstall
|
# Uninstall
|
||||||
|
|
@ -48,6 +52,7 @@ bash <(curl -fsSL cli.new) -r
|
||||||
```
|
```
|
||||||
|
|
||||||
### Scoop
|
### Scoop
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
scoop install railway
|
scoop install railway
|
||||||
```
|
```
|
||||||
|
|
@ -55,10 +60,13 @@ scoop install railway
|
||||||
### Arch Linux AUR
|
### Arch Linux AUR
|
||||||
|
|
||||||
Install using Paru
|
Install using Paru
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
paru -S railwayapp-cli
|
paru -S railwayapp-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
Install using Yay
|
Install using Yay
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yay -S railwayapp-cli
|
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.
|
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
|
Install from the command line
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull ghcr.io/railwayapp/cli:latest
|
docker pull ghcr.io/railwayapp/cli:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Use in GitHub Actions
|
Use in GitHub Actions
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
deploy-job:
|
deploy-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -86,6 +96,7 @@ deploy-job:
|
||||||
```
|
```
|
||||||
|
|
||||||
Use in GitLab CICD
|
Use in GitLab CICD
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
deploy-job:
|
deploy-job:
|
||||||
image: ghcr.io/railwayapp/cli:latest
|
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.
|
> GitLab can access a protected (secret) variable directly, all you need to do is to add it in CI/CD settings.
|
||||||
|
|
||||||
### From source
|
### From source
|
||||||
|
|
||||||
See [CONTRIBUTING.md](https://github.com/railwayapp/cli/blob/master/CONTRIBUTING.md) for information on setting up this repo locally.
|
See [CONTRIBUTING.md](https://github.com/railwayapp/cli/blob/master/CONTRIBUTING.md) for information on setting up this repo locally.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
[View the full documentation](https://docs.railway.app)
|
|
||||||
|
[View the full documentation](https://docs.railway.com)
|
||||||
|
|
||||||
## Feedback
|
## Feedback
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,6 @@ pub async fn command(_args: Args, _json: bool) -> Result<()> {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
::open::that("https://docs.railway.app/")?;
|
::open::that("https://docs.railway.com")?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -146,9 +146,9 @@ impl Configs {
|
||||||
|
|
||||||
pub fn get_host(&self) -> &'static str {
|
pub fn get_host(&self) -> &'static str {
|
||||||
match Self::get_environment_id() {
|
match Self::get_environment_id() {
|
||||||
Environment::Production => "railway.app",
|
Environment::Production => "railway.com",
|
||||||
Environment::Staging => "railway-staging.app",
|
Environment::Staging => "railway-staging.com",
|
||||||
Environment::Dev => "railway-develop.app",
|
Environment::Dev => "railway-develop.com",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue