_nifectl deploy_

The Nifectl Deploy command streamlines your application deployment process to the Nife platform. Whether you're deploying from a local image, a remote repository, a Dockerfile, or using CNB Buildpacks, this command ensures fast, reliable, and consistent application delivery.

Overview#

Deploy applications to the Nife platform directly from your local environment or remote sources. You can specify configuration files, environment variables, and build arguments for complete control over your deployment.

Use the --config or -c flag to select a specific configuration file (nife.toml) for your deployment setup.

If deployment progress stops, you can use the nifectl monitor command to restart and track deployment activity.

nifectl deploy [<workingdirectory>] [flags]

Options#

-a, --app string App name to operate on
--build-arg strings Set of build time variables in the form of NAME=VALUE pairs. Can be specified multiple times.
-c, --config string Path to an app config file or directory containing one (default "./nife.toml")
--dockerfile string Path to a Dockerfile. Defaults to the Dockerfile in the working directory.
-e, --env strings Set of environment variables in the form of NAME=VALUE pairs. Can be specified multiple times.
-h, --help help for deploy
--local-only Only perform builds locally using the local docker daemon
--remote-only Perform builds remotely without using the local docker daemon
--strategy string The strategy for replacing running instances. Options are canary, rolling, or immediate. Default is canary

Global Options#

-t, --access-token string Nife API Access Token
-j, --json JSON output format

Best Practices#

  • Always define environment variables and build arguments clearly in your config file for reproducible deployments.
  • Use rolling strategy for minimal downtime in production.
  • Keep your nife.toml organized to easily manage app configurations.

See Also#

  • nifectl โ€“ The Nife CLI home command for managing applications and configurations.

Summary#

The Nifectl Deploy command provides a robust and flexible way to deliver applications to the Nife platform. With options for both local and remote builds, it ensures reliable performance and control across diverse deployment environments.