Coder Social home page Coder Social logo

camunda-community-hub / zbctl-snap Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 143 KB

Snap package of zbctl (the command-line client for Camunda Platform 8) allowing easy installation and automatic updates on Linux.

Home Page: https://snapcraft.io/zbctl

License: Apache License 2.0

Shell 74.16% Makefile 25.84%
camunda-cloud-cli camunda-cloud-client zeebe zeebe-client zeebe-worker zeebe-tool cloud cli cli-app cli-application

zbctl-snap's Introduction

Community Extension Compatible with: Camunda Platform 8

zbctl via Snap

zbctl zbctl

Zeebe CLI via Snap.

This is a Snap package of zbctl (the command-line client for Camunda Platform 8).

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.

Screenshot showing zbctl in the Ubuntu Software 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

Get it from the Snap Store

snap install zbctl

Updating

snap refresh zbctl

Testing alpha releases

snap install zbctl --channel=beta

Usage

Official zbctl documentation

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 status

Usage:
  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 zbctl

Flags:
      --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 using gh.
    2. Update the package version in snap/snapcraft.yaml to match the Zeebe release version.
    3. Update the source-checksum with the value of the camunda-zeebe-*.tar.gz.sha1sum file from the Zeebe release page.
  2. Test locally
    1. Build the package locally by running snapcraft.
    2. Test the installation using snap install zbctl_*_amd64.snap --dangerous
  3. Push to GitHub.
  4. Once a pull request is merged to the main branch, Snapcraft will automatically build the package and publish it to the edge channel.
  5. From there it can be installed and tested using:
    snap refresh zbctl --channel=edge
    zbctl version
    zbctl status
  6. @falko promotes the package to the stable channel on the Snap Store after the build has finished.

zbctl-snap's People

Contributors

falko avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

falko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.