Skip to content

Commit cfda5e9

Browse files
author
Daniils Petrovs
authored
Add Warp reauth command (raycast#864)
1 parent 842ef16 commit cfda5e9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

commands/apps/warp/warp-reauth.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Dependency: Cloudflare WARP https://developers.cloudflare.com/warp-client/setting-up/macOS
4+
# Note: Cloudflare WARP must be installed, but CLI works properly only if GUI-client is not running
5+
6+
# Required parameters:
7+
# @raycast.schemaVersion 1
8+
# @raycast.title Reauthenticate
9+
# @raycast.mode compact
10+
11+
# Optional parameters:
12+
# @raycast.icon images/warp.png
13+
14+
# @Documentation:
15+
# @raycast.packageName WARP
16+
# @raycast.description Force WARP reauthentication
17+
# @raycast.author Daniils Petrovs
18+
# @raycast.authorURL https://github.com/danirukun
19+
20+
21+
if ! command -v warp-cli &> /dev/null; then
22+
echo "WARP is required (https://developers.cloudflare.com/warp-client/setting-up/macOS)";
23+
exit 1;
24+
fi
25+
26+
warp-cli access-reauth
27+
echo "Opening WARP authentication page"

0 commit comments

Comments
 (0)