https://github.com/camunda-community-hub/zbctl-snap
Snap package of zbctl (the command-line client for Camunda Platform 8) allowing easy installation and automatic updates on Linux.
https://github.com/camunda-community-hub/zbctl-snap
autoupdate camunda camunda-cloud-cli camunda-cloud-client camunda-platform-8 cli cli-app cli-application cloud installation zeebe zeebe-client zeebe-tool zeebe-worker
Last synced: 6 months ago
JSON representation
Snap package of zbctl (the command-line client for Camunda Platform 8) allowing easy installation and automatic updates on Linux.
- Host: GitHub
- URL: https://github.com/camunda-community-hub/zbctl-snap
- Owner: camunda-community-hub
- License: apache-2.0
- Created: 2022-02-12T18:37:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T15:10:10.000Z (8 months ago)
- Last Synced: 2024-09-17T18:28:20.121Z (8 months ago)
- Topics: autoupdate, camunda, camunda-cloud-cli, camunda-cloud-client, camunda-platform-8, cli, cli-app, cli-application, cloud, installation, zeebe, zeebe-client, zeebe-tool, zeebe-worker
- Language: Shell
- Homepage: https://snapcraft.io/zbctl
- Size: 120 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.MD
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.MD
Awesome Lists containing this project
README
[](https://github.com/camunda-community-hub/community)

[](https://github.com/Camunda-Community-Hub/community/blob/main/extension-lifecycle.md#incubating-)# zbctl via Snap
[](https://snapcraft.io/zbctl)
[](https://snapcraft.io/zbctl)Zeebe CLI via [Snap](https://snapcraft.io/).
This is a [Snap](https://snapcraft.io/about) package of
[zbctl](https://docs.camunda.io/docs/apis-clients/cli-client/index/) (the command-line client for [Camunda Platform 8](https://camunda.com)).With this you can easily install zbctl on Linux and keep it up to date through the automatic updater of your distro. The package also shows up if you search for 'Camunda' or 'Zeebe' in your package manager, e.g. 'Ubuntu Software' desktop app.

The snap build is based the official zbctl binaries from the GitHub release page. However, the fully automated build infrastructure provided for free by Snapcraft would also allow cross compilation to currently unsupported CPU architectures. For such a multi-platform build one would have to build from the go sources. The next tools to package like this would be Camunda Modeler and zdb.
## Installation
[](https://snapcraft.io/zbctl)
```sh
snap install zbctl
```## Updating
```sh
snap refresh zbctl
```## Testing alpha releases
```sh
snap install zbctl --channel=beta
```## Usage
[Official zbctl documentation](https://docs.camunda.io/docs/apis-clients/cli-client/index/)
```
zbctl [options] [command]
``````
zbctl is a command line interface for Camunda Platform 8 designed to create and read resources inside a Zeebe broker.
It can be used for regular development and maintenance tasks such as:
* Deploying processes
* Creating process instances and job workers
* Activating, completing, or failing jobs
* Updating variables and retries
* Viewing cluster statusUsage:
zbctl [command]Available Commands:
activate Activate a resource
cancel Cancel resource
complete Complete a resource
create Create resources
deploy Creates new workflow defined by provided BPMN or YAML file as workflowPath
fail Fail a resource
generate Generate documentation
help Help about any command
publish Publish a message
resolve Resolve a resource
set Set a resource
status Checks the current status of the cluster
update Update a resource
version Print the version of zbctlFlags:
--address string Specify a contact point address. If omitted, will read from the environment variable 'ZEEBE_ADDRESS' (default '127.0.0.1:26500')
--audience string Specify the resource that the access token should be valid for. If omitted, will read from the environment variable 'ZEEBE_TOKEN_AUDIENCE'
--authzUrl string Specify an authorization server URL from which to request an access token. If omitted, will read from the environment variable 'ZEEBE_AUTHORIZATION_SERVER_URL' (default "https://login.cloud.camunda.io/oauth/token/")
--certPath string Specify a path to a certificate with which to validate gateway requests. If omitted, will read from the environment variable 'ZEEBE_CA_CERTIFICATE_PATH'
--clientCache string Specify the path to use for the OAuth credentials cache. If omitted, will read from the environment variable 'ZEEBE_CLIENT_CONFIG_PATH' (default "/Users/sitapati/.camunda/credentials")
--clientId string Specify a client identifier to request an access token. If omitted, will read from the environment variable 'ZEEBE_CLIENT_ID'
--clientSecret string Specify a client secret to request an access token. If omitted, will read from the environment variable 'ZEEBE_CLIENT_SECRET'
-h, --help help for zbctl
--insecure Specify if zbctl should use an unsecured connection. If omitted, will read from the environment variable 'ZEEBE_INSECURE_CONNECTION'Use "zbctl [command] --help" for more information about a command.
```## Updating the Snap package
If you want to submit a PR to update the package with a newer version of `zbctl`, you need to:
1. Run `./update.sh` which will:
1. Fetch that latest Zeebe version number from the [Zeebe release page](https://github.com/camunda/camunda/releases) using `gh`.
1. Update the package version in `snap/snapcraft.yaml` to match the Zeebe release version.
1. Update the `source-checksum` with the value of the `camunda-zeebe-*.tar.gz.sha1sum` file from the [Zeebe release page](https://github.com/camunda/camunda/releases).
1. Test locally
1. Build the package locally by running `snapcraft`.
1. Test the installation using `snap install zbctl_*_amd64.snap --dangerous`
1. Push to GitHub.
1. Once a pull request is merged to the main branch, Snapcraft will automatically build the package and publish it to the `edge` channel.
1. From there it can be installed and tested using:
```sh
snap refresh zbctl --channel=edge
zbctl version
zbctl status
```
1. @falko promotes the package to the `stable` channel on the [Snap Store](https://snapcraft.io/zbctl/releases) after the [build](https://snapcraft.io/zbctl/builds) has finished.