```
$ cat deposit-swh-metadata-only-xml
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:codemeta="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0"
xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit">
<author>
<name>swh</name>
<email>info@swh.org</email>
</author>
<codemeta:author>
<codemeta:name>ardumont</codemeta:name>
</codemeta:author>
<codemeta:name>Metadata only deposit tryout</codemeta:name>
<codemeta:description>tryout</codemeta:description>
<codemeta:dateCreated>2020-12-15</codemeta:dateCreated>
<codemeta:datePublished>2020-12-15</codemeta:datePublished>
<codemeta:license>
<codemeta:name>GNU General Public License v3.0 only</codemeta:name>
</codemeta:license>
<codemeta:url>https://forge.softwaerheritage.org/source/swh-deposit</codemeta:url>
<codemeta:applicationCategory>test</codemeta:applicationCategory>
<codemeta:programmingLanguage>python</codemeta:programmingLanguage>
<codemeta:operatingSystem>linux</codemeta:operatingSystem>
<codemeta:version>1</codemeta:version>
<codemeta:softwareVersion>0.0.1</codemeta:softwareVersion>
<swh:deposit>
<swh:reference>
<swh:object swhid="swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb" />
</swh:reference>
</swh:deposit>
</entry>
$ swh deposit metadata-only --username swh --password $PASS \
--url https://deposit.staging.swh.network \
--metadata ../deposit-swh.metadata-only.xml
INFO:swh.deposit.cli.client:{'deposit_id': '28', 'deposit_status': 'done', 'deposit_date': 'Dec. 15, 2020, 11:19 a.m.'}
$ swh deposit metadata-only --username swh --password $PASS \
--url https://deposit.staging.swh.network \
--metadata ../deposit-swh.metadata-only.xml \
--format json | jq .
{
"deposit_id": "29"35",
"deposit_status": "done",
"deposit_date": "Dec. 15, 2020, 11:37 a.m."
}
$ swh deposit status --url https://deposit.staging.swh.network \
--username swh \
--password $PASS \
--deposit-id 35 --format json | jq .
{
"deposit_id": "35",
"deposit_status": "done",
"deposit_status_detail": "The deposit has been successfully loaded into the Software Heritage archive",
"deposit_swh_id": "swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb",
"deposit_swh_id_context": "swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb",
"deposit_external_id": null
}
```
Related to T2886