Skip to main content

init

inctl bazel init

Initialize a Bazel workspace

Synopsis

Initialize a Bazel workspace for use with the Intrinsic SDK.

inctl bazel init [flags]

Examples

Initialize a Bazel workspace in the current working directory using the given SDK repository:
$ inctl bazel init --sdk_repository=https://github.com/intrinsic-ai/sdk.git

Initialize a Bazel workspace in the folder "/src/skill_workspace":
$ inctl bazel init --workspace_root /src/skill_workspace --sdk_repository=<repo url>

Override only the .bazelrc file in already existing workspace
$ inctl bazel init --sdk_repository=<repo url> --bazelrc-only --override

Options

      --bazelrc_only            If set, only the .bazelrc file will be generated.
--dry_run (optional) If set, no files will be created or modified.
-h, --help help for init
--override If set, existing workspace files will be overridden.
--sdk_repository string Git repository from which to fetch the Intrinsic SDK. (default "https://github.com/intrinsic-ai/sdk.git")
--sdk_version string (optional) The Intrinsic SDK version on which the new Bazel workspace should be pinned, e.g., "intrinsic.platform.20221231.RC00". If set to "latest", the Bazel workspace will not be pinned to a fixed version of the Intrinsic SDK but instead always depend on the newest version available in the SDK repository (see --sdk_repository). (default "latest")
--workspace_root string (optional) Path of the directory in which to initialize the Bazel workspace. Defaults to the current working directory. Can either be a relative path (to the current working directory) or an absolute filesystem path. Non-existing folders will be created automatically.

Options inherited from parent commands

  -o, --output string   (optional) Output format. One of: (json, ndjson)
--print-trace Print the trace identifier when exiting.

SEE ALSO