arc open
Open a game's store page.
Usage
arc open [game] [options]
Positionals:
game Game handle or ID [string] [default: "self"]
Options:
--browser Open in a web browser [boolean] [default: false]
-j, --json Format output as JSON [boolean] [default: false]
-q, --quiet Output only errors [boolean] [default: false]
-C, --cwd Set the working directory [string] [default: "."]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Description
Opens a game's store page.
arc open # this project's game
arc open star-drift # any game, by handle or ID
arc open --browser # arcadible.com instead of the app
With the default self, the game is the current project's handle, or its id when there's no handle. By default the page opens in the Arcadible app, falling back to https://arcadible.com/play/<game> when the app isn't installed.
It prints where it opened, and the store page's URL:
$ arc open
Opened in the Arcadible app.
https://arcadible.com/play/star-drift
Output
It prints where it opened the page, and the URL. With --json, it opens the page all the same, and prints both:
{ "opened": "app", "url": "https://arcadible.com/play/star-drift" }
opened is "app" or "browser", or null when it couldn't open either, which still exits with 0: open url yourself. With --quiet without --json, it prints nothing.
| Code | When |
|---|---|
0 | The page was opened, or its URL printed |
1 | There's no handle or id, or the project can't be read |