Skip to main content

Core Actions Reference

caution

This documentation is for an older version of Dagger, which is no longer actively maintained.

We encourage you to upgrade and refer to the documentation for the most current version.

If you cannot upgrade to the latest version, please contact us in the help forum on Discord. When contacting us, please let us know why you cannot move to the latest version. From there, our team will work with you on your use case.

Core Actions are primitives implemented by the Dagger Engine itself. They can be combined into higher-level composite actions. Their definitions can be imported in the dagger.io/dagger/core package.

For more information about Dagger Actions, see Dagger Actions.

The following core actions are available:

DefinitionFileDescription
#Copyfs.cueCopy files between two filesystem trees
#Difffs.cueExtract the difference between two filesystems as its own file system
#Mergefs.cueMerge multiple filesystem trees
#Mkdirfs.cueCreate a directory in a filesystem tree
#ReadFilefs.cueRead the contents of a UTF-8 encoded file from a filesystem tree
#Sourcefs.cueAccess the source for the current CUE package
#Subdirfs.cueRead a subdirectory from a filesystem tree
#WriteFilefs.cueWrite a file to a filesystem tree
DefinitionFileDescription
#DecodeSecretsecrets.cueDecode a secret without leaking its contents
#NewSecretsecrets.cueCreate a new a secret from a filesystem tree
#TrimSecretsecrets.cueTrim leading and trailing space characters from a secret
DefinitionFileDescription
#Dockerfileimage.cueBuild a container image using a Dockerfile
#Execexec.cueExecute a command in a docker-compatible container
#Exportimage.cueExport a docker image as a tar archive
#Pullimage.cueDownload an image from a docker registry
#Pushimage.cueUpload an image to a docker registry
#Setimage.cueModify a docker image config
DefinitionFileDescription
#GitPullgit.cueDownload a repository from a remote git server
#HTTPFetchhttp.cueGet a file from an HTTP server