Manage images and configure Docker loginFor a detailed overview, please visit the image’s reference page.
Copy
Ask AI
cpln image [SUBCOMMAND]
Copy
Ask AI
Commands: cpln image access-report <ref> Show the access report for the referenced image cpln image build Build and containerize an application into an image. If using buildpacks, everything after -- will be passed down to the pack executable. cpln image copy <ref> Copy an image from one org to another. This will make sure that docker-login has been run against the source and destination org, then will pull, tag and push the image to the destination org. cpln image delete <ref...> Delete one or more referenced images cpln image docker-login Perform a Docker login to the organization's private registry cpln image edit <ref> Edit the referenced image, as YAML, within an editor cpln image get [ref...] Retrieve one or more referenced images cpln image patch <ref> Update the referenced image's metadata using an input file cpln image permissions Show the grantable permissions for an image object type cpln image query Find all the images based on the given query cpln image tag <ref...> Manage the tags belonging to one or more referenced imagesOptions: --help Show help [boolean]
Show the access report for the referenced imageUsage
Copy
Ask AI
cpln image access-report <ref> [OPTIONS]
Reference
Copy
Ask AI
Positionals: ref The resource reference. Usually it is the name of the resource. [required]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Build and containerize an application into an image. If using buildpacks, everything after — will be passed down to the pack executable.Usage
Copy
Ask AI
cpln image build --name IMAGE_NAME:TAG [OPTIONS]
To push an image using this command, the docker-credential-cpln executable must be installed if the CLI was not installed using npm.
The option --builder accepts any trusted buildpacks builder.The default buildpack is heroku/buildpacks:18.Docker is required to be installed.
Reference
Copy
Ask AI
Command options: --name, -n Name and tag for the image [required] --dockerfile Path to Dockerfile (e.g.: PATH/Dockerfile). If set, the builder option is not used --builder Buildpack package to use, for example heroku/builder:24, gcr.io/buildpacks/builder:google-22, paketobuildpacks/builder:base, etc. [default: "heroku/builder:24"] --dir Directory containing the application [default: "."] --no-cache Builds the image without using any cached layers. [boolean] [default: false] --push Push the new image to the org's private registry [boolean] [default: false]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Copy an image from one org to another. This will make sure that docker-login has been run against the source and destination org, then will pull, tag and push the image to the destination org.Usage
Positionals: ref The resource reference. Usually it is the name of the resource. [required]Command options: --to-name Name and tag for the image --to-org Target org to copy the image to --to-profile Profile to use for accessing the "to-org" argument --cleanup Cleans up the pulled and retagged image [boolean] [default: false]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` command --gvc Override the global virtual cloud. The default global virtual cloud can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
This command will copy an image from the current org to the target org.The current profile service principal (user/service account) must have the proper permissions to pull images in the current org (default profile).The referenced —to-profile service principal (user/service account) must have the proper permissions to push images to the target org.This command allows the copying of images between different orgs using user or service account profiles.
Positionals: ref One or more resource references. Usually it is the name of the resource. [array] [required] [default: []]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Perform a Docker login to the organization’s private registryUsage
Copy
Ask AI
cpln image docker-login [OPTIONS]
Reference
Copy
Ask AI
Command options: --ignore-output Ignore the output of this command.Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Edit the referenced image, as YAML, within an editorUsage
Copy
Ask AI
cpln image edit <ref> [OPTIONS]
The default editor can be set by using the EDITOR environment variable.
Reference
Copy
Ask AI
Positionals: ref The resource reference. Usually it is the name of the resource. [required]Command options: --replace, -r Replace instead of patch/merge [boolean] [default: false]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Positionals: ref One or more resource references. Usually it is the name of the resource. [array] [default: []]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Update the referenced image’s metadata using an input fileUsage
Copy
Ask AI
cpln image patch <ref> --file FILE_NAME [OPTIONS]
Running this command with the option --file - sets the input to stdin. The input is required to be a valid JSON or YAML string (e.g., {"description": "My new description"} or description: My new description). To complete the update, press Control-D (or Control-Z if you are using Windows).
Reference
Copy
Ask AI
Positionals: ref The resource reference. Usually it is the name of the resource. [required]Command options: --file, -f File to load the patch from. Use `--file -` to enable input from stdin. [required]Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Show the grantable permissions for an image object typeUsage
Copy
Ask AI
cpln image permissions [OPTIONS]
Reference
Copy
Ask AI
Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Query options: --match Query filter type [choices: "all", "none", "any"] [default: "all"] --property, --prop Property to query --tag Tag to query --rel Tag to queryContext options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]
Manage the tags belonging to one or more referenced imagesUsage
Copy
Ask AI
cpln image tag <ref...> --tag KEY=VALUE [OPTIONS]
Built-in tags, which begin with cpln/*, can’t be modified.
Reference
Copy
Ask AI
Positionals: ref One or more resource references. Usually it is the name of the resource. [array] [required] [default: []]Command options: --tag Attach tags (e.g., --tag drink=water) --remove Remove tags (e.g., --remove tagname)Context options: --profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable --org Override the organization. The default organization can be set in your profile by using the `cpln profile update` commandFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --help Show help [boolean]