Command-line interface#

swh vault#

Software Heritage Vault tools.

swh vault [OPTIONS] COMMAND [ARGS]...

cook#

Runs a vault cooker for a single object (identified by a SWHID), and outputs it to the given file.

swh vault cook [OPTIONS] SWHID OUTFILE

Options

-C, --config-file <CONFIGFILE>#

Configuration file.

--bundle-type <bundle_type>#

Selects which cooker to use, when there is more than one available for the given object type.

Options:

flat | gitfast | git_bare

Arguments

SWHID#

Required argument

OUTFILE#

Required argument

rpc-serve#

Software Heritage Vault RPC server.

swh vault rpc-serve [OPTIONS]

Options

-C, --config-file <CONFIGFILE>#

Configuration file.

--host <IP>#

Host ip address to bind the server on

Default:

'0.0.0.0'

--port <PORT>#

Binding port of the server

--debug, --no-debug#

Indicates if the server should run in debug mode