Manage Workspaces with Rudder CLI Alpha

Manage your workspaces with Rudder CLI to streamline your development and production workflows.
Available Plans
  • free
  • starter
  • growth
  • enterprise

This page explains how workspace management works with Rudder CLI and how you can use import metadata to streamline your development and production workflows.

Overview

When you run the import workspace command, the generated YAML files contain special import metadata that tells Rudder CLI how to link local resources to workspace resources.

This metadata also includes workspace_id, the ID of the workspace where resources were imported from. This means that if you import resources from a development workspace, you can apply the same project to a production workspace and have the resources treated as new resources to be created rather than imported.

success
This feature allows you to experiment with new resources in a development workspace and then promote them to a production workspace.

Streamline import process with production deployment

For production environments, you can streamline the import and deployment process by integrating Rudder CLI with your CI/CD pipeline. This approach allows you to import resources once and then have your automated pipeline handle subsequent deployments.

Workflow

  1. Import resources: Run the import workspace command to generate YAML files from your workspace resources.
  2. Organize files: Place the imported files in the correct locations within your project structure.
  3. Commit to version control: Commit the organized YAML files to your repository.
  4. Automated deployment: Your CI/CD pipeline automatically applies changes using the rudder-cli apply command.

CI/CD integration prerequisites

To apply changes automatically, your CI/CD pipeline must use a workspace-level Service Access Token in the RudderStack dashboard with the following permissions to manage Data Catalog and Tracking Plans:

ResourcePermissions
Tracking PlansEdit
Data CatalogEdit
warning

RudderStack recommends using a workspace-level Service Access Token for authentication.

Any action authenticated by a Personal Access Token will break if the user is removed from the organization or a breaking change is made to their permissions.

Token permissions for legacy RBAC system

If you are on the legacy Permissions Management (RBAC) system, your workspace-level Service Access Token should have minimum Editor permissions.

See this documentation for more information on generating the token.

workspace-level Service Access Token with Editor permission

Benefits

  • Automated deployments: Changes are applied automatically through your CI/CD pipeline.
  • Version control: All resource changes are tracked in Git.
  • Consistency: You can ensure the same resources are deployed across different environments.
  • Rollback capability: Any changes are easy to revert by leveraging Git history.

Questions? We're here to help.

Join the RudderStack Slack community or email us for support