signup.js 982 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.SignupCommand = void 0;
  4. const command_1 = require("../lib/command");
  5. const open_1 = require("../lib/open");
  6. class SignupCommand extends command_1.Command {
  7. async getMetadata() {
  8. return {
  9. name: 'signup',
  10. type: 'global',
  11. summary: 'Create an Ionic account',
  12. description: `
  13. If you are having issues signing up, please get in touch with our Support[^support-request].
  14. `,
  15. footnotes: [
  16. {
  17. id: 'support-request',
  18. url: 'https://ion.link/support-request',
  19. },
  20. ],
  21. };
  22. }
  23. async run(inputs, options) {
  24. const dashUrl = this.env.config.getDashUrl();
  25. await (0, open_1.openUrl)(`${dashUrl}/signup?source=cli`);
  26. this.env.log.ok('Launched signup form in your browser!');
  27. }
  28. }
  29. exports.SignupCommand = SignupCommand;