4EVERLAND Documents
HomeTwitterDiscordBlogs
  • Welcome to 4EVERLAND
  • Get started
    • Our Features
    • Quick Start Guide
      • Registration
      • Login options
        • MetaMask
        • OKX Wallet
        • Binance Web3 Wallet
        • Bitget Wallet
        • Phantom
        • Petra
        • Lilico
      • Usage Introduction
      • Dashboard stats
      • Account
        • Linking Your EVM Wallet to 4EVERLAND Account
        • Balance Alert
    • Billing and Pricing
      • What is LAND?
      • How to Obtain LAND?
      • Pricing Model
      • Q&As
    • Tokenomics
  • HOSITNG
    • What is Hosting?
      • IPFS Hosting
      • Arweave Hosting
        • Auto-Generation of Manifest
      • Internet Computer Hosting
      • Greenfield Hosting
    • Guides
      • Creating a Deployment
        • With Git
        • With IPFS Hash
        • With a Template
      • Site Deployment
      • Domain Management
        • DNS Setup Guide
        • ENS Setup Guide
        • SNS Setup Guide
          • The gateway: 4sol.xyz
        • SPACE ID Setup Guide
      • Project Setting
        • Git
      • Troubleshooting
      • Common Frameworks
    • Hosting Templates Centre
      • Templates Configuration File
    • Quick Addition
      • Implement Github 4EVER Pin
      • Github Deployment Button
    • Hosting API
      • Create Project API
      • Deploy Project API
      • Get Task Info API
      • IPNS Deployment Update API
    • Hosting CLI
  • Storage
    • Bucket
      • IPFS Bucket
        • Get Root CID - Snapshots
      • Arweave Bucket
        • Path Manifests
          • Instructions for Building Manifest
          • Auto-Generation of Manifest
        • Arweave Tags
        • Unleash Arweave
      • Guides
      • Bucket API - S3 Compatible
        • Coding Examples
          • AWS SDK - Go (Golang)
          • AWS SDK - Java
          • AWS SDK - JavaScript
          • AWS SDK - .NET
          • AWS SDK - PHP
          • AWS SDK - Python
          • AWS SDK - Ruby
        • S3 Tags Instructions
      • 4EVER Security Token Service API
      • Bucket Tools
      • Bucket Gateway Optimizer
    • 4EVER Pin
      • Guides
      • Pinning Services API
      • IPFS Migrator
    • Storage SDK
  • Gateways
    • IPFS Gateway
    • IC Gateway
    • Arweave Gateway
    • Dedicated Gateways
      • Gateway Access Controls
      • Video Streaming
      • IPFS Image Optimizer
    • IPNS Manager
      • IPNS Manager API
  • RPC
    • Guides
    • API Keys
    • JSON Web Token (JWT)
    • What's CUs/CUPS
    • WebSockets
    • Archive Node
    • Debug API
    • Chains RPC
      • BSC / opBNB
      • Ethereum
      • Optimism
      • Polygon
      • Taiko
  • AI
    • AI RPC
      • Quick Start
      • Models
      • API Keys
      • Requests & Responses
      • Parameters
    • 4EVER Chat
  • RaaS - Beta
    • What's Rollups?
    • 4EVER Rollup Stack
  • DePIN
    • 4EVER Network
    • Storage Nodes
  • More
    • Use Cases
      • Livepeer
      • Lens Protocol
      • Optopia.ai
      • Linear Finance
      • Snapshot
      • Tape
      • Taiko
      • Hey.xyz
      • SyncSwap
    • Community
    • Tutorials
    • Security
    • 4EVERLAND FAQ
Powered by GitBook
On this page
  • Overview
  • Getting started with 4EVERLAND CLI
  • Deployment
  • Platform Quick Deployment
  • IPNS
  • CID
  1. HOSITNG

Hosting CLI

Last updated 9 months ago

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-cli

View Version

You can view the current version of the 4everland CLI by running the command:

4ever-hosting -v

Login

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 deploy

After 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.

Currently IPFS, Arweave, Internet Computer and BNB Greenfield are supported.

Platform Quick Deployment

Build and deploy a project to a given platform, run the following command.

Deploy on IPFS

4ever-hosting deploy -ipfs

Deploy on Arweave

4ever-hosting deploy -ar

Deploy on Internet Computer

4ever-hosting deploy -ic

Deploy on BNB Greenfield

4ever-hosting deploy -gnfd

IPNS

IPNS can be obtained by running the command ''4ever-hosting getipns'' in the project directory(only valid for IPFS projects).

4ever-hosting getipns

Use 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> -ipfs
4ever-hosting ipns <ipns> -ar
4ever-hosting ipns <ipns> -ic
4ever-hosting ipns <ipns> -gnfd

Update 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> -ipfs
4ever-hosting cid <cid> -ar
4ever-hosting cid <cid> -ic
4ever-hosting cid <cid> -gnfd

Help

If you need to see all the CLI commands, you can run the help command.

4ever-hosting -h

If you have any questions, please join our , or send us an email at .

Discord server
contact@4everland.org