Hasura CLI: hasura platform:microservice copy

Copy files and directories to and from microservice containers


Use copy to copy files and directories to and from microservice containers

hasura platform:microservice copy <file-spec-src> <file-spec-dest> [flags]

Alias: cp


# !!!Important Note!!!
# Requires that the 'tar' binary is present in your container
# image. If 'tar' is not present, 'hasura microservice copy' will fail.
# Also, filename should not contain ":"

# Copy a file called 'foo' from the current local directory to '/app/foo' inside the microservice 'www'
$ hasura microservice copy foo www:/app/foo

# Copy a file called 'index.html' from '/app/index.html' inside microservice 'app' to current local directory
$ hasura microservice copy app:/app/index.html index.html

# The command below is also equivalent
$ hasura microservice copy user/app:/app/index.html index.html

# If there are multiple replicas running for the microservice, user --pod=PODNAME flag
$ hasura microservice copy --pod app-1074213085-0spqb user/app:/app/index.html index.html

# Replace 'user' with 'hasura' to access Hasura microservices


-c, --cluster string     cluster alias to connect
    --container string   container name. If omitted, the first container in the pod will be chosen (use only if you know what this means)
-h, --help               help for copy
-n, --namespace string   namespace of the microservice (user: Custom microservices, hasura: Hasura microservices) (default "user")
-p, --pod string         pod name

Options inherited from parent commands

--project string   hasura project directory where the commands should be executed. (default: current directory)


Auto generated by spf13/cobra