mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
docs: update cli reference
This commit is contained in:
parent
7f8ca70dab
commit
a4a444220e
1 changed files with 14 additions and 17 deletions
|
@ -3,7 +3,7 @@ title: pesde CLI
|
||||||
description: Reference for the pesde CLI.
|
description: Reference for the pesde CLI.
|
||||||
---
|
---
|
||||||
|
|
||||||
import { LinkCard } from '@astrojs/starlight/components'
|
import { LinkCard } from "@astrojs/starlight/components"
|
||||||
|
|
||||||
The pesde CLI is the primary way to interact with pesde projects. It provides
|
The pesde CLI is the primary way to interact with pesde projects. It provides
|
||||||
commands for installing dependencies, running scripts, and more.
|
commands for installing dependencies, running scripts, and more.
|
||||||
|
@ -12,31 +12,27 @@ commands for installing dependencies, running scripts, and more.
|
||||||
|
|
||||||
Authentication-related commands.
|
Authentication-related commands.
|
||||||
|
|
||||||
|
- `-i, --index`: The index of which token to manipulate. May be a URL or an alias.
|
||||||
|
Defaults to the default
|
||||||
|
index of the current project or the default index set in the config.
|
||||||
|
|
||||||
### `pesde auth login`
|
### `pesde auth login`
|
||||||
|
|
||||||
Logs in, stores an authentication token.
|
Sets the token for the index.
|
||||||
|
|
||||||
- `-i, --index`: The index to authenticate with. Defaults to the default index.
|
- `-t, --token`: The token to set.
|
||||||
- `-t, --token`: The token to use for authentication.
|
|
||||||
|
|
||||||
If no token is provided, you will be prompted to authenticate with GitHub. A
|
If no token is provided, you will be prompted to authenticate with GitHub. A
|
||||||
code will be provided that you can paste into the GitHub authentication prompt.
|
code will be provided that you can paste into the GitHub authentication prompt.
|
||||||
|
|
||||||
### `pesde auth logout`
|
### `pesde auth logout`
|
||||||
|
|
||||||
Logs out, removes the stored authentication token.
|
Removes the stored token for the index.
|
||||||
|
|
||||||
### `pesde auth whoami`
|
### `pesde auth whoami`
|
||||||
|
|
||||||
Prints the username of the currently authenticated user.
|
Prints the username of the currently authenticated user of the index. Only
|
||||||
|
works if the token is a GitHub token.
|
||||||
### `pesde auth set-token-override`
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pesde auth set-token-override <REPOSITORY> [TOKEN]
|
|
||||||
```
|
|
||||||
|
|
||||||
Sets a token override for a specific repository.
|
|
||||||
|
|
||||||
## `pesde config`
|
## `pesde config`
|
||||||
|
|
||||||
|
@ -152,6 +148,7 @@ Applies the changes made in the patching environment created by `pesde patch`.
|
||||||
```sh
|
```sh
|
||||||
pesde add <PACKAGE>
|
pesde add <PACKAGE>
|
||||||
```
|
```
|
||||||
|
|
||||||
Adds a package to the dependencies of the current project.
|
Adds a package to the dependencies of the current project.
|
||||||
|
|
||||||
- `-i, --index <INDEX>`: The index in which to search for the package.
|
- `-i, --index <INDEX>`: The index in which to search for the package.
|
||||||
|
|
Loading…
Add table
Reference in a new issue