After downloading the appropriate binary, extract it from .zip archive and make it executable.
Linux
Rename swisstronikcli-linux-amd64 to swisstronikcli using following command:
mvswisstronikcli-linux-amd64swisstronikcli
Then make it executable:
chmod+xswisstronikcli
Now you can check if everything went fine:
./swisstronikcli
The command above will output a list of accessible commands and flags:
Usage:
swisstronikcli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
config Create or query an application CLI configuration file
debug Commands for debug
help Help about any command
keys Manage your application's keys
query Querying subcommands
status Query remote node for status
tx Transactions subcommands
Flags:
-b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) (default "sync")
--chain-id string Specify Chain ID for sending Tx (default "swisstronik")
--fees string Fees to pay along with transaction; eg: 10uswtr
--from string Name or address of private key with which to sign
--gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1)
--gas-prices string Gas prices to determine the transaction fee (e.g. 10uswtr)
-h, --help help for swisstronikcli
--home string directory for config and data (default "/Users/voldyrvovka/.swisstronik")
--keyring-backend string Select keyring's backend (default "test")
--log_format string The logging format (json|plain) (default "plain")
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
--node string <host>:<port> to tendermint rpc interface for this chain (default "tcp://localhost:26657")
--trace print out full stack trace on errors
Use "swisstronikcli [command] --help" for more information about a command.
OPTIONAL: To make swisstronikcli accessible anywhere, use the following command:
mvswisstronikcli/usr/local/bin/swisstronikcli
MacOS
Please ensure, that you have installed the appropriate binary.
Rename extracted binary to swisstronikcli using one of following commands:
mvswisstronikcli-macos-amd64swisstronikcli# For MacOS with Intel chip
mvswisstronikcli-macos-arm64swisstronikcli# For MacOS with M1 chip
Then make it executable:
chmod+xswisstronikcli
Now you can check if everything went fine using the following:
./swisstronikcli
MacOS may report that it is unable to checkswisstronikcli:
To resolve this, click on swisstronikcli file and open the context menu. Select "Open", and MacOS will prompt you whether you want to open this file. Click "Open", after that MacOS will no longer attempt to check this file.
The command above will output a list of accessible commands and flags:
Usage:
swisstronikcli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
config Create or query an application CLI configuration file
debug Commands for debug
help Help about any command
keys Manage your application's keys
query Querying subcommands
status Query remote node for status
tx Transactions subcommands
Flags:
-b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) (default "sync")
--chain-id string Specify Chain ID for sending Tx (default "swisstronik")
--fees string Fees to pay along with transaction; eg: 10uswtr
--from string Name or address of private key with which to sign
--gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1)
--gas-prices string Gas prices to determine the transaction fee (e.g. 10uswtr)
-h, --help help for swisstronikcli
--home string directory for config and data (default "/Users/voldyrvovka/.swisstronik")
--keyring-backend string Select keyring's backend (default "test")
--log_format string The logging format (json|plain) (default "plain")
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
--node string <host>:<port> to tendermint rpc interface for this chain (default "tcp://localhost:26657")
--trace print out full stack trace on errors
Use "swisstronikcli [command] --help" for more information about a command.
OPTIONAL: To make swisstronikcli accessible anywhere, use the following command:
mvswisstronikcli/usr/local/bin/swisstronikcli
Windows
Native
After extraction, you should find swisstronikcli-windows file. You can use it by running the following command in the directory containing this file:
./swisstronikcli-windows
You should see output with list of commands and flags
OPTIONAL: To make swisstronikcli accessible anywhere, use the following command in the Powershell terminal within the directory containing swisstronikcli-windows: