1 The blobcli tool has several options that are listed by using the -h command
2 however the three operating modes are covered in more detail here:
7 This is the default and will just execute one command at a time. It's simple
8 but the downside is that if you are going to interact quite a bit with the
9 blobstore, the startup time for the application can be cumbersome.
14 You startup shell mode by using the -S command. At that point you will get
15 a "blob>" prompt where you can enter any of the commands, including -h,
16 to execute them. You can stil enter just one at a time but the initial
17 startup time for the application will not get in the way between commands
18 anymore so it is much more usable.
20 Script (aka test) Mode
21 ----------------------
23 In script mode you just supply one command with a filename when you start
24 the cli, for example `blobcli -T test.bs` will feed the tool the file
25 called test.bs which contains a series of commands that will all run
26 automatically and, like shell mode, will only initialize one time so is
29 The script file format (example) is shown below. Comments are allowed and
30 each line should contain one valid command (and its parameters) only. In
31 order to operate on blobs via their ID value, use the token $Bn where n
32 represents the instance of the blob created in the script.
34 For example, the line `-s $B0` will operate on the blobid of the first
35 blob created in the script (0 index based). `$B2` represents the third
36 blob created in the script.
38 If you start test mode with the additional "ignore" option, any invalid
39 script lines will simply be skipped, otherwise the tool will exit if
40 it runs into an invalid line (ie './blobcli -T test.bs ignore`).