Browse Source

Modify snap command aliases

Joseph Henry 3 years ago
parent
commit
4e10b4e017
1 changed files with 10 additions and 3 deletions
  1. 10 3
      snap/snapcraft.yaml

+ 10 - 3
snap/snapcraft.yaml

@@ -7,10 +7,10 @@ description: |
   Install
     sudo snap install zerotier
   Join your network
-    sudo zerotier.cli join 8056c2e21c000001
-    sudo zerotier.cli status
+    sudo zerotier join <nwid>
+    sudo zerotier status
   Approve your new node in ZeroTier Central (https://my.zerotier.com)! Welcome online!
-  
+
 adopt-info: one
 confinement: strict
 grade: stable
@@ -28,11 +28,18 @@ apps:
       - network-bind
       - network-control
 
+  # For backwards compatibility with old package (e.g. zerotier.cli)
+  # Should be removed someday
   cli:
     command: usr/sbin/zerotier-cli
     plugs:
       - network
 
+  zerotier:
+    command: usr/sbin/zerotier-cli
+    plugs:
+      - network
+
   idtool:
     command: usr/sbin/zerotier-idtool
     plugs: