Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/checkout@v6

- name: 🔽 Download Artifact
uses: actions/download-artifact@v6
uses: actions/download-artifact@v7
with:
name: build
path: .vitepress/dist
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

steps:
- name: 🔽 Download Artifact
uses: actions/download-artifact@v6
uses: actions/download-artifact@v7
with:
path: build
merge-multiple: true
Expand Down
29 changes: 29 additions & 0 deletions docs/tools/ws-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ ws clip paste | grep "pattern"

::: tip
For quick clipboard access, use the clipboard binaries:

```sh
# macOS-compatible
echo "copy this" | pbcopy
Expand All @@ -56,6 +57,7 @@ xclip -o -sel c
echo "copy this" | xsel -b
xsel -b -o
```

:::

See the [Terminal Clipboard](/editor/terminal#clipboard) section for more details.
Expand Down Expand Up @@ -100,6 +102,33 @@ Retrieve workspace logs.
ws logs --level=error --tail=100 --follow
```

### Secrets (`ws secrets`)

Manage encryption, decryption, and master key generation for secure secrets handling.

- **`generate`:** Generate a cryptographically secure master key.
- **`encrypt <plaintext>`:** Encrypt a plaintext value using a master key.
- **`decrypt <encrypted>`:** Decrypt an encrypted value using a master key.

#### Flags

- **`--master <key>`:** Master key or path to key file.
- **`--mode <permissions>`:** File permissions *(e.g., 0o600, 384)*, only when `--output`
is used. Values can be decimal or octet.
- **`--force`:** Overwrite existing files.
- **`--raw`:** Output without styling.

```sh
# Generate a master key
ws secrets generate --output .master.key --mode 0o600

# Encrypt a value
ws secrets encrypt "my-secret-value" --master .master.key

# Decrypt a value
ws secrets decrypt "base64:TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu..." --master .master.key
```

### Serve (`ws serve`)

Serve internal assets.
Expand Down