python-tuf/docs/QUICKSTART.md
Vladimir Diaz f4e2436ef5
Label steps in QUICKSTART.md
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-25 17:34:39 -05:00

951 B

Quickstart

Note: A work in progress. Only examples are given here, for now.

A full working example in four steps.

(1)

$ repo.py --init

(2)

$ repo.py --add foo.tar.gz

(3)

$ cd "repository/"
$ python -m SimpleHTTPServer 8001

(4)

$ cd "client/"
$ client.py --repo http://localhost:8001 foo.tar.gz

Create a TUF repository.

Examples:

Create a TUF repository in the current working directory. A cryptographic key is created and set for each top-level role. The Targets role does not sign for any targets nor does it delegate trust to any roles.

$ repo.py --init

Create a TUF repository at ./repository.

$ repo.py --init repository/

Create a TUF repository in the current working directory. A cryptographic key is not created nor set for each top-level role.

$ repo.py --init --bare True
$ repo.py --init --consistent_snapshots True