pipeline sync
Overview
Synchronize your local pipeline to Quix Cloud
Aliases: sync
, deploy
Usage:
Options:
--workspace-id <workspace-id>
: Select a concrete workspace-id to sync to--directory <directory>
: Base directory (defaults to current directory)-u, --update
: Update 'quix.yaml' with the new local applications and update the variables of the existing deployments-k, --keep-variables
: Keep the locally deleted variables-p, --push
: Push the current changes to your repository-m, --commit-message <commit-message>
: The message used for the commit if using '--push'
How It Works
When you execute this command, it synchronizes your local pipeline to Quix Cloud. The command checks for any commits that exist locally but not remotely, remotely but not locally, and any differences in content between the branches.
If your local repository is in sync with the remote, the command will:
- Add Files: Stages all the changes in your local repository.
- Commit Changes: Commits the staged changes to the local repository.
- Push to Remote: Pushes the committed changes to the remote repository.
- Sync Environment: Synchronizes your environment in Quix Cloud.
Warning
You need to be logged in to Quix Cloud for the environment sync to happen.
Example usage
Basic Synchronization
To synchronize your local pipeline to Quix Cloud without any additional options, use:
Tip
Using the --update
option will perform the same actions as running quix pipeline update
before syncing.
This command stages all changes in your local repository:
Then, it commits the staged changes:
Add a Commit Message
Use the --commit-message
option to include a meaningful commit message, making it easier to track changes:
Finally, after it pushes the committed changes to the remote repository:
Tip
If you see the message:
- Your local branch has commits not yet pushed to the remote.
- The remote branch has commits not yet pulled into your local repository.
- There are uncommitted changes in your local files that differ from the remote.
This indicates that your local and remote repositories are not aligned. You need to manually push your local changes to the remote to synchronize them.