CLI
A CLI for creating and managing static sites on Orbiter
Before installing make sure you already have an account; sign up at app.orbiter.host.
Installation
The orbiter-cli is an NPM package you can download with manager of choice.
Confirm that it was installed successfully by running the main command
Usage
Running the orbiter
command will reveal the available subcommands
login
Start by running login
including your --provider
(shorthand -p
) of choice (google
or github
)
auth
An alternative way to authenticate the CLI is with an Orbiter API key. This can be obtained at app.orbiter.host/api-keys. You can either just run orbiter auth
and it will prompt you for the key and not display it visibly, or if you’re using the CLI in an automation you can use the --key
flag.
orgs
(Deprecated)
If you happen to be a member of multiple organizations you can list them and select them with this command. When you login the CLI will select the first in the list by default and store the data until updated with the orgs command.
create
Uploads and create a new site on Orbiter. Must include the --domain
or -d
for the default subdomain of the site. After providing a name give the path to the file or folder of the website you are creating, must contain an index.html
file.
After sucessfull creation the CLI will return the URL of the new site.
list
List all sites currently on your Orbiter account. You can filter by domain with -d
followed by the subdomain of the site.
This will return the following JSON response from the API:
update
Update an existing site with a file or folder. You can target a site with either the --siteId | -s
or the --domain | -d
(subdomain) followed by the updated folder or file. Both the subdomain and site ID can be found by using orbiter list
.
versions
List previous versions of a site for a given subdomain, ie <subdomain>.orbiter.website
. the cid
listed in the response can be used in rollback
to rollback a site to a previous version.
This will return the following object
rollback
Rollback a site to a previous version using the subdomain
and the cid
of the previous version to update it. Use versions
to get the previous versions for a site.
delete
Delete an existing site using the site ID which can be obtained by using orbiter list
Contact
If you have any issues or questions feel free to reach out!