Skip to main content

nifectl site Command Reference

Deploy and manage static sites on the Nife platform using the nifectl site command. This command supports deploying from a pre-built archive, source archive, or Git repository with full version management and rollback capabilities.

About​

The Nifectl Site command streamlines static site deployment and management on the Nife platform. Whether you're deploying a new site, redeploying with updates, or reverting to a previous version, this command provides all the tools you need.

Usage​

nifectl site [command]

Available Commands​

  • list - List static site deployments
  • deploy - Deploy a static site
  • redeploy - Redeploy an existing static site
  • revert - Revert a static site to a previous version
  • info - Show static site details
  • delete - Delete a static site

Options​

Flags:
-h, --help help for site

Global Options​

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

See Also​

  • nifectl - The Nife CLI home command for managing applications and configurations.

nifectl site list​

List all static site deployments associated with your Nife account. This command displays information about each site deployment including name, status, and version details.

Usage​

nifectl site list [flags]

Options​

Flags:
-h, --help help for list

Global Options​

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

See Also​


nifectl site deploy​

Deploy a new static site to the Nife platform. Supports deploying from a pre-built archive, source archive, or Git repository.

Usage​

nifectl site deploy [flags]

Options​

Flags:
-h, --help help for deploy
--archive string Path to the pre-built site archive
--source-archive string Path to the source archive
--repo string Git repository URL
--branch string Git branch to deploy (default: main)
--path string Path within the archive or repo

Global Options​

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

Best Practices​

  • Always test your site locally before deploying
  • Use meaningful site names that reflect their purpose
  • Ensure your archive contains all necessary static files
  • For Git deployments, verify the branch contains the built site files

See Also​


nifectl site redeploy​

Redeploy an existing static site with updates. This command allows you to push new content or configuration changes to an already deployed site.

Usage​

nifectl site redeploy [flags]

Options​

Flags:
-h, --help help for redeploy
--yes, -y Skip confirmation prompt
--archive string Path to the updated site archive
--source-archive string Path to the updated source archive
--repo string Git repository URL
--branch string Git branch to deploy
--path string Path within the archive or repo

Global Options​

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

Best Practices​

  • Use the --yes flag in automated CI/CD pipelines
  • Always verify your updated files are correct before redeploying
  • Consider using version control for tracking site changes
  • Monitor your site after redeployment to ensure all changes are applied

See Also​


nifectl site revert​

Revert a static site to a previously deployed version. This is useful when you need to rollback to a stable version quickly.

Usage​

nifectl site revert [flags]

Options​

Flags:
-h, --help help for revert
--version string Version or deployment ID to revert to
--yes, -y Skip confirmation prompt

Global Options​

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

Best Practices​

  • Always know which version or deployment you want to revert to
  • Use the --yes flag carefully in automated processes
  • Keep track of version numbers for quick recovery
  • Test on a staging environment before reverting in production

See Also​


nifectl site info​

Display detailed information about a specific static site deployment, including its current version, status, deployment history, and configuration details.

Usage​

nifectl site info [flags]

Options​

Flags:
-h, --help help for info
--name string Name of the site

Global Options​

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

Information Displayed​

  • Site name and ID
  • Current version and deployment status
  • Latest deployment time
  • Site URL and accessibility
  • Version history
  • Deployment configuration

See Also​


nifectl site delete​

Delete a static site deployment from the Nife platform. This action removes the site and all its associated data.

Usage​

nifectl site delete [flags]

Options​

Flags:
-h, --help help for delete
--name string Name of the site to delete
--yes, -y Skip confirmation prompt

Global Options​

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

Best Practices​

  • Always verify you're deleting the correct site
  • Consider backing up important site data before deletion
  • Use the --yes flag carefully, especially in scripts
  • Confirm the site is no longer needed before proceeding

⚠️ Warning​

This action is irreversible. Ensure you have backups of any critical site data before deletion.

See Also​


Summary​

The Nifectl Site command provides comprehensive static site management capabilities on the Nife platform. With commands for deployment, version management, and rollback, you have full control over your static site deployments. Whether you're deploying from archives or Git repositories, the site command streamlines your workflow and ensures reliable site management.

Quick Command Reference​

CommandPurpose
site listView all deployed sites
site deployDeploy a new static site
site redeployUpdate an existing site deployment
site revertRollback to a previous version
site infoView site details and status
site deleteRemove a site deployment