skip to navigation
skip to content

Not Logged In

tagcube-cli 0.1.4

CLI to launch web application security scans usingTagCube's REST API

Latest Version: 1.0.7

TagCube’s CLI tool

Launch web application security scans using TagCube’s REST API, commonly used in continuous delivery scripts.


The easiest way to start a new scan is to call tagcube-cli with the target URL as parameter:

$ export
$ export TAGCUBE_API_KEY=`cat key.txt`
$ tagcube-cli
Web application scan for "" successfully started at TagCube cloud.

This will create the new domain resource in TagCube’s REST API and start a new scan using these defaults:

  • Bootstrap paths: /
  • Web application scan profile: full_audit

When the scan has finished an email will be sent to the user’s email address.

Important: depending on TagCube’s license quotas and privileges you might need to use the REST API or Web application to create and verify the ownership of the target domain before running the first scan against it.

Advanced usage

Run a scan to, notify the REST API username email address when it finishes

$ tagcube-cli

Run a scan with a custom profile, enabling verbose mode and notifying a different email address when the scan finishes

$ tagcube-cli \
              --scan-profile=fast_scan -v

Provide TagCube’s REST API credentials as command line arguments. Read the documentation to find how to provide REST API credentials using environment variables or the .tagcube file

$ tagcube-cli \

Verify that the configured credentials are working

$ tagcube-cli --auth-test

Configuration file

It is always a good idea to avoid hardcoded credentials in source code and deploy scripts. This tool can get the credentials from a YAML file in the current directory or the user’s home. The filename should be named .tagcube and have the following format:

    email: ...
    api_key: ...

Once the file is in place, the tool can be run:

$ tagcube-cli --auth-test
Successfully authenticated against TagCube's API.

Configuration through environment variables

Another way to provide tagcube-cli with the REST API credentials is to set the TAGCUBE_EMAIL and TAGCUBE_API_KEY environment variables. These are convenient to avoid hard-coding credentials in scripts or source code.

Integration with continuous delivery

Adding security to your continuous delivery process is trivial using TagCube, we recommend adding these two lines after the code is pushed to the servers:

pip install --upgrade tagcube-cli

While in most cases its recommend to be specific about the version of any external package installed using pip, we recommend a more relaxed installation process for tagcube-cli which allows us to frequently push upgrades to our customers.

More info

A more detailed documentation which includes tutorials and example usages can be found at TagCube’s site

Reporting bugs

Report your issues and feature requests in tagcube-cli’s issue tracker and we’ll be more than glad to fix them.

Pull requests are more than welcome!

File Type Py Version Uploaded on Size
tagcube-cli-0.1.4.tar.gz (md5) Source 2014-08-21 14KB
  • Downloads (All Versions):
  • 14 downloads in the last day
  • 268 downloads in the last week
  • 1082 downloads in the last month