Manage your workspaces with Rudder CLI to streamline your development and production workflows.
Available Plans
free
starter
growth
enterprise
2 minute read
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.
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
Import resources: Run the import workspace command to generate YAML files from your workspace resources.
Organize files: Place the imported files in the correct locations within your project structure.
Commit to version control: Commit the organized YAML files to your repository.
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:
Resource
Permissions
Tracking Plans
Edit
Data Catalog
Edit
For testing or development purposes only: Generate a Personal Access Token with Read-Write role
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.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.