CLI

Using Innocuous Book with CLI command line

We not only develop the platform but also the CLI version of Innocuous book!

Just follow the few simple steps, we will teach you how to install and utilize by command line.

Let's start๐Ÿ”œ

1.Package all things related to running this program into an .exe executable file by PyInstaller

Arguments

Description

-m

run library module as a script (terminates option list)

-F

package the program into a single executable file (suitable for simpler code or only a single .py file)

python -m PyInstaller -F --add-data "/home/ubuntu/anaconda3/envs/pyinstall/lib/python3.8/site-packages/pyfiglet:./pyfiglet" innocuous.py

2. Install into the system

sudo cp code/dist/innocuous /usr/bin/

3.Install auto-complete program

sudo cp code/innocuous.sh /etc/bash_completion.d/

Usage commands

It has four commands for user to use, which are generate, trial, list and upload.

innocuous [generate trial list upload]

1. Generate config template. (Default save path[-o]: ./demo_config.json)

2. Upload model, function, config, dataset and requirements

3. Run trial (model/function)

4. list what already uploaded

Last updated

Was this helpful?