Skip to content

Instantly share code, notes, and snippets.

@kyouheicf
Last active September 28, 2023 03:25
Show Gist options
  • Save kyouheicf/2dc55904b13f010e46655f30ba515168 to your computer and use it in GitHub Desktop.
Save kyouheicf/2dc55904b13f010e46655f30ba515168 to your computer and use it in GitHub Desktop.
# Install WARP Linux package
# https://pkg.cloudflareclient.com/
# Warp-cli: --access-client-id and --access-client-secret no longer exist? - Zero Trust / Access - Cloudflare Community
# https://community.cloudflare.com/t/warp-cli-access-client-id-and-access-client-secret-no-longer-exist/384090
export ORG_NAME='YOUR_ORG_NAME'
export CLIENT_ID='YOUR_CLIENT_ID'
export CLIENT_SECRET='YOUR_CLIENT_SECRET'
cat << EOS | sudo tee /var/lib/cloudflare-warp/mdm.xml
<?xml version="1.0" encoding="UTF-8"?>
<dict>
<key>organization</key>
<string>$ORG_NAME</string>
<key>service_mode</key>
<string>warp</string>
<key>onboarding</key>
<false />
<key>switch_locked</key>
<false />
<key>auto_connect</key>
<integer>0</integer>
<key>auth_client_id</key>
<string>$CLIENT_ID</string>
<key>auth_client_secret</key>
<string>$CLIENT_SECRET</string>
</dict>
EOS
# warp-cli account
# warp-cli status
# warp-cli connect
# warp-cli disconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment