Skip to content
Keboola Docs

Commands

Run help to list all available commands.

kbc help

You can also get details of any command.

kbc help <command>
kbc help local create row
CommandDescription
kbc helpShow help for any command.
kbc statusShow information about a working directory.
kbc syncSynchronization between a local directory and a project.
kbc sync initInitialize a new local directory and run kbc sync pull.
kbc sync pullSync a project to the local directory.
kbc sync pushSync a local directory to the project.
kbc sync diffShow differences between a local directory and a project.
kbc ciManage the CI/CD pipeline.
kbc ci workflowsGenerate workflows for GitHub Actions integration.
kbc localOperations in the local directory don’t affect the project.
kbc local createCreate an object in the local directory.
kbc local create configCreate an empty configuration.
kbc local create rowCreate an empty configuration row.
kbc local persistDetect new directories with a configuration or a configuration row.
kbc local encryptEncrypt all unencrypted secrets.
kbc local validateValidate the local directory.
kbc local validate configValidate a configuration JSON file.
kbc local validate rowValidate a configuration row JSON file.
kbc local validate schemaValidate a configuration/row JSON file by a JSON schema file.
kbc local fix-pathsEnsure that all local paths match configured naming.
kbc remoteOperations directly in the project.
kbc remote createCreate an object in the project.
kbc remote create branchCreate a new branch from the main branch.
kbc remote create bucketCreate a new bucket.
kbc remote fileManage files in Storage.
kbc remote file downloadDownload a file from Storage.
kbc remote file uploadUpload a file to Storage.
kbc remote jobManage jobs in the project.
kbc remote job runRun one or more jobs.
kbc remote tableManage tables in the project.
kbc remote table createCreate a new table.
kbc remote table uploadUpload a CSV file to a table.
kbc remote table downloadDownload data from a table.
kbc remote table previewPreview up to 1000 rows from a table.
kbc remote table detailPrint table details.
kbc remote table importImport data to a table from a file.
kbc remote table unloadUnload a table into a file.
kbc remote workspaceManage workspaces in the project.
kbc remote workspace createCreate a workspace in the project.
kbc remote workspace deleteDelete a workspace in the project.
kbc remote workspace detailPrint workspace details and credentials.
kbc remote workspace listList workspaces in the project.
kbc dbtWork with dbt inside your repository.
kbc dbt initInitialize profiles, sources, and environment variables for use with dbt.
kbc dbt generateGenerate profiles, sources, and environment variables for use with dbt.
kbc dbt generate profileGenerate profiles for use with dbt.
kbc dbt generate sourcesGenerate sources for use with dbt.
kbc dbt generate envGenerate environment variables for use with dbt.
kbc llm (BETA)Export project data to AI-optimized format.
kbc llm initInitialize a new local directory for LLM export.
kbc llm exportExport project data to AI-optimized twin format.

The most used commands have their shorter aliases.

For example, you can use kbc c instead of kbc local create.

Full CommandAliases
kbc sync initkbc init, kbc i
kbc sync diffkbc diff, kbc d
kbc sync pullkbc pull, kbc pl
kbc sync pushkbc push, kbc ph
kbc local validatekbc validate, kbc v
kbc local persistkbc persist, kbc pt
kbc local createkbc create, kbc c
kbc local encryptkbc encrypt, kbc e

Options are a way to modify the behavior of a command, they can be:

  • Global, for all commands, see below.
  • Local, only for a specific command, see the command help.
  • Entered as part of the CLI command.
  • One-letter flags start with -, for example -v.
  • Longer flags start with --, for example --verbose.
  • Flags take precedence over environment variables.
  • Each flag can be defined via an environment variable.
  • Variable name is based on the flag name, and starts with KBC_.
  • All letters are changed to uppercase and dashes to underscores.
  • For example, flag --log-file can be defined by the KBC_LOG_FILE environment variable.
  • Sources and priority of the environment variables:
    1. From the OS environment.
    2. From environment files in the working directory.
    3. From environment files in the project directory.

All found environment files are automatically loaded.
Variables are merged together according to the following priority.

Environment FileEnvironmentPriority
.env.development.localDevelopmentThe highest
.env.test.localTest
.env.production.localProduction
.env.localWherever the file is
.env.developmentDevelopment
.env.testTest
.env.productionProduction
.envAllThe lowest

Note: All .*local environment files should be part of the .gitignore file, if used.

-h, --help : Show help for the command

-l, --log-file <string> : Path to a log file to store the details in

-t, --storage-api-token <string> : Storage API token to the project

-v, --verbose : Increase output verbosity

--verbose-api : Log each API request and its response

-V, --version : Show the version

-d, --working-dir <string> : Use another working directory

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.