Skip to main content

Available commands

Login

Uploading a click package requires the developer to submit an oauth signed request. For this, click-toolbelt needs to first obtain an oauth token. In order to do so, the user can run the following (note: be sure to prepend the command with a space so that your command history doesn’t save the sensitive command).

$   click-toolbelt login <email> <password> [otp]

On successful execution this command will store the oauth credentials in $HOME/.config/click-toolbelt/click.cfg and will use it during the upload step.

Upload

Once the user is successfully logged in, he can then upload the click package. In order to do so, the user can run

$ click-toolbelt upload <binary_file> [--metadata <metadata_file>]

For this command to be successful, certain criteria must be met:

  • user must be logged in already (see Login)

  • the binary file must be a valid click package

  • user owns the application for which he’s uploading the click package (if the application already exists)

The metadata_file parameter should refer to a file containing a json document. If this file is provided, it will be used to extract extra information not provided in the click package’s manifest.

When uploading the initial package, the following fields might be extracted from the metadata_file:

  • tagline: A one line summary for the app

  • department: The app’s category name (see Department)

  • channel: The upload target channel name (see Channel). If omitted, ‘stable’ is assumed.

  • support_url: A URL users can go to for support for this application. Allows http(s): and mailto: schemes

  • license: The license under which the app will be released (see License)

  • icon_256 (or icon): The path to a local file to be uploaded as the icon for the application; the icon must be 256x256 px in size

  • name: Application name (overrides what’s defined in the click package manifest)

  • description: Application description (overrides what’s defined in the click package manifest)

  • changelog: A description of the changes included since the last upload

  • screenshots: A list of paths to local files to be uploaded as screenshots for the application

  • blacklist_ids: A list of country codes to prevent the application from being distributed to (see Country)

  • whitelist_ids: A list of country codes to limit the application being distributed to (see Country)

  • auto_publish: Automatically submit for review

  • reviewer_notes: Notes for reviewers to use when reviewing the app’s submission

For a new version upload, the metadata_file file will only be scanned for the following fields:

  • channel: The upload target channel name (see Channel). If omitted, ‘stable’ is assumed.

  • changelog: A description of the changes included since the last upload

Info

The info command will return metadata about the current available API. To retrieve this data, the user can run the following command:

$ click-toolbelt info

This will show all available information about the API. Alternative, the user can retrieve only a subset of the data.

Get the current API version

$ click-toolbelt info version

Get the list of valid license values

$ click-toolbelt info license

Get the list of valid countries

$ click-toolbelt info country

Get the list of valid channels

$ click-toolbelt info channel

Get the list of valid departments

$ click-toolbelt info department

Data values

Department

Valid values can be obtained via the info command (or it’s equivalent api call).

Examples

  • “Accessories”

  • “Games”

  • “Card Games”

License

Valid values can be obtained via the info command (or it’s equivalent api call).

Examples

  • “Proprietary”

  • “GNU GPL v3”

  • “BSD License (Simplified)”

Country

Valid values can be obtained via the info command (or it’s equivalent api call).

Examples

  • “AR” (Argentina)

  • “BR” (Brazil)

  • “GB” (United Kingdom)

  • “US” (United States)

  • “UY” (Uruguay)

Channel

Valid values can be obtained via the info command (or it’s equivalent api call).

Examples

  • “stable”

  • “proposed”

  • “alpha”

Metadata

Release files for click-toolbelt 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for click-toolbelt 0.5.1
File Size Uploaded
click-toolbelt-0.5.1.tar.gz 32.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for click-toolbelt 0.5.1
File Interpreter ABI Platform
click_toolbelt-0.5.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 141.0 kB

Release files / click-toolbelt-0.5.1.tar.gz

Download URL click-toolbelt-0.5.1.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
756c8c14d686c235910d3b9b84c30c3e1a9b2b8832fe4e7e56a6110c669036d3
BLAKE2b-256 checksum
How to use checksums
d9079205bf0db7ad543eadbc0b8c974514eb9ea8f0510d4c057e8e820541d58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / click_toolbelt-0.5.1-py2.py3-none-any.whl

Download URL click_toolbelt-0.5.1-py2.py3-none-any.whl
Size 108.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3eb82c71d64d410e48f4b722b5cbe78e89b7664d23612b0180b99c1497ce3299
BLAKE2b-256 checksum
How to use checksums
4480c964de2a75c35b6602c4bc34edd08c886908d7fb76e85df9f54e3fc96e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.5

1 release file

0.3.3

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page