Dagger
Search

jfrogcli

JFrog CLI is a command-line tool that allows you to interact with JFrog products,
such as Artifactory and Xray.
Example (InstallVersion)
no available example in current language
func (e *Examples) JFrogCLI_InstallVersion(version string) *dagger.Container {
	return dag.Jfrogcli(dagger.JfrogcliOpts{
		Version: version,
	}).Install()
}
no available example in current language
no available example in current language
Example (Run)
no available example in current language
func (e *Examples) JFrogCLI_Run(ctx context.Context) (string, error) {
	return dag.Jfrogcli().Install().
		WithExec([]string{"jf", "--version"}).
		Stdout(ctx)
}
no available example in current language
no available example in current language
Example (Install)
no available example in current language
func (e *Examples) JFrogCLI_Install() *dagger.Container {
	return dag.Jfrogcli().Install()
}
no available example in current language
no available example in current language
Example (InstallInto)
no available example in current language
func (e *Examples) JFrogCLI_InstallInto(ctr *dagger.Container) *dagger.Container {
	return dag.Jfrogcli().Install(dagger.JfrogcliInstallOpts{
		Base: ctr,
	})
}
no available example in current language
no available example in current language

Installation

dagger install github.com/vbehar/daggerverse/jfrogcli@v0.11.1

Entrypoint

Return Type
Jfrogcli !
Arguments
NameTypeDefault ValueDescription
versionString "2.71.5"version of the JFrog CLI to install. If empty, the latest version will be installed.
Example
dagger -m github.com/vbehar/daggerverse/jfrogcli@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f call \
func (m *myModule) example() *Jfrogcli  {
	return dag.
			Jfrogcli()
}
@function
def example() -> dag.Jfrogcli:
	return (
		dag.jfrogcli()
	)
@func()
example(): Jfrogcli {
	return dag
		.jfrogcli()
}

Types

Jfrogcli 🔗

Jfrogcli is a Dagger Module to install and run the JFrog CLI.

version() 🔗

Version of the JFrog CLI binary.

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/jfrogcli@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f call \
 version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Jfrogcli().
			Version(ctx)
}
@function
async def example() -> str:
	return await (
		dag.jfrogcli()
		.version()
	)
@func()
async example(): Promise<string> {
	return dag
		.jfrogcli()
		.version()
}

getLatestVersion() 🔗

GetLatestVersion returns the latest version of the JFrog CLI.

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/jfrogcli@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f call \
 get-latest-version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Jfrogcli().
			GetLatestVersion(ctx)
}
@function
async def example() -> str:
	return await (
		dag.jfrogcli()
		.get_latest_version()
	)
@func()
async example(): Promise<string> {
	return dag
		.jfrogcli()
		.getLatestVersion()
}

install() 🔗

Install installs the JFrog CLI into the given container.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
baseContainer -No description provided
Example
dagger -m github.com/vbehar/daggerverse/jfrogcli@b4fa92627cebfd8f3bd72d390fa9ca3f0d87e81f call \
 install
func (m *myModule) example() *Container  {
	return dag.
			Jfrogcli().
			Install()
}
@function
def example() -> dagger.Container:
	return (
		dag.jfrogcli()
		.install()
	)
@func()
example(): Container {
	return dag
		.jfrogcli()
		.install()
}