Workspace Files
A workspace file is a YAML file that describes a resource in Airfold, which collectively make up the source code of your Airfold workspace.Key Features
- Version control - Push workspace files to a Git repository for version control and efficient collaboration with your team.
- Single source of truth - The workspace files in the main branch of your repository are the single source of truth for your workspace. Use
git pull
to sync your local workspace with the latest changes from the main branch. - CI / CD - Incorporate your CI workflows, run tests, use Airfold CLI’s
af push
to deploy changes to your workspace, and more. - Pull Requests - Use pull requests to review changes to your workspace before merging them into the main branch (which can trigger a CI with
af push
to deploy changes to your workspace).
File Structure
There are two types of workspace files pipes and sources. Here’s an example:Push Files to a Workspace
Using the CLI commandaf push
or /push
API.For example, you can push all files in the
pipes
directory with:
Tip
Use Git to version control your workspace files with your repository being the single source of truth for your workspace.Then usegit pull
to sync your local workspace with the latest changes from the main branch.