Skip to content
SHC Docs

shc import

import deployment data from an archive

shc import <exporter> [flags]
-e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default")
-h, --help help for import
-i, --input string input directory containing files to import
-p, --param stringArray import parameters as key=value pairs (repeatable)
--params-json string import parameters as a JSON object
-s, --stack string name of the stack to import into
-w, --wrap string wrap a file or directory under the daemon host's import directory as the import artifact: <path> puts the file, or the directory's contents, at the root of the jobs' @input, <path>@<slot> in the directory <slot> under it
--config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win
-d, --debug enable debug mode (default: $SHC_DEBUG)
--exclude string comma-separated dotted paths to drop
--fields string comma-separated columns/keys to show (and their order)
--filter string comma-separated dotted paths to keep (drops everything else)
-o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT)
-t, --tenant string tenant name (default: $SHC_TENANT)
-v, --verbose verbose output (default: $SHC_VERBOSE)
  • shc - Selfhosted Cloud CLI