summaryrefslogtreecommitdiff
path: root/test_cli.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test_cli.sh')
-rwxr-xr-xtest_cli.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/test_cli.sh b/test_cli.sh
new file mode 100755
index 0000000..204590f
--- /dev/null
+++ b/test_cli.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# use env var if set, otherwise use default
+[ -z "$PROVIDER_DIR" ] && PROVIDER_DIR='/tmp/provider_test'
+[ -z "$PLATFORM_DIR" ] && PLATFORM_DIR='/tmp/leap_platform'
+
+
+[ -e $PROVIDER_DIR ] && rm -rf $PROVIDER_DIR
+mkdir $PROVIDER_DIR
+cd $PROVIDER_DIR
+leap new --contacts your@email.here --domain example.org --name Example --platform="$PLATFORM_DIR" .
+
+leap node add test1 ip_address:1.2.3.4 services:webapp,couchdb,mx
+leap add-user --self --ssh-pub-key="/home/${USER}/.ssh/id_rsa.pub"
+leap cert ca
+leap cert csr
+
+
+leap list
+
+leap compile