Skip to content

Getting Started

The easiest way to try out ForeverVM is using the CLI.

Authenticating

  1. Sign up for an account from your terminal:

    Terminal window
    npx forevervm signup
  2. You’ll be prompted for an account name and email address. We’ll send you an email with your API token. Copy it and log into the CLI:

    Terminal window
    npx forevervm login

Running code

  1. Once logged in, you can open a REPL interface with a new machine:

    Terminal window
    npx forevervm repl
  2. When ForeverVM starts your machine, it gives it an ID that you can later use to reconnect to it. You can reconnect to a machine like this:

    Terminal window
    npx forevervm repl <machine name>
  3. You can list your machines (in reverse order of creation) like this:

    Terminal window
    npx forevervm list