---
title: "Simplify CI/CD workflows with Cloudsmith’s new CLI GitHub Action 🚀"
description: ""
canonical_url: "https://cloudsmith.com/changelog/simplify-cicd-workflows-with-cloudsmiths-new-cli-github-action"
last_updated: "2024-08-30T19:21:00.000Z"
---
# Simplify CI/CD workflows with Cloudsmith’s new CLI GitHub Action 🚀

The new Cloudsmith command-line interface (CLI) GitHub Action is now available! This action simplifies your CI/CD workflows by automating the Cloudsmith CLI's setup and authentication process. With support for pre-authenticating with OpenID Connect (OIDC), you can securely authenticate without the need to manage API keys.

## Key benefits

- **Easy installation and seamless integration** **🌟:** Quickly set up the Cloudsmith CLI in your workflows.
- **More automation, less code 🙌** : No more manual installations or complex setup processes. Add the action to your workflow, and the CLI will be ready to use.
- **Secure OIDC authentication** 🛡: Authenticate without managing long-lived API keys.
- **Flexible API Key support:** Use API keys if preferred or required for your use case.
- **Customizable inputs:** You can customize key inputs, such as the CLI version, OIDC namespace, service slug, and more. This level of customization ensures that the action fits seamlessly into your existing workflows.

## Example Usage

**Using OIDC for Authentication**

```json
{
  "_key": "8cff63aea978",
  "_type": "code",
  "code": "name: Install Cloudsmith CLI with OIDC\non: [push]\npermissions:\n  id-token: write\njobs:\n  install-cloudsmith-cli:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n      - name: Install Cloudsmith CLI\n        uses: cloudsmith-io/cloudsmith-cli-action@v1.0.0\n        with:\n          oidc-namespace: 'your-oidc-namespace'\n          oidc-service-slug: 'your-service-account-slug'\n      - name: Verify Cloudsmith CLI Installation\n        run: |\n          cloudsmith --version",
  "filename": null,
  "language": "yaml",
  "markDefs": null
}
```

To get started, check out [Cloudsmith's CLI GitHub repository](https://github.com/cloudsmith-io/cloudsmith-cli-action) and integrate the action into a new or existing workflow.

Our blog post, [Announcing the Release of the Cloudsmith CLI Github Action](https://cloudsmith.ghost.io/announcing-the-release-of-cloudsmith-cli-github-action/), goes into more detail.

Happy automating! 🚀
