Skip to content

SCONE CLI

We maintain a single unified command line interface (CLI) scone that helps to to start and stop secure containers as well as secure applications. scone also provides functionality to install and monitor SCONE hosts.

Use of docker CLI

In many cases you can just use the docker CLI to run SCONE containers. This is particularly useful if you want to run some SCONE containers on your local machine. This removes, for example, the need to setup ssh.

The scone command is structured similar as the docker CLI or the infinit CLI:

SCONE CLI

One needs to specify an object (like host) and a command (like install) and some options. For some commands, some of the options are actually not optional but mandatory.

You need to have access to SCONE container images

You require permissions to be able to run the examples given in this section: please send an email with your free Docker ID to info@scontain.com.

To use the scone CLI, you need to start it in a container. Assuming that you have a docker engine installed, you try the following examples by running the following container:

> docker run -it  sconecuratedimages/sconecli

Help

scone has a built in help. To get a list of all objects, just type:

$ scone --help

To get a list of all commands for a given object (like host), execute:

$ scone host --help

To get a list of all options for a given object and command (e.g., host install) and some examples, just execute:

$ scone host install --help

bash auto-completion

If you are using bash as your shell, scone supports auto-completion. This means that instead you can use the TAB key to see the options. For example,

$ scone <TAB>

will show all available objects. If you have already specified an object, auto-completion helps you to list all commands:

$ scone host <TAB>

If you also specified an command, it will provide you with a list of options (that you have not specified yet):

$ scone host install <TAB>

Of course, it also supports auto-completion:

$ scone host install -n<TAB>

will result in

$ scone host install -name

© scontain.com, November 2017. Questions or Suggestions?