CLI

auth

Authenticate to a provider or registry.

jsrepo auth

Usage

Authenticate to a provider. You will be prompted to select a provider if multiple are available:

jsrepo auth

Authenticate to a specific provider:

jsrepo auth github

If the provider requires registry-specific authentication, you will be prompted to select a registry:

◆  Select a registry to authenticate to.
│  ● @ieedan/shadcn-svelte-extras
│  ○ @ai/elements
│  ○ Other

Logout from a provider:

jsrepo auth github --logout

If the provider uses registry-specific tokens, you will be prompted to select which registry to logout from:

◆  Select a registry to logout of.
│  ● @ieedan/shadcn-svelte-extras
│  ○ @ai/elements

Authenticate using a token directly:

jsrepo auth github --token <your-token>

Options

--cwd

The current working directory:

jsrepo auth --cwd ./my-project

--logout

Execute the logout flow:

jsrepo auth github --logout

--token

The token to use for authenticating to this provider:

jsrepo auth github --token <your-token>

--verbose

Include debug logs:

jsrepo auth github --verbose