Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions src/lib/docs/cli/auth.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: auth
description: Configure access tokens for private registry access and update with AI.
lastUpdated: 4-10-2025
description: Authenticate to jsrepo.com.
lastUpdated: 5-5-2025
---

```sh
Expand All @@ -10,28 +10,22 @@ jsrepo auth

## Usage

Choose a service and provide a token:
Authenticate to jsrepo.com:

```sh
jsrepo auth
```

Authenticate to a specific service:

```sh
jsrepo auth github
```

Choose a service to logout from:
Logout of jsrepo.com:

```sh
jsrepo auth --logout
```

Logout from a specific service:
Login using a token:

```sh
jsrepo auth github --logout
jsrepo auth --token <...>
```

## Options
Expand All @@ -43,7 +37,7 @@ The token to use for authenticating to your service.
#### Usage

```sh
jsrepo auth --token xxxxxxxxxxx
jsrepo auth --token <...>
```

### `--logout`
Expand Down
77 changes: 77 additions & 0 deletions src/lib/docs/cli/tokens.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: tokens
description: Configure access tokens for private registry access and update with AI.
lastUpdated: 4-10-2025
---

```sh
jsrepo tokens
```

## Usage

Choose a service and provide a token:

```sh
jsrepo tokens
```

Authenticate to a specific service:

```sh
jsrepo tokens github
```

Choose a service to logout from:

```sh
jsrepo tokens --logout
```

Logout from a specific service:

```sh
jsrepo tokens github --logout
```

## Options

### `--token`

The token to use for authenticating to your service.

#### Usage

```sh
jsrepo tokens --token xxxxxxxxxxx
```

### `--logout`

Executes the logout flow.

#### Usage

```sh
jsrepo tokens --logout
```

### `--cwd`

Run the current command on the provided directory absolute or relative.

#### Usage

```sh
jsrepo tokens --cwd ./sites/docs
```

### `-h, --help`

Help with the command.

#### Usage

```sh
jsrepo add --help
```
4 changes: 4 additions & 0 deletions src/lib/docs/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ const tempMap: Record<string, [TempDoc, TempDoc[]] | [string, TempDoc[]]> = {
title: 'test',
slug: 'test'
},
{
title: 'tokens',
slug: 'tokens'
},
{
title: 'update',
slug: 'update'
Expand Down
6 changes: 2 additions & 4 deletions src/lib/docs/registry/providers/jsrepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ For example:

Here `@ieedan` is the scope and `std` is the registry name.

Next you will need to create an access token [here](https://jsrepo.com/account/access-tokens/new).

With your newly created access token, authenticate to the jsrepo CLI like so:
Next you will need to authenticate to jsrepo.com:

```sh
jsrepo auth jsrepo --token <token>
jsrepo auth
```

> If you are publishing in a workflow you can use the `JSREPO_TOKEN` environment variable instead.
Expand Down
18 changes: 16 additions & 2 deletions static/docs/cli/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A CLI to add shared code from remote repositories.

Latest Version: 1.47.0
Latest Version: 2.0.0

## Commands

Expand Down Expand Up @@ -31,13 +31,27 @@ jsrepo add [options] [blocks...]

### auth

Provide a token for access to private repositories.
Authenticate to jsrepo.com.

#### Usage
```bash
jsrepo auth [options] [service]
```

#### Options
- --logout: Execute the logout flow.
- --token <token>: The token to use for authenticating to jsrepo.com.
- --cwd <path>: The current working directory. (default: ./)

### tokens

Provide a token for access to private repositories.

#### Usage
```bash
jsrepo tokens [options] [service]
```

#### Options
- --logout: Execute the logout flow.
- --token <token>: The token to use for authenticating to this service.
Expand Down
2 changes: 1 addition & 1 deletion static/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Provider Support

jsrepo supports multiple ways of serving your registry, you can host your registry on GitHub, GitLab, BitBucket, Azure DevOps or on your own domain.
jsrepo supports multiple ways of serving your registry, you can host your registry on jsrepo.com, GitHub, GitLab, BitBucket, Azure DevOps or on your own domain.

## Language Support

Expand Down
Loading