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
xrift create item [name] [options] # Create an item project

Options (xrift create world / xrift create item)

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

The default templates are:

CommandDefault template
xrift create worldWebXR-JP/xrift-test-world
xrift create itemWebXR-JP/xrift-item-template

Examples

# Select project type interactively
xrift create

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

# Create an item project interactively
xrift create item my-item

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

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

Deployment

xrift upload

Automatically detects the project type from xrift.json and uploads it. You can also specify the type explicitly with a subcommand.

xrift upload                # Auto-detect from xrift.json
xrift upload world # Upload a world
xrift upload item # Upload an item

Options

OptionDescription
--skip-checkSkip the security check before uploading

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.

xrift upload item

Uploads the item to the XRift platform.

xrift upload item

Before uploading, the item.buildCommand defined in xrift.json runs automatically. For new items, you will be prompted to enter a title (required) and description (optional).

After uploading, a code review is performed automatically. Once the review is passed, the item will be published and can be used in worlds from your inventory.

Security Checks

xrift check

Runs code security checks against the build artifacts. The project type is auto-detected from xrift.json.

xrift check                 # Auto-detect from xrift.json
xrift check world # Check a world's build artifacts
xrift check item # Check an item's build artifacts

Options

OptionDescription
--buildRun the build command before checking
--ignore-warningsIgnore warnings (REVIEW) and fail only on REJECT
--jsonOutput results in JSON format

Examples

# Run the build and then check
xrift check --build

# JSON output for CI
xrift check item --json

# Let warnings pass, fail only on critical violations
xrift check world --ignore-warnings

Check results are classified as APPROVE / REVIEW / REJECT. If any REJECT is found, the command exits with code 1.

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>