docs(core): updates for login/logout (#27838)
Replaces references to `nxCloudAccessToken` with `nxCloudId` Adds login/logout to the commands landing page
This commit is contained in:
parent
e800fbf816
commit
332a20fd08
@ -182,7 +182,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
## Understand Remote Caching
|
||||
|
||||
|
||||
@ -147,7 +147,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
## Understand Remote Caching
|
||||
|
||||
|
||||
@ -325,7 +325,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
@ -344,7 +344,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@ Creating the equivalent configuration with Nx yields the following files:
|
||||
"cache": true
|
||||
}
|
||||
},
|
||||
"nxCloudAccessToken": "..."
|
||||
"nxCloudId": "..."
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@ -147,7 +147,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ The Nx CLI provides many commands. They are organized here into commands that:
|
||||
- [Modify Code](#modify-code)
|
||||
- [Run Tasks](#run-tasks)
|
||||
- [Display Information](#display-information)
|
||||
- [Integrate with Nx Cloud](#integrate-with-nx-cloud)
|
||||
|
||||
There is also a section for separate commands that can [create a new Nx workspace](#create-commands) for you.
|
||||
|
||||
@ -97,19 +98,6 @@ nx repair
|
||||
{% link-card title="nx repair" type="API Reference" url="/nx-api/nx/documents/repair" /%}
|
||||
{% /cards %}
|
||||
|
||||
### connect
|
||||
|
||||
Connect an Nx workspace to Nx Cloud
|
||||
|
||||
```shell
|
||||
nx connect
|
||||
```
|
||||
|
||||
{% cards %}
|
||||
{% link-card title="nx connect" type="API Reference" url="/nx-api/nx/documents/connect-to-nx-cloud" /%}
|
||||
{% link-card title="Connect to Nx Cloud" type="Feature" url="/ci/intro/connect-to-nx-cloud" /%}
|
||||
{% /cards %}
|
||||
|
||||
### format
|
||||
|
||||
Overwrite un-formatted files or check for un-formatted files
|
||||
@ -292,6 +280,47 @@ nx daemon
|
||||
{% link-card title="Nx Daemon" type="Concept" url="/concepts/nx-daemon" /%}
|
||||
{% /cards %}
|
||||
|
||||
## Integrate with Nx Cloud
|
||||
|
||||
### connect
|
||||
|
||||
Connect an Nx workspace to Nx Cloud
|
||||
|
||||
```shell
|
||||
nx connect
|
||||
```
|
||||
|
||||
{% cards %}
|
||||
{% link-card title="nx connect" type="API Reference" url="/nx-api/nx/documents/connect-to-nx-cloud" /%}
|
||||
{% link-card title="Connect to Nx Cloud" type="Feature" url="/ci/intro/connect-to-nx-cloud" /%}
|
||||
{% /cards %}
|
||||
|
||||
### login
|
||||
|
||||
Connect an Nx workspace to Nx Cloud
|
||||
|
||||
```shell
|
||||
nx login
|
||||
```
|
||||
|
||||
{% cards %}
|
||||
{% link-card title="nx login" type="API Reference" url="/nx-api/nx/documents/login" /%}
|
||||
{% link-card title="Personal Access Tokens" type="Recipe" url="/ci/recipes/security/personal-access-tokens" /%}
|
||||
{% /cards %}
|
||||
|
||||
### logout
|
||||
|
||||
Connect an Nx workspace to Nx Cloud
|
||||
|
||||
```shell
|
||||
nx logout
|
||||
```
|
||||
|
||||
{% cards %}
|
||||
{% link-card title="nx logout" type="API Reference" url="/nx-api/nx/documents/logout" /%}
|
||||
{% link-card title="Personal Access Tokens" type="Recipe" url="/ci/recipes/security/personal-access-tokens" /%}
|
||||
{% /cards %}
|
||||
|
||||
## Create Commands
|
||||
|
||||
### create-nx-workspace
|
||||
|
||||
@ -528,11 +528,11 @@ Some presets use the `extends` property to hide some default options in a separa
|
||||
|
||||
## Nx Cloud
|
||||
|
||||
There are also options for [Nx Cloud](https://nx.app) that are set in the `nx.json` file. For instance, you authenticate with the Nx Cloud service using an `nxCloudAccessToken` like this:
|
||||
There are also options for [Nx Cloud](https://nx.app) that are set in the `nx.json` file. For instance, you connect to the Nx Cloud service using an `nxCloudId` like this:
|
||||
|
||||
```json {% fileName="nx.json" %}
|
||||
{
|
||||
"nxCloudAccessToken": "SOMETOKEN"
|
||||
"nxCloudId": "SOMEID"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@ -310,7 +310,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
@ -405,7 +405,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
@ -1023,7 +1023,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
@ -1071,7 +1071,7 @@ And make sure you pull the latest changes locally:
|
||||
git pull
|
||||
```
|
||||
|
||||
You should now have an `nxCloudAccessToken` property specified in the `nx.json` file.
|
||||
You should now have an `nxCloudId` property specified in the `nx.json` file.
|
||||
|
||||
### Create a CI Workflow {% highlightColor="green" %}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user