The logo Orion Docs
GuidesOrion CLI

Installation

How to install Orion CLI

CLI Installation

We'll start by installing the CLI globally.

Open your code editor in your project

Open a terminal and download the CLI globally:

npm i -g @orionhosting/cli@latest

Make sure to regularly re-download the module (don't forget @latest) to update it and enjoy bug fixes.

Now, you have access to orion from any terminal. Verify by running:

orion help

Account Connection

Now let's see how to connect.

Create a key (leave Allowed IPs empty) and retrieve the token displayed in the notification:

Image

Warning, the full token is the one from the notification and not the one displayed further down in API Keys.

Execute this command and paste your token.

orion login

If you pasted the token correctly, you should now be logged in.


Now let's see how to link a folder to a server.

Execute

orion link

And select the desired server:

Image

Once linked, an orion.config.json file has been created. This is where you configure the project options.

Image

The .orion folder that was created should not be manually modified. It is managed by the CLI and should not be committed to Git.

Your project is linked!

orion open # open the panel
orion status # see its status
orion restart # restart the server
# Run `orion help` for all commands

Repository

If you find the CLI useful, feel free to star it ;)

GitHubvoctal/orion-cli

40

On this page