mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
951 B
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