Skip to main content

Command Reference

A list of commands available in xrift-cli.

Authentication Commands

xrift login

Performs browser-based authentication.

xrift login

A browser will open, allowing you to log in with your XRift account.

xrift logout

Signs out from the current session.

xrift logout

xrift whoami

Displays information about the currently logged-in user.

xrift whoami

Project Management

xrift create

Creates a new project. When run without a subcommand, an interactive prompt lets you select the project type.

xrift create                          # Interactive type selection
xrift create world [name] [options] # Create a world project

Options (xrift create world)

OptionDescription
--hereCreate the project in the current directory
--template <name>Specify the template to use
--skip-installSkip installation of dependencies
-y, --no-interactiveSkip interactive mode (use default values)

Examples

# Select project type interactively
xrift create

# Create a world project interactively
xrift create world my-world

# Create a project without interaction
xrift create world my-world -y

# Create in the current directory
xrift create world --here

Deployment

xrift upload world

Uploads the world to the XRift platform.

xrift upload world

Before uploading, the build script defined in xrift.json runs automatically. For new worlds, you will be prompted to enter metadata such as title and description.

After uploading, a code review is performed automatically (usually completed in a few minutes). Once the review is passed, the world will be published. If the review fails, the world will not be published, and the version that last passed the review will remain published.

Utilities

--version, -v

Displays the installed version.

xrift --version
xrift -v

--help, -h

Displays help information.

xrift --help
xrift -h

--verbose

Displays detailed debug output.

xrift --verbose <command>