_nifectl init_

Overview#

The nifectl init command helps you set up and configure a new application on the Nife platform. It automatically registers the app and generates the nife.toml configuration file, which defines deployment behavior and runtime details.

You can also specify build methods using Dockerfile or Cloud Native Buildpacks, making this command ideal for both containerized and serverless workflows.

Usage#

nifectl init [APPNAME] [flags]

Options#

--builder string Specify the Cloud Native Buildpacks builder for deployment
--builtin string Choose a Nife Runtime for building the app
--dockerfile Deploy using a Dockerfile
-e, --external string Set the external port for your application
-h, --help Help for init command
--import string Import configuration from an existing file
--name string Specify the app name
--nowrite Prevent writing a new nife.toml file
--org string Set the organization owning the app
--overwrite Overwrite existing nife.toml files
-p, --port string Define internal ports for external service connections

Global Options#

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

Best Practice Tips#

  • Use --builder for simplified cloud-native builds.
  • Store your nife.toml file in version control for consistent deployments.
  • Use --org to clearly define ownership for better resource management.

See Also#

  • nifectl - The Nife CLI Home Command