Hosting CLI
Overview

Hosting offers a command-line interface for the 4EVERLAND CLI, which enables you to deploy and manage projects with a set of commands. This makes it easier for you to interact with the platform using a terminal or automated system.
Getting started with 4EVERLAND CLI
Installation
To install the CLI, run the following command:
npm install -g @4everland/hosting-cliView Version
You can view the current version of the 4everland CLI by running the command:
4ever-hosting -vLogin
You can login your Hosting account via the 4everland CLI by running the command:
4ever-hosting login
Enter Token
You can see your token in the Hosting setting.

The following operations are available only after successful login:
Project Deployment
Domain Operation
Deployment
To deploy a project, please run the '4ever-hosting deploy' command.
4ever-hosting deployAfter entering the build command you need to do two steps
Give the project a name.
Select the platform on which the project will be deployed.
Platform Quick Deployment
Build and deploy a project to a given platform, run the following command.
Deploy on IPFS
4ever-hosting deploy -ipfsDeploy on Arweave
4ever-hosting deploy -arDeploy on Internet Computer
4ever-hosting deploy -icDeploy on BNB Greenfield
4ever-hosting deploy -gnfdIPNS
IPNS can be obtained by running the command ''4ever-hosting getipns'' in the project directory(only valid for IPFS projects).
4ever-hosting getipnsUse the IPNS Deployment, fill the <ipns> of deployment.
4ever-hosting ipns <ipns>Select the platform(IPFS, Arweave, Internet Computer and BNB Greenfield) for deployment by using the following commands.
4ever-hosting ipns <ipns> -ipfs4ever-hosting ipns <ipns> -ar4ever-hosting ipns <ipns> -ic4ever-hosting ipns <ipns> -gnfdUpdate the corresponding CID to IPNS and redeploy.
4ever-hosting update <ipns>CID
Use the CID to deploy the project, fill the <cid> of deployment.
4ever-hosting cid <cid> -ipfs4ever-hosting cid <cid> -ar4ever-hosting cid <cid> -ic4ever-hosting cid <cid> -gnfdHelp
If you need to see all the CLI commands, you can run the help command.
4ever-hosting -hLast updated