netlify-cli
Version:
Netlify command line tool
12 lines • 449 B
JavaScript
import { exit, log } from '../../utils/command-helpers.js';
import openBrowser from '../../utils/open-browser.js';
export const openSite = async (options, command) => {
const { siteInfo } = command.netlify;
await command.authenticate();
const url = siteInfo.ssl_url || siteInfo.url;
log(`Opening "${siteInfo.name}" site url:`);
log(`> ${url}`);
await openBrowser({ url });
exit();
};
//# sourceMappingURL=open-site.js.map