Skip to main content
Create a job from a source, without a wandb run. Jobs can be of three types, git, code, or image. git: A git source, with an entrypoint either in the path or provided explicitly pointing to the main python executable. code: A code path, containing a requirements.txt file. image: A docker image.

Usage

wandb job create [OPTIONS] {git|code|image} PATH

Options

FlagTypeDescription
-p, --projectSTRINGThe project you want to list jobs from. Default: None
-e, --entitySTRINGThe entity the jobs belong to Default: None
-n, --nameSTRINGName for the job Default: None
-d, --descriptionSTRINGDescription for the job Default: None
-a, --aliasSTRINGAlias for the job Default: ()
-E, --entry-pointSTRINGEntrypoint to the script, including an executable and an entrypoint file. Required for code or repo jobs. If —build-context is provided, paths in the entrypoint command will be relative to the build context. Default: None
-g, --git-hashSTRINGCommit reference to use as the source for git jobs Default: None
-r, --runtimeSTRINGPython runtime to execute the job Default: None
-b, --build-contextSTRINGPath to the build context from the root of the job source code. If provided, this is used as the base path for the Dockerfile and entrypoint. Default: None
-B, --base-imageSTRINGBase image to use for the job. Incompatible with image jobs. Default: None
-D, --dockerfileSTRINGPath to the Dockerfile for the job. If —build-context is provided, the Dockerfile path will be relative to the build context. Default: None
-s, --serviceSTRINGService configurations in format serviceName=policy. Valid policies: always, never Default: None
--schemaSTRINGPath to the schema file for the job. Default: None
--helpBOOLShow this message and exit. Default: False