Initialize a new local directory and run the first pull.
kbc sync init [flags]
Or shorter:
kbc init [flags]
kbc i [flags]
The command must be run in an empty directory.
If the command is run without options, it will start an interactive dialog asking for:
connection.keboola.com
.It will allow you to create GitHub Actions workflows in the directory.
--allow-target-env
KBC_PROJECT_ID
and KBC_BRANCH_ID
environment variables for future operations.true
to the allowTargetEnv
field in the manifest.json.-b, --branches <string>
--ci-main-branch <string>
--ci-pull <bool>
--ci-push <bool>
--ci-validate <bool>
-H, --storage-api-host <string>
➜ kbc init
Please enter the Keboola Storage API host, e.g., "connection.keboola.com".
? API host connection.north-europe.azure.keboola.com
Please enter the Keboola Storage API token. Its value will be hidden.
? API token ***************************************************
Please select which project's branches you want to use with this CLI.
The other branches will still exist, but they will be invisible in the CLI.
? Allowed project's branches: only main branch
Created metadata directory ".keboola".
Created manifest file ".keboola/manifest.json".
Created file ".env.local" - it contains the API token, keep it local and secret.
Created file ".env.dist" - an ".env.local" template.
Created file ".gitignore" - to keep ".env.local" local.
? Generate workflows files for GitHub Actions? No
Init done. Running pull.
Plan for "pull" operation:
+ B main
+ C main/extractor/ex-generic-v2/empty
+ C main/extractor/keboola.ex-aws-s3/my-aws-s-3-data-source
+ R main/extractor/keboola.ex-aws-s3/my-aws-s-3-data-source/rows/share-cities
+ C main/extractor/keboola.ex-google-drive/my-google-drive-data-source
+ C main/extractor/keboola.ex-google-drive/my-google-drive-data-source/schedules/scheduler-for-7243915
+ C main/other/keboola.orchestrator/daily
+ C main/other/keboola.orchestrator/daily/schedules/scheduler-for-7243915
+ C main/other/keboola.sandboxes/address
+ C main/transformation/keboola.snowflake-transformation/address
+ C main/transformation/keboola.snowflake-transformation/address/variables
+ R main/transformation/keboola.snowflake-transformation/address/variables/values/default
Pull done.