saker.nest Documentation TaskDoc JavaDoc Packages
  1. saker.nest
  2. User guide
  3. Command line reference
  4. server
  5. upload

upload

server upload [@command-file] [parameters] file

Uploads a single bundle to the specified saker.nest repository.

@command-file
@command-file

File path prefixed with '@' to directly include arguments from the specified file. Each argument is on its separate line. They are directly inserted in place of the @command-file argument. The argument can appear anywhere on the command line. Escaping is not supported for arguments in the command file. The file path may be absolute or relative.

E.g: @path/to/arguments.txt

-server
-server <string>

The URL of the server to which the upload should be performed.

It is https://api.nest.saker.build by default.

-overwrite
-overwrite

Flag specifying that the already existing bundles can be overwritten.

If not set, the server will decide whether or not the bundles may be overwritten.

-api-key
-api-key <base64>
Required parameter.

Specifies the API Key to be used for the upload request.

The argument is expected to be in URL safe Base64 format.

-api-secret
-api-secret <base64>
Required parameter.

Specifies the API Secret to be used for the upload request.

The argument is expected to be in URL safe Base64 format.

file
<file-path>
Required parameter. Positional parameter.

Path to the bundle to upload.

The specified Java archive should be a valid saker.nest bundle. If not, an exception is thrown before the upload request is initiated.