Changeset View
Changeset View
Standalone View
Standalone View
docs/api/user-manual.rst
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | |||||
deposit: | deposit: | ||||
.. code:: console | .. code:: console | ||||
(deposit)$ ls | (deposit)$ ls | ||||
belenios-1.12.zip metadata.xml deposit | belenios-1.12.zip metadata.xml deposit | ||||
(deposit)$ swh deposit upload --username <name> --password <secret> \ | (deposit)$ swh deposit upload --username <name> --password <secret> \ | ||||
--url https://deposit.staging.swh.network/1 \ | --url https://deposit.staging.swh.network/1 \ | ||||
--slug belenios-01243065 \ | --create-origin http://has.archives-ouvertes.fr/test-01243065 \ | ||||
--archive belenios.zip \ | --archive belenios.zip \ | ||||
--metadata metadata.xml \ | --metadata metadata.xml \ | ||||
--format json | jq | --format json | jq | ||||
{ | { | ||||
'deposit_status': 'deposited', | 'deposit_status': 'deposited', | ||||
'deposit_id': '1', | 'deposit_id': '1', | ||||
'deposit_date': 'Oct. 28, 2020, 1:52 p.m.', | 'deposit_date': 'Oct. 28, 2020, 1:52 p.m.', | ||||
'deposit_status_detail': None | 'deposit_status_detail': None | ||||
▲ Show 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | .. code:: console | ||||
$ swh deposit upload --username name --password secret \ | $ swh deposit upload --username name --password secret \ | ||||
--deposit-id 11 \ | --deposit-id 11 \ | ||||
--archive updated-je-suis-gpl.tgz \ | --archive updated-je-suis-gpl.tgz \ | ||||
--replace | --replace | ||||
* Update a loaded deposit with a new version (this creates a new deposit): | * Update a loaded deposit with a new version (this creates a new deposit): | ||||
- by using the external-id with the ``--slug`` argument, you will | - by using ``--add-to-origin`` with an origin URL previously created with | ||||
link the new deposit with its parent deposit: | ``--create-origin``, you will link the new deposit with its parent deposit: | ||||
.. code:: console | .. code:: console | ||||
$ swh deposit upload --username name --password secret \ | $ swh deposit upload --username name --password secret \ | ||||
--archive je-suis-gpl-v2.tgz \ | --archive je-suis-gpl-v2.tgz \ | ||||
--slug 'je-suis-gpl' | --add-to-origin 'http://example.org/je-suis-gpl' | ||||
Check the deposit's status | Check the deposit's status | ||||
-------------------------- | -------------------------- | ||||
You can check the status of the deposit by using the ``--deposit-id`` argument: | You can check the status of the deposit by using the ``--deposit-id`` argument: | ||||
.. code:: console | .. code:: console | ||||
Show All 38 Lines |