---
title: Usage and upgrade
---

# Ray usage and upgrade management

## Use

Must introduce `@ray-js/ray` and `@ray-js/cli` as framework base packages, and it is recommended to keep up to date.
> For older versions that may have `@ray-js/api`, `@ray-js/components`, or `@ray-js/framework` base package dependencies, it is recommended to remove other Ray runtime base package dependencies in `package.json`. Just keep `@ray-js/ray`, as it already aggregates various runtime dependencies.

## Upgrade

It is recommended that when upgrading the run time dependency of `ray` `@ray-js/ray` and compile time dependency of
`@ray-js/cli`, we will keep the latest optimizations and features in sync, and it is recommended that the version
dependencies of both packages be consistent.

```
"devDependencies": {
    "@ray-js/cli": "x.x.x"
},
"dependencies": {
    "@ray-js/ray": "x.x.x"
},
```

