Skip to content

kraft cloud instance create

Create an instance on KraftCloud from an image.

kraft cloud instance create [FLAGS] IMAGE [-- ARGS]


# Create a new NGINX instance in Frankfurt and start it immediately. Map the external
# port 443 to the internal port 8080 which the application listens on.
$ kraft cloud --metro fra0 instance create \
--start \
--port 443:8080 \
# This command is the same as above, however using the more elaborate port expression.
# This is because in fact we need need to accept TLS and HTTP connections and redirect
# port 8080 to port 443. The above example exists only as a shortcut for what is written
# below:
$ kraft cloud --metro fra0 instance create \
--start \
--port 443:8080/http+tls \
--port 80:443/http+redirect \
# Attach two existing volumes to the vm, one read-write at /data
# and another read-only at /config:
$ kraft cloud --metro fra0 instance create \
--start \
--volume my-data-vol:/data \
--volume my-config-vol:/config:ro \


--domain string Alias for --fqdn|-d
-e, --env strings Environmental variables
-f, --feature strings List of features to enable
-d, --fqdn string The Fully Qualified Domain Name to use for the service
-h, --help help for create
-M, --memory int Specify the amount of memory to allocate (MiB)
-n, --name string Specify the name of the package
-o, --output string Set output format. Options: table,yaml,json,list (default "table")
-p, --port strings Specify the port mapping between external to internal
-R, --replicas int Number of replicas of the instance
-0, --scale-to-zero Scale the instance to zero after deployment
-g, --service-group string Attach this instance to an existing service group
-S, --start Immediately start the instance after creation
-s, --subdomain string Set the subdomain to use when creating the service
-v, --volumes strings List of volumes to attach instance to

Options inherited from parent commands

--metro string Set the KraftCloud metro.


The kraft cloud instance create command can also be run as:


See Also