aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-get-akid
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-get-akid')
-rwxr-xr-xbin/ak-get-akid5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ak-get-akid b/bin/ak-get-akid
new file mode 100755
index 0000000..17dcf74
--- /dev/null
+++ b/bin/ak-get-akid
@@ -0,0 +1,5 @@
+#!/bin/bash
+# Resolves the IPNS key "ak-config" to its current IPFS value
+# Return IPFS CIDv0 without /ipfs/ prefix
+ipfs name resolve /ipns/$(ipfs key list -l | grep ak-config | awk '{print $1}') | sed -e 's/\/ipfs\///'
+