auth
nexus auth login
nexus auth login --url <core>
nexus auth login --with-token| Option | Meaning |
|---|---|
--url <core> | The Gateway to sign in to, saved as the default (default: NEXUS_GATEWAY, else the saved one, else NEXUS_URL, else https://api.nexus.inc) |
--no-browser | Only print the approval link; do not open a browser |
--with-token | Read an API key from stdin instead of signing in through the browser |
nexus auth login --url https://api.nexus.incnexus auth signup
nexus auth signup --name <name> [--email <email>] [--dry-run]| Option | Meaning |
|---|---|
--name <name> | The new organization's name (1 to 80 characters) |
--email <email> | The owner's email address (unverified until verified through sign-in) |
--dry-run | Show what would change, change nothing |
nexus auth status
nexus auth status| Exit code | Meaning |
|---|---|
| 0 | Signed in, and Gateway accepts the token |
| 1 | Not signed in, or Gateway rejects the saved token |
nexus auth status --jsonnexus auth logout
nexus auth logoutnexus auth delete-account
nexus auth delete-account [--dry-run] [--confirm DELETE]| Option | Meaning |
|---|---|
--dry-run | Show what would change, change nothing |
--confirm <DELETE> | DELETE, to confirm without a terminal (on one, you type it when asked) |
nexus auth tokens list
nexus auth tokens list [--all]| Option | Meaning |
|---|---|
--all | Everyone's tokens in the organization (owners and admins) |
nexus auth tokens create
nexus auth tokens create --label <label>| Option | Meaning |
|---|---|
--label <label> | A name for the key (1 to 80 characters), to tell keys apart |
nexus auth tokens create --label "CI deploys"nexus auth tokens revoke
nexus auth tokens revoke <id>