To upload a file to this repository, use curl
:
curl --verbose \
--header "Authorization: Bearer {token}" \
--form "download=@{path-to-file}" \
--form "signature=@{path-to-signature-file}" \
--form "name={name-of-download}" \
--form "version={version-of-download}" \
--form "variant={variant}" \
--form "description={short-description-of-download}" \
--form "readme=<{filename-of-readme-file}" \
--form "home={homepage}" \
--form "maintainer_name={maintainer-name}" \
--form "maintainer_email={maintainer-email}" \
--form "copyright={copyright-summary}" \
--form "license_summary={license-summary}" \
--form "license=<{filename-of-license-file}" \
https://xp.baltorepo.com/xp-runners/distribution/upload/
Arguments
Argument |
Explanation |
Example |
--header Authorization...
Optional
|
Supply an authentication token. Either a token or a username/password is required. |
--header "Authorization: Bearer a57f0fe6658b72145f4a9b59c5c90bf46e2f09bc" |
--user
Optional
|
Your username and password separated by a colon. Either a username/password or a token is required. |
--user "larry:correcthorse" |
--form download=...
Mandatory
|
Upload the file as a multipart/form-data file. |
--form "download=@foobar-source-1.0.tar.gz" |
--form signature=...
Optional
|
Upload a signature of the file as a multipart/form-data file. |
--form "signature=@foobar-source-1.0.tar.gz.asc" |
--form name=...
Mandatory
|
The name of the download. |
--form "name=foobar-source" |
--form version=...
Mandatory
|
The version of the file. |
--form "version=1.0" |
--form variant=...
Optional
|
The variant of the file- typically used to indicate the target architecture but can be used for other purposes. Defaults to "all". |
--form "variant=amd64" |
--form description=...
Optional
|
A one-line description of the download. |
--form "description=Source of foobar library." |
--form readme=...
Optional
|
Supply Markdown text to show on the download web page. Upload as text, not a file upload.
(Use < with curl; see example.)
|
--form "readme=<README.md" |
--form home=...
Optional
|
URL of home page of this file. |
--form "home=https://github.com/x/y" |
--form maintainer_name=...
Optional
|
Name of file maintainer. |
--form "maintainer_name=Larry" |
--form maintainer_email=...
Optional
|
Email of file maintainer |
--form "maintainer_email=larry@example.com" |
--form copyright=...
Optional
|
One-line copyright statement. |
--form "copyright=© 2021 Larry" |
--form license_summary=...
Optional
|
One-line summary of license. |
--form "license_summary=MIT" |
--form license=...
Optional
|
Full license text. Upload as text, not a file upload.
(Use < with curl; see example.) |
--form "license=<LICENSE" |