<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> N/A ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> When running `npx nx login`, a file server should open and take you to Nx Cloud to create a new personal access token. When running `npx nx logout`, the user should be prompted with Nx Cloud URLs of instances that they can revoke personal access tokens to. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
43 lines
640 B
Markdown
43 lines
640 B
Markdown
---
|
|
title: 'login - CLI command'
|
|
description: 'Login to Nx Cloud'
|
|
---
|
|
|
|
# login
|
|
|
|
Login to Nx Cloud
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
nx login [nxCloudUrl]
|
|
```
|
|
|
|
Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpm nx`.
|
|
|
|
## Options
|
|
|
|
### help
|
|
|
|
Type: `boolean`
|
|
|
|
Show help
|
|
|
|
### nxCloudUrl
|
|
|
|
Type: `string`
|
|
|
|
The Nx Cloud URL of the instance you are trying to connect to. If no positional argument is provided, this command will connect to https://cloud.nx.app.
|
|
|
|
### verbose
|
|
|
|
Type: `boolean`
|
|
|
|
Prints additional information about the commands (e.g., stack traces)
|
|
|
|
### version
|
|
|
|
Type: `boolean`
|
|
|
|
Show version number
|