diff --git a/src/lib/docs/cli/auth.md b/src/lib/docs/cli/auth.md index 5ae947b..757ab20 100644 --- a/src/lib/docs/cli/auth.md +++ b/src/lib/docs/cli/auth.md @@ -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 @@ -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 @@ -43,7 +37,7 @@ The token to use for authenticating to your service. #### Usage ```sh -jsrepo auth --token xxxxxxxxxxx +jsrepo auth --token <...> ``` ### `--logout` diff --git a/src/lib/docs/cli/tokens.md b/src/lib/docs/cli/tokens.md new file mode 100644 index 0000000..45f0f66 --- /dev/null +++ b/src/lib/docs/cli/tokens.md @@ -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 +``` diff --git a/src/lib/docs/map.ts b/src/lib/docs/map.ts index e6ae017..a261311 100644 --- a/src/lib/docs/map.ts +++ b/src/lib/docs/map.ts @@ -65,6 +65,10 @@ const tempMap: Record = { title: 'test', slug: 'test' }, + { + title: 'tokens', + slug: 'tokens' + }, { title: 'update', slug: 'update' diff --git a/src/lib/docs/registry/providers/jsrepo.md b/src/lib/docs/registry/providers/jsrepo.md index 8fb5c27..e0bd3ad 100644 --- a/src/lib/docs/registry/providers/jsrepo.md +++ b/src/lib/docs/registry/providers/jsrepo.md @@ -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 +jsrepo auth ``` > If you are publishing in a workflow you can use the `JSREPO_TOKEN` environment variable instead. diff --git a/static/docs/cli/llms.txt b/static/docs/cli/llms.txt index f0c667b..4799b0f 100644 --- a/static/docs/cli/llms.txt +++ b/static/docs/cli/llms.txt @@ -2,7 +2,7 @@ > A CLI to add shared code from remote repositories. -Latest Version: 1.47.0 +Latest Version: 2.0.0 ## Commands @@ -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 : The token to use for authenticating to jsrepo.com. +- --cwd : 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 : The token to use for authenticating to this service. diff --git a/static/llms.txt b/static/llms.txt index 7101986..c0ff8ec 100644 --- a/static/llms.txt +++ b/static/llms.txt @@ -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