_nifectl apps_
Managing applications is one of the core features of Nifectl. The apps command group provides comprehensive tools for creating, deploying, monitoring, and controlling your Nife applications throughout their entire lifecycle. Whether you're launching a new application, moving it between organizations, or managing its runtime state, these commands give you complete control.
nifectl apps#
Main command for application management operations.
Usage#
Available Commands#
- create - Create a new application
- destroy - Permanently destroys an App
- download - Download App
- list - List applications
- move - Move an App to another organization
- resume - Resume an application
- revert - Revert an App to previous version
- sourcelist - List an App's Source List
- suspend - Suspend an application
- switch - Sets Current App
Options#
Global Options#
nifectl apps create#
Create and register a new application with the Nife platform.
About#
The APPS CREATE command will both register a new application with the Nife platform and create the nife.toml file which controls how the application will be deployed. This is typically the first command you'll run when starting a new project on Nife.
The command will:
- Register your application name in the Nife platform
- Generate a default
nife.tomlconfiguration file - Associate the app with your current organization
- Prepare the app for deployment
Usage#
Options#
Global Options#
Examples#
Common Use Cases#
- Starting a new project: Create an app before your first deployment
- Multiple environments: Create separate apps for dev, staging, and production
- Microservices: Create individual apps for each service in your architecture
nifectl apps list#
View all applications registered across your organizations.
About#
The APPS LIST command will show the applications currently registered and available to this user. The list will include applications from all the organizations the user is a member of. Each application will be shown with its name, owner, and when it was last deployed.
This command is useful for:
- Getting an overview of all your applications
- Checking which organization owns which app
- Verifying deployment dates
- Finding app names for other commands
Usage#
Options#
Global Options#
Examples#
nifectl apps destroy#
Permanently remove an application from the Nife platform.
About#
The APPS DESTROY command will permanently remove an application from the Nife platform. This action is irreversible and will:
- Delete the application registration
- Remove all deployment history
- Clean up associated resources
- Free up the application name for reuse
⚠️ WARNING: This action cannot be undone. Make sure you have backups of any important data before destroying an app.
Usage#
Options#
Global Options#
Examples#
Safety Measures#
- Confirmation Prompt: Unless
-yflag is used, you'll be asked to confirm - Name Verification: You must specify the exact app name
- Access Control: Only organization admins can destroy apps
nifectl apps download#
Download application configuration and files.
About#
The APPS DOWNLOAD command retrieves application configuration files and settings from the Nife platform. This is useful for:
- Backing up application configurations
- Syncing settings across environments
- Reviewing current application state
- Restoring previous configurations
Usage#
Options#
Global Options#
Examples#
nifectl apps move#
Transfer an application to another organization.
About#
The APPS MOVE command will move an application to another organization that the current user belongs to. This is useful when:
- Reorganizing project ownership
- Transferring projects between teams
- Consolidating applications under a single organization
- Moving apps for billing purposes
Note: You must be a member of both the source and destination organizations.
Usage#
Options#
Global Options#
Examples#
nifectl apps resume#
Restart a suspended application.
About#
The APPS RESUME command will restart a previously suspended application. The application will resume with its original region pool and a minimum count of one, meaning there will be one running instance once restarted.
When an app is resumed:
- It starts with min count of 1 instance
- Uses the original region configuration
- Restores previous environment variables
- Reconnects to configured services
Use the scale command to adjust the number of running instances after resuming.
Usage#
Options#
Global Options#
Examples#
Resume Process#
- Validation: Checks if app is suspended
- Resource Allocation: Assigns compute resources
- Instance Start: Launches one instance
- Health Check: Verifies app is responding
- Active State: App is now running and accepting traffic
nifectl apps suspend#
Temporarily stop an application.
About#
The APPS SUSPEND command will temporarily stop an application from running. This is useful when you want to:
- Reduce costs during idle periods
- Perform maintenance on connected services
- Temporarily disable an application without deleting it
- Conserve resources during development
The app can be resumed later with nifectl apps resume.
Usage#
Options#
Global Options#
Examples#
nifectl apps revert#
Roll back an application to a previous version.
About#
The APPS REVERT command allows you to roll back an application to a previous version. This is crucial when:
- A new deployment introduces bugs
- Performance degrades after an update
- You need to quickly restore working functionality
- Testing a rollback strategy
The command accesses your deployment history and restores a specified previous state.
Usage#
Options#
Global Options#
Examples#
nifectl apps switch#
Set the current active application context.
About#
The APPS SWITCH command sets the current application context for subsequent commands. This is useful when working with multiple applications, allowing you to:
- Avoid repeatedly specifying app names
- Streamline workflow when focusing on one app
- Reduce command-line typing
- Prevent errors from specifying wrong app names
Usage#
Options#
Global Options#
Examples#
nifectl apps sourcelist#
Display the source code list for an application.
About#
The APPS SOURCELIST command lists an application's source code history and references. This helps you:
- Track deployment sources
- Verify which code version is deployed
- Audit deployment history
- Debug deployment issues
Usage#
Options#
Global Options#
Examples#
Application Lifecycle#
- Create:
nifectl apps create app-name - Deploy:
nifectl deploy - Monitor:
nifectl status,nifectl logs - Scale: Adjust resources as needed
- Update: Deploy new versions
- Suspend: Temporarily stop if needed
- Resume: Restart when required
- Destroy: Remove when no longer needed
Troubleshooting Common Issues#
App Creation Fails#
Problem: "App name already exists"
- Solution: Choose a different name or check if you have permission to access the existing app
Problem: "Invalid app name"
- Solution: Use only lowercase letters, numbers, and hyphens
App Won't Resume#
Problem: "Insufficient resources"
- Solution: Check org quota and upgrade if needed
Problem: "Configuration error"
- Solution: Validate nife.toml file with
nifectl config validate
Move Command Fails#
Problem: "Permission denied"
- Solution: Ensure you're a member of both source and destination orgs
Problem: "Org limit reached"
- Solution: Contact support to increase organization app limit
Revert Issues#
Problem: "Version not found"
- Solution: Check deployment history with
nifectl history
Problem: "Revert validation failed"
- Solution: Ensure the target version is compatible with current platform