{"_id":"@superfaceai/cli","_rev":"68-b0fe4355c629a676584f54acb8bea110","name":"@superfaceai/cli","dist-tags":{"latest":"4.1.3","next":"3.0.2-rc.0","beta":"4.0.0-beta.15"},"versions":{"0.0.10":{"name":"@superfaceai/cli","version":"0.0.10","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.23","@superfaceai/parser":"0.0.16","@superfaceai/one-sdk":"0.0.22","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","typescript":"^4.0.5","superagent":"^6.1.0"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.10","dist":{"shasum":"c0a28d723c88aeae8fc09126944bba54fc3e2921","integrity":"sha512-llqUol9+/KNZbsLeMxeH13fUEzILSRJB1/flw3spaebi1/rG0j+LXe91UVt1eylOECB2x0zMDh7b0VQWngB26Q==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.10.tgz","fileCount":134,"unpackedSize":339146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghwueCRA9TVsSAnZWagAAiN0QAJNiejAdpmrG8W1Hzl+T\nYZjGDKofK32+62sAsSQv7OlpPbfbvf9zx5R0/sRVexw64XAAl7BGrEf+EQHC\n8Q2g+4KqDBpdp91nqt2EUKxnVEOJXqNjYxAP1Br4yI0oWoDM9VP6xZ9yQDF7\ntgg0hdJL3aMG+sQmz5UhWdfJv4KEhxm7N7kNJOpjB6uNLqr0rN7fmamjqVn1\nCBTjKkgoUfN4LTe+lWeXBM7u/fmYXjFLyfmfXY3/EdNJg5POMWqrz8UeseC/\nvCRhG4RPLiRPNyQdMFivjgjtWXCNToV3A8x+CRv22CTTWOeUN3hYrihwcdSH\n5rlgs3XfhvOjzyEpUq/oX7/Bbo2eWBKM0A/cZPmUqCcZcSKBVqQKA1lKTImV\n8SwANjzpCB/7656vRZd8Ko/ihjjxJdc8hBI4pjlCJKCI2ZZXD6S1uQCkU/bF\nX/LnVcSH5WrpTo7dFZt8P9r2Vu6MAVX/cqtf7shwXFqtmxLLSfmobTH2a9CT\nYZt1QgbWePvv+VgHcApFouUx3ra2AjZbNGIU0pAWbpw4Vzs3xFx9Q32nAuBl\ndubFlrAHxpowTiqc4wzvENvxWM5R4UmsbSiKhk+/c+F/C42U1o0gOTnDWL0x\nnpFuE1CGxI8hDY7Ln40yGCfIgSd8BbaBSAtQJqsV29KjIWsPs82nMuoGmGfs\nqa+/\r\n=Yjcp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaed7/U3o8RyUxPVw//Hw9jTYCIZpoZE9mbnnKFTllQwIhAKvUBP6hAbI4tUNJ+GigwPcMJBjSq4yV18Yizxl9eNsz"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.10_1619463069607_0.18084448704851463"},"_hasShrinkwrap":false},"0.0.11":{"name":"@superfaceai/cli","version":"0.0.11","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.23","@superfaceai/parser":"0.0.16","@superfaceai/one-sdk":"0.0.22","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","typescript":"^4.0.5","superagent":"^6.1.0"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.11","dist":{"shasum":"622aa9339acf3954a3eb7a00d63a9a71bd0641b4","integrity":"sha512-xlTLbhTtMhzUA8UcHwk109Qv1+cSs9E0fCyYbkUhMEiOfSeYABu1Nq0oKnbij6ZzwxyY/EAQwRf1pokswA4FSA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.11.tgz","fileCount":134,"unpackedSize":339888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh9MBCRA9TVsSAnZWagAA5xsQAKStm4xYRn4ddZzaGyeB\n5srfqaRl43r59wS4UG2F9Row1jwje9z9Kdz/4Qtiu48LqK+zhXA20XU4QFSM\nUe37h1fsDfMABExm77XT0yiF3dszHYiQB9Tkeal50tx+ZjY32Cx0zZFWQYOA\nTQBFDyJh3djMvMjRtfWoJPeWRLO1UIN3UigWq3JcDZKFQ1oBbWD/SvCjYTP9\nUwMi9AKmw+C1lY3t+xUTtha6cBoDQBZZ74EutxuT2SO/Qp69AzRaa79eljsS\nocxNc6vHiCyU5oinZmC7VRq2PPLjFoiGigK6k820nMS6bBvs4+XbWw4vNwY1\nEA/EN0ojU4vKS9aaK4jcdD1KwZmn5VG8UY/2/xTWQbwKEFUCBQakV7E6TXib\nirm+vBNouKmw8Y3utvfv3DMw7g4xksJUOSIJK1CAOAxKEIwl0K7i7BkZQxpd\nA72nVfItPROjPIsX+Bfzy+HbhWeoCAmGP3NZY7lwr/pYIGIS/dRZ3sUXeT5n\nt0T79wvIsvfIci09zurwww+nixW0A/e7mMbARC5MEl+xksriBPQN6kRLzu97\n2Fdmct3sLkYUMPzNQoc0GBomezowHVztoNvxfUgfQra8PaszfO7gnuS70fMV\nPSrh/qTAzxe7KiDoJiR1xO7RMyDe3ASj4C5kAy39SFNjuYQ2+ZbdJf8uygNI\nR4lT\r\n=aCTC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYZHrwMfD5xZBqO7CPrMWFjCrEzjo4iq7aTpKAZXU8YAiAoxMHd8YcHWr1Kk8JgNhMlDUjfAPek/R1qObmVAC4bSA=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.11_1619514112957_0.043109069971441816"},"_hasShrinkwrap":false},"0.0.12":{"name":"@superfaceai/cli","version":"0.0.12","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.23","@superfaceai/parser":"0.0.16","@superfaceai/one-sdk":"0.0.22","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","typescript":"^4.0.5","superagent":"^6.1.0"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.12","dist":{"shasum":"9b32765455dd383e9e528e56227077b63c67353f","integrity":"sha512-z6l1B6wWrK6Y8jq+XLtSzV8nUsbNc63K61CY60VD8G4dbwolo88CBOYka2zmocPkpcEozzB2Qvfx2J1ZTM2PTQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.12.tgz","fileCount":134,"unpackedSize":336975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgilk7CRA9TVsSAnZWagAAuSQP+wQRb74jRlSQuGBUV8lS\nmQCF4QW06fqMKet4mjgazQD5JzHZWAijsO8Zb83lR497DMnlLaZN6ketc2m0\nLXWnapVhTE6rSg+jI1AtYXmzpf6LEtfXuYZmaAf/TM3hq1m26eANxNW3UgUc\nslt4SAbpNJ7mKCNG0T7ierSEilA/9/JyWszxSMDYUAFC8YIXzv6j/NSILWkO\nqJeazMh2AcSEWW84Q3OlwrtMn7pOz5T7lTVpxcC4WeWDwRgdjXNBcDdCsVUH\nJgWZMn7vNfaJF9PSu1BDpUzTREMGmY8Efk6Dlpa9LanEszfJ5UXtucEzARoS\nYVvv3OscurEhHfQFQhoNLQXTuD2CstaweD20qXtDKybwOAhi8MRjz1ejMREF\n7ZDKHT7LuA6qtbmkLB/DStLUHqV2eLqu0UvBdfpcJqzb1z6vx4/zZb48EIKq\n0GQbJH6UX3h4Liv53jcKz5+aoUkS4MngtgB5DRDfFnQJdCnvbF0MfQI8HK8g\nlhIKfZi7g+p3biXQ3qm3uhSyKfHfHlDGOoCzW8lXK9Yckh5HwEaiwEXwzk62\nGQxJTKivD1j+OnvcUdAgASzd1K5QaxcD8KU7K6MEpdXAnnfiwrATv1JKEALR\nwPnv16sPbgh989yOQQphH1hsDitgM2eBB8jDBw41qn7audUvbQeMZPjTtjOG\n0YN1\r\n=WLiD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxgDi3paN+q2TUefSMxpYqBs2DcKPo8LLyevFlBuAV9gIgX9hH59css1aY40KkMTrPL8hjoKHfh/yjQ0wDFl/nMp0="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.12_1619679547369_0.7114525021830909"},"_hasShrinkwrap":false},"0.0.13":{"name":"@superfaceai/cli","version":"0.0.13","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.24","@superfaceai/one-sdk":"0.0.25","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","typescript":"^4.0.5","superagent":"^6.1.0"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.13","dist":{"shasum":"78b3d56929d38884c87c76b6b71ea425b31bf35b","integrity":"sha512-5T5hcwVLVQh7nNjonfrtG+MSi0SYNmI+yKau/Gcl6rNQy822WfPuCloWlh3+vIFji8JdAeXaSiCY9q+IzwzM6A==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.13.tgz","fileCount":140,"unpackedSize":340328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgknRFCRA9TVsSAnZWagAAiAAP/3emgeGWvDBEua5wO1+6\noziUg4teYmic4Lep7dqDHOr4aSUqHnMc+pBFmcEChgDVmdCK/6bGqgKPyAXg\n0NfWeV3gwsukUCDxf0M8MNFTU8ALO8VRmzRXgUOsf8qZ6oJNCGYfqj7NxsWS\nvCJ8P1MZMCLHqV7ofEXcCHP60VW9imNqW/XhC5sQWOsqZcdWoeAG4HEy9itA\nMbmGfb/NAayYZhEPMpavFbvgAvHT/QsyS0Mgp6xPvlfAG+TiXvsXU+hK6Iyz\nswaSJxlly15m9jkp30x9SpdqYxy+NBNy4cz9buvcAKCVfhXeepTPrSo9/+pK\nA78j2r2bcT0XwgAKeaHB+bkzjHxoO/t2Wu9mVLvPwlZdtVe5kpNBbx5fy49H\npjfJIdUbUXBKVi2ifX/Bzt/spGkxuIlQRoWLFvb3eoZ1K+jI+bCpGFeEAIOG\nbVNsgBfE+gS/knhaqGg6NZe4grUCpsZsra8LbiD9UNwBZ/aJX4M3rtiD6w7T\nqvtGgS0EQG2tlfJMtC9UClQN6zo1bHfKdgNXB8Ah374U7RCYNlSatJbntfjS\n01XsbpLmvdJcKg18CB+7pHPf6u5ZDpNCM73xkG7UKBBETfuvV+cJd/zZ/oXP\nWl8xedEWx132iZEH5PZnk/7kTGxY/ugz0b54ly1FFeEd4NKdiYSm0RD6oAmU\nm2z5\r\n=2wNU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbSkxHHSyW2MQPn8h1HsJaYJ3UKU2sMZTYJaE162QaEAiBIlp72JJKE+QsDMbJ+jtRwrgE2QPR2LMraS+O24UasDw=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.13_1620210756949_0.11735456952012036"},"_hasShrinkwrap":false},"0.0.14":{"name":"@superfaceai/cli","version":"0.0.14","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.26","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","typescript":"^4.0.5","superagent":"^6.1.0"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.14","dist":{"shasum":"c1ada11f3b05f76e5262c063f5889b38ba0d827c","integrity":"sha512-Frka4WzTU+HK91ysxMMVvXIz9OlGBeFbJbgVy35zyjyv9mS7fsD3d5M99ynrysqqG2XycibjywAoHIKUw9CmEg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.14.tgz","fileCount":140,"unpackedSize":341419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm7dMCRA9TVsSAnZWagAA5+oP/RK3m3Bv3MEDzbW5A6Cg\n4tXi/kgA71GUwXSB3xIdqaeZcGevCvmVGYYlmG6oOpl+qzCsql98V1Y5pSiG\ntSgZyvg3XQ41IYt8Ccem5pDdHJ90ylMkLv0mpOeUSS6DL8wRB5AwuQxNyqQV\nEUU3rgzVmX67/wcuv17WkHr5nGyyCquLR07BUzXQOSs+oZ4Lwaw6knOq5nmE\nlE+J9YWFGpQN64ZXR6N7tzWOl3lCB9glaDRSfPbwUN8HNEp2C7tH6ZCY43da\nbl1OVWMO3TcMc0z9a48EX7wrJekvre3ct1pIEzU2CAiVYRbbbBoEN3ErjnqL\nSU9o6kcmzHyRukYMqBodwk/6MEiRD1u9m51H+NICBxdxZ+3LPDB/xb6PTk3A\n80r2VP/Fe+YyEDiqwRagnOSuBddL75t/cN5wD9y9VHcB7N/ctWn3uDGloP0p\nhypHEl7jy9KtYjaDFwMJRUABVCci2WonBiFqmLu4KzXSACXyX0UHOEO3B/oK\nECG+tT/ThWqOVgyVJzV/tW/jB1tYIsPfnuf57ZgNRrgtZfwvboSJOCh5Q/vF\nxLgWNMuUX9PEXYrQVdMMmO09nAWMQTNak/nY0UmV/xFdOaAao2VJOjygGdJY\nWLt0z5Te6uEJYheNghzX+WFxIFhL+2zLbXyJW/vDk6eatxGQdJyvk/bVQE/n\nBF7O\r\n=N8yx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgNnry67U3l39PNgmZ9LSFo6XofjLyOsPG9otnU3pK3QIgFh3Y02gJ2lCXjPLHVhBxvhPglvZMgzYSZizVW73vL/E="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.14_1620817740051_0.019523978883414728"},"_hasShrinkwrap":false},"0.0.15":{"name":"@superfaceai/cli","version":"0.0.15","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","concat-stream":"^2.0.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","mockttp":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.27","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.15","dist":{"shasum":"13d90ab26270cc2898b7266035dfd9eb422f2e9c","integrity":"sha512-iQdOWrcjPDx/0r+afReKynEat/cB3AIDXbGmLSZoDmT+yVy6gIiiBZZILO6h6vq7Z419ygFm+vi21dX2Yg//Qg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.15.tgz","fileCount":152,"unpackedSize":377475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguMKzCRA9TVsSAnZWagAALpQQAKESS0HpLV0ut4Q4aRiu\nC8ofadl46tFSB8UOPkWAK96WK+vX3zpJO3nHGn0kJnYqMw8QsFE5n1ppkALo\nxAzEBw6IZ407nQcAAIaVEspTbyzoRRW/Hp3GTAJH/XDcnYimOT1mdiWMPUG7\nR83TdCAREqOMqn9XOADpVFqx8C80lMF0jIiwSl1rW+IrZI+3TALTL+FvjqLf\nsa7twV1kc+fGml55jA7RGbNzYdLaul9ytJ3Zy+TNV13WWZyg4ciYacEJw+4K\nid6mgB0UCJDG5P095YwoNIag7tcIe/ebQAA2HNO/sOx5JmTlCFkxVhgqmJcw\nFXzEilhInQ6XRAAtI9GTtzzaOAaDdZBZzHysXO6QsLMNL9KgZkEaP+xxdQBy\nX6etzOohumJHNwzjM+M5dYTE35kDi8YziRGk+ehiNgteOY+iuaGt+9ehMz9r\ndNNsgvxCv+klZp59MiLKrQtcwzDNNvrCoRVSWUyC3xejUcIOGicViwo/Gvmx\nwFaGwTvDzZ4zobJjuPJbS7hgZO6gu6rHDmw5j7RXsU9fWabGNQnvMm87MVHe\nBvBG6MVQj4NKB9RDcvMk+mEP3w667i2Y3tXTTvqNR9yv6zA8GBhvDoPqWd5u\ng384q90ZIwsP6kqkbiqXASWraQ6lwFudKDXZ59JAU6LLZzIDNeHwY1jBi3Dl\nAh5O\r\n=S+n4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbH/NGvJ7fAaHJJKxdk2i2kWsOFZ3Xl/yLysR4tFk5zAiA7CSizzek6IIqUVUxJCnzG7JK3kkkdXQ5xIGuErIavCg=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.15_1622721202896_0.292829355227993"},"_hasShrinkwrap":false},"0.0.16":{"name":"@superfaceai/cli","version":"0.0.16","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","concat-stream":"^2.0.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","mockttp":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.27","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.16","dist":{"shasum":"48b73708978d2f825c24519cb653578ee597d910","integrity":"sha512-HPk8H3QInzc5wJ2xk05GgzAptXXEz6NKoRY5FRUcFcePIk14qXD2trf92ykoF4VN+UvKcGjq2TvntWgQFhO/SA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.16.tgz","fileCount":152,"unpackedSize":375971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgviCHCRA9TVsSAnZWagAAIDwP/jJAkYJ5Ff7yZjRc2qih\nGoZbBLabxFtAYt0sePQ9sme1uadiUusT6uNgVAcNWzvmJK3m10yygGGnxdHG\n82/QBCBCw4xdj2bshGdlriXORcXrz9qjNG4Zu1PTlQsWdQW6sEszEWB2Txke\ninnEM3l38P1wf8803HpSHQYDb7chbYFi44Ep1b91Xo+/rAxFk4ln4SwzJLd2\nVvHJtid4VHTN+igJ09kQlxqCCHWFQIXZldeQJLeKPE1X1tDQBY8zvNT0yoQ/\ntcnXfaaWmOBJTdkuCSNEf7/zX5te790gwbzZX0CnD34t5KI1uMT0hQcWSbv6\nz/8Ge2erZr5JAzCgSxN6to1AtBpItpUe3JahE4PIf0Lwf2b1BFfqG+F0eYl6\nMykObCT+FLZ2VbbqNBjohxkeWb5W/6+thbwEGhawb2+N9UQo2ySoB24rnP+v\n0TllVqvmjuIJ5kFdyf5SWnzik0tsfFQ0AujewLdSpkB5ajp5pnv+DAqjj4JR\nUY7u7Z3YKICcR7T8D9K1FtAc6Z2QxtjpIkbt4ODm9JEmFWrgJGh5qlspNnMw\ng4yx29n0dRMLYsusO1dd1FttkEgRJ1Hoo10k9bTkM7dstk3mrMb+5VZkCU5P\ndTqVcn3ioVda30W34cJ0oVeY9A5NedfV7JnT1Q+QIO6gO0w4w6T+dDnQSFMe\nJ1gv\r\n=VIF7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEV9Z1rSxMF/ZVEtgLrIRU3w2FwG14QdXeG3yZlcx9HBAiBIGL6+nninEfOuwSBkTDwxpKFlc5/MRhH2WbRyd138oQ=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.16_1623072902958_0.6858831363617444"},"_hasShrinkwrap":false},"0.0.17":{"name":"@superfaceai/cli","version":"0.0.17","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","concat-stream":"^2.0.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","mockttp":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.27","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.17","dist":{"shasum":"2a8b1d3bdeccc7d27452518bd58bb45764c11dd2","integrity":"sha512-Ae1O5syWTKSTiN4vCGTV2OH8I0klu9LszIxLm/4gEi16liMuCZtiRqYqYaZ976fwMO/jIxO/rqKF7YW6b0xXQQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.17.tgz","fileCount":152,"unpackedSize":378615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvywkCRA9TVsSAnZWagAAj/MP/jYgpEu3utqUcF3v6Qwr\n60Y/lzKDRVGEjLbcnShmvM6E5Q1/SuEBIT0JafayKgsRvsGnZ0eHm6uydaD4\nLeM/Ds3xfHQf0kGA5CobCCHfupzrM63MJQcgjLovznzvh/674jK+49Kl5DHU\nFglIDYKOplpdhObf/kQY60hJzbffq/6oZZ2aebB9nIa92uULgK/ZQtfTjiAU\nMOMex8U/V9KQmnixbq282nzEkz+F3SlPkVtoAhc3nPkOJeoMM/UIPIZxHxIB\nS7Nv6pUYiQc/T2BT89NNzsYtfO9jiOHPjy3xJEQ8eAKGRw+eql4RGXsMmueB\n6zC1i+Ig/nMD6MX4rBaUNkmf+/JDzrPbYGlnsVmbJirtQVOoCVW+02A2RUka\ncs5sSAjMRx/DEau20UY+0doIT2c7tnEoA0FY45l687WLXL3CSqUwHk1IUla7\nQhbat+pnG0GdTxPyKEN8YatMcaQmEppZycDeVIRxR0TUg5kHwvJsND4tA1GG\nLxRV+Cd3epdswGL306cwScCF3rnxA8wMpuZyHDR7IDl1nm51rc1jg47k1pci\nsOCcB/5tAyE3wFRlS5LX5OY4xxdunjjXvIh1Mt3Ro9H4IxuRVFae/heKKNZ1\ngETOr1xkMZbXfOg3jGj36wcwzTJ5tdjKeIGB0Jnujsl6cRRYgE+I0BQeyrzu\nJnol\r\n=s/AB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0QBHnrQlQm+INaxxFwqQpZQ6UXGSqJ6IjqDq6erqMIwIhAJz9gev0be3GHRfKjoN5VOPH+df+/qVuvylmktG9qIUc"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.17_1623141412528_0.7729464513869684"},"_hasShrinkwrap":false},"0.0.18":{"name":"@superfaceai/cli","version":"0.0.18","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","concat-stream":"^2.0.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","mockttp":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.28","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.18","dist":{"shasum":"5f59643caba146c16c304eb19438b59bb87ac103","integrity":"sha512-Meen03RwP0wb912lGDxVZu8mrx0zKNlRDAAyc31O5fvN/aDZIitbbLwso6qPFbHs5xNXtA7aYgg2P1WAAXbwMw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.18.tgz","fileCount":149,"unpackedSize":335994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyKDnCRA9TVsSAnZWagAAFaMP/ikEJrf5j/ezC+W+tpeV\nHkO+n8O8uelTLuZ4D64PopL85PrNzlffQv3rj/m6C4tG4Dcp9IWlwqVzyzYt\nXJKLgWCPMA2wEFFM1G3bJyELcxPyxISlVrJSa4Qo6cNjl2C+CNpshim4aB9r\nuMBBFE5SINWybAHodds3IcONpsag4z93sKuLdUIMbnjXx60Tlux9FnlzrMrr\nyRN5cbwUPvToYVIJ+RI1NXPPCCGYgI4kPZrwQqbvxZBugTh6qNQVeujPfXy1\n65VVuffssaLlVnl7fNRmGibjlKKHJn3ndmrwXpsl5dS11mk+56IuEdqL6IMR\n8HVnzoSxZjacaZD4fmi4gxx/XMudxoVc6maz0OCzhJTLrYzv0Lj2TR/gFhKB\njNc6Xe0hXMw1PW7PNWiivpzvd3wEDsEuDWZG52g64Ui2HocNKfZ6vtXACI4o\n6OC2GiFFQP3yOBAkPaGfP85HU0bFttjJHdE3t0i1oRONOkSsEjVBl8iWWGP9\nhOHVh45Z4hKUwnZHGT45I7+Y47BA4qAgCLyq1whV+iNCfSLt4yMKnOHRSn6B\nHXAO7OlePRNpH5N/xkR94Zdbh+Ek+/OEeWGUAiIK/ks3v95kNEiOZKUEWliJ\n9bMEQDHdUwj2YAgcL/dLKMKXzMGSnO1U5kmbjJw3wFahcLIix5n0AKYgjaj5\n5I7p\r\n=8WaA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGiKeUw3Noz9tlIitvS2JeMKTF9vHs5nXYJqEQc/oiSAiEA9MDQwu4zcAf/knXzx/uaTxEG5ANaO38yEcvTMmq54sc="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.18_1623761127821_0.4316446418626796"},"_hasShrinkwrap":false},"0.0.19":{"name":"@superfaceai/cli","version":"0.0.19","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.15","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","concat-stream":"^2.0.0","eslint":"^7.13.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.2","eslint-plugin-simple-import-sort":"^6.0.1","jest":"^26.6.3","mockttp":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"0.0.28","@superfaceai/parser":"0.0.17","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.19","dist":{"shasum":"9bbdf78c6faea65db136e8c75916a38c4a2d7f5e","integrity":"sha512-FL8Iiq9yC7ELvbLbZxpVF3oCsKg2u9ijp4olMpD9ADTIM9Cbjwf/PrFTPk6UgGLvVFi+Vgl2iGWALnPZ5p00nA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.19.tgz","fileCount":149,"unpackedSize":336653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5ovuCRA9TVsSAnZWagAACg4P/3PaZXYptD5pDfuXnnV9\nD4pA9bI+dQagig0SKhSA/WdnHS43iPr99kx9TL/Pzh5LwaB0vCclsYqNiybV\nd7CUxTkHvF6lMk5iQhf2G50zxufBat4QJUtfsBys/ffyJYuNBWo93qujMvnQ\nAn2wDhMqnkT64T2/QyN5yavrgysjecOXYfdTdF1ueysDy+OPgbcRH7u4y4Rl\nvYPwQnnXlD23zgn1KpsE1k16vAV7h2W5JvJfq3mCB6D/tJmYtsgVHhHb6v6O\nKn41jLMOzKnHfzV0uA0uVM3xwtQMbVLdBP/lrWcrhZr0w6uPwE0etXx7ubHE\nTRGO7XUfYB9Scx5glYpFdhK+KcmiPcO17iQLv0p5LtwEXPYf/sxu4H5+JPm+\n4GMbDGv0o05Vf4aJYWwVM203sGLkuuthIr1XSRSJlORrTKR4li4qgRSA7gLO\nbh3X2iT365zZz0M7F71MaQrTG45MhUlw9rw9tD0WJ5BVmxu/BiywihIxG8pc\nrDjC4UUaC6OgeDBAXBxpSAngnPjFLgpu15XshvE+1EY2dctyxJCrBhoBj3sp\nalwC/bQP8AYPjFQjATOo25GiTLU5hR2/Hx0tRSXNC4bRl8N2VZOcmTRKgZLR\nQQEp/zCsDUnEHD2AlGLm1Ie2Vly88l6OAP9bK4EKLGdUfqyAQ1vzs85kVTTm\nXTvg\r\n=S2Gi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqaEoDmMObc3tUrGaZ7rLuCF/aHdJbam2s0M7/dtnz7wIgDiRqieEFkOBeH3p7OZEe3bQ94DYuB6AoM107UnaQ6oI="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"superface-bot","email":"hello@superface.ai"},{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.19_1625721837851_0.45245028350331284"},"_hasShrinkwrap":false},"0.0.20":{"name":"@superfaceai/cli","version":"0.0.20","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.0.6","mockttp":"^2.1.1","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"^0.0.29","@superfaceai/parser":"0.0.19","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.20","dist":{"shasum":"63d6ce1b5e7f623e77153fee3e6b12b9d2ba6cde","integrity":"sha512-fzqa6wc5dp9P/4Kahcp1297Dqr+kQVD1ugtgYeIPf1fcWJNQUbHKyl5QnQEoxNAy2K4UEJUEJgXLkTULUGVCRg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.20.tgz","fileCount":149,"unpackedSize":361196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9tsRCRA9TVsSAnZWagAAzJMP/0zLM1Mam9b6Pq3CC7Il\nbn+V9fadXoZ1O6drPeAHYVxxoPGDq0cHuQziPTMkMbU6eEaDp/hlhuctzwgM\nWwK4wiaoZKMzSocOlhDcvgW6vCysJ4RXZUg9uIggJF1cA6War5dcdibDOAdD\nTkruvo0D5rSQRe5vBt/ox6dtOsVCdu36pIlKsMiQLjKtjXyu2c7/DUOUyp4p\nikTRXkAuT74B6b84dC8T5QSJi1pz07zFenC8my44gq5qjs3ABMbc8J8AiqlQ\n7myI2Sjkmx7vu3eJmfKWtcADHSrZCzrmaodxUP8Nwp0wns0tKvF86C77Y6XR\nEVMqa3mC1kn7M8xFG9x0Cexp+d/e5pCT+Rgg7jQgwa8duk2GQ4yh1IHTfsmH\nFeeGXrwgflTbfIv7wT1XDBZ3CzvjegyPI9YAnVj9uvZ1ZXRb0liHHCVuPe4a\nsOb/r9N7NWBVmgmroJ1uN2FykvvPseaONiRfuHjzo89s9qe2MxmyMGDBNTDo\nRE0Ra3u70as6PPb9xqpTCTphlfQnchEDCj0QWwTzuoXfc8w61QtArn8ARwSZ\n/bGPrmUDbbE+fFyVfmh9H+jvsAZD7o1Z3Xsdx+XalHY14//DecV3kIH4X1jp\nHMb0DE6zbFCfzeMa4pxI8JRligXoaige1Cl/3Na/Fa+MEmtoHxADbQ/JK/U8\nyJOs\r\n=nXVp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyeqbcC8TDZO7ERxzZDzDXVsmB6uOGJEl4/KDkLmUbIQIhANYKcIllPOm429CUuajJAHPAq3xtcIt1JK4kTEbsYPMi"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.20_1626790672820_0.22382637673348071"},"_hasShrinkwrap":false},"0.0.22":{"name":"@superfaceai/cli","version":"0.0.22","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.0.6","mockttp":"^2.1.1","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^0.0.25","@superfaceai/one-sdk":"^0.0.29","@superfaceai/parser":"0.0.19","chalk":"^4.1.0","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","rimraf":"^3.0.2","superagent":"^6.1.0","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.22","dist":{"shasum":"02bfd30f9c40587c6f6866aed5153a7543625d2f","integrity":"sha512-srO7pVH1d94Ol+2WYwdGwOsmb3tqev5hr2szxk0Gl91N3k+Sk7K1ruRwQcilCKaBUTKsQKrut5gYcoqSEAZY6g==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.22.tgz","fileCount":140,"unpackedSize":365162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCmUmCRA9TVsSAnZWagAAyNQQAIv1kLYp7TJGmGJBK96/\npmtLaEDZzUPcwRb1bUJOEXmQVA9CGp0adivyBZoV3kugMk34Q2dhnyUH+Z7t\nXxH5IrF0goMyjQ2h9jrdWd7dqfvKl446v88yhS2w9Pzn8PDmv8tPu2A9qoUd\nXqW1y4RaIJ0vCrYW1yYWJCYOUCGRTTx3WSrdQzJq1PdWuYsLojCsUerhXga3\nvrDPZd7mUS90fmmpksEFKRe9V/rvYG1S14WitwJD208t61XX8sAWz9JOScSQ\nVrTfvL6H8KRrkvmx7KqZaKir0JiR4ECT3u6TWUEMRcQaT2adD2Qd2Yz6doXq\n0pCqHJGuaAUU0NivPy2ohSX0OdIlnGlUqo8WaBmgxGqwJoPTrhfSl+VhZW43\n98FO6CMLvAJb+WAp0cWonQV8OI1FRk7G6z2CZ2LmLlHsHGE296cvnTk5h02D\niSQ+ztQPsp+oGB1hS0ni02Iq95CTzljWfBarrELQoNIc4w1UCaRuT3gNKq3l\nIXsY64gYnWOIY1xzp4PWe2yYasKSD6VsWKUUe5O6s94trFEU1+OeFqrtbG4r\nyCHadz9KKJPhOdCfHPuurh6Zc/KX3uNI3Xyo1cZ72DzkqDb3dL0ngpCDWkY5\nW3GXb3YmUyN09ICwsSSJqEZKvQZ/AoXnPfNHYd0T1zIkqDtCA16MgB8Y6787\nq2Yd\r\n=Yp03\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD861W5QTO5EcI5nbzNI4mFLa/OoQjqc9FC0OF/5cN+2wIgUbqv8sarhCnRb26xN0MuTczi2tMaXEzWbx2udMmkiKM="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.22_1628071206580_0.4456047583345306"},"_hasShrinkwrap":false},"0.0.23":{"name":"@superfaceai/cli","version":"0.0.23","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.0.6","mockttp":"^2.1.1","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/service-client":"0.0.23","@superfaceai/ast":"0.0.28","@superfaceai/parser":"0.0.21","@superfaceai/one-sdk":"0.0.33","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.23","dist":{"shasum":"b75511ff5de065b73e6ab69e6cde9f9999bd257a","integrity":"sha512-0LOwi4Sv7U2/OPwEvR8FhLEBXl4Y28Wmjk8fHLOMNbZN7+YdSMbAn0vCmAaF3JGWNRh69JgepsaKOSWFsI0/6Q==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.23.tgz","fileCount":179,"unpackedSize":489244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNyjPCRA9TVsSAnZWagAAfDwQAI5/RvMxRW83iY54WmAn\ndFc203Wy8pM4eq6loLoiUzosZEhzNsk/bOj3Ctz2PWfq7ZnxxwImB+/R5dc6\n3LG43dRRIi279sa+n4RqKIm2AZATwFkXKH8QiComYRGwe6JaLP+JUNgAvETe\nVToZvwrRJvpqLpRuwVE1WBJBcnqS65sSPRz5ABhpgUd1TKV9uha0dEA89K0t\nEXIQO7squle/D2zWH4rjEQpJwXDl1q/sXH6uSrUghNecKF64gq57jwKy+z9L\nScz2IocxnlvjJNckopKIo/GrqDN1NWTr6BbrhV9WMPvl1tVh6ZOhHrwOpkfu\ncxR9A5yTR7SBxsXpVLg9dmjRUCE3C14XtRmwAb3x6lO0tTBm/VLum7sjOaTq\n6j2ndQZ8HIaYoHzSSR8qscu6mU6B9KeVUAuVVSuthrneInd16+/8ZEXeXLln\nuXVgMSuhEfkLQ9b8AWvqtUlTUMgS8Ot6D1xHxtGbIqncsYBAH3QPPwIYO6Xg\nzMN+/tL6lgynRo2/hnq6vTyXB347Ad69al9WGB0qC/qs4qHg/eGN/U/2Qfjm\nFH9YyAy4Cfx6ORbD9iRjvGp5BgCjleyb3xB6IuUCn6xiPdebZEGa23aCe2bj\nX+3ijMbbHiI7HdvNtsFoswT9eZTcLePeWXXTNxeBGQyyDzJpgHFPWCvgbXUR\nrMvz\r\n=kIIl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDTmH7YuqATWy8F/YJD7cDY7reXB4uLudLmG4cIWhFZ1AiEAuU7cgqm2ndA/o2MciJw7HdRkRqGPYoEdz/3bFp+OkVM="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.23_1631004879573_0.4344119624557754"},"_hasShrinkwrap":false},"0.0.24":{"name":"@superfaceai/cli","version":"0.0.24","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/service-client":"0.0.23","@superfaceai/ast":"0.0.29","@superfaceai/parser":"0.0.21","@superfaceai/one-sdk":"0.0.33","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.24","dist":{"shasum":"09762b2e272290e233e1d986b1e9ed4e13ba9a01","integrity":"sha512-R9XXotIhxsysNYxcYlZ4IGkuVuylTSnn716aaFIDVE7mCTV4ee5sXqUbNCsDKJUip9LIR2ZVH/mMu+fo5+otMA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.24.tgz","fileCount":179,"unpackedSize":487176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFalb7YTCt+Y1Ag3FNo2AHUDPH/U//nhDIw4tMGOIV3wAiEAg8rw17I2xKA4jdvVB37N7K2hvCV1ZtuS8dfptmCG4vw="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.24_1632379580550_0.9788670615852013"},"_hasShrinkwrap":false},"0.0.25":{"name":"@superfaceai/cli","version":"0.0.25","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/service-client":"0.0.23","@superfaceai/ast":"0.0.31","@superfaceai/parser":"0.0.21","@superfaceai/one-sdk":"0.0.36","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.25","dist":{"shasum":"4ecf3e6bdaa123734229bf80aaa510d6e63e05be","integrity":"sha512-D48prXqw3zl3BfFuzwqyuomoRR113opyqUYhGSpZ7exx2DYgFrVyMz3eZ+Y/S7VBHY4ZLy0ovO2UyXdf11cEvQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.25.tgz","fileCount":182,"unpackedSize":498010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSXjy6ag7qkWWOtDDgycgFGCE7q/B+eGE5AaoGSd1vTgIgUQSncJhS5Wt5FLMKmAxfV7fH9/d/FS2sh+zpkZIdhMg="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.25_1632926598819_0.7250056642287954"},"_hasShrinkwrap":false},"0.0.26":{"name":"@superfaceai/cli","version":"0.0.26","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"jest","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/service-client":"0.0.23","@superfaceai/ast":"0.0.31","@superfaceai/parser":"0.0.21","@superfaceai/one-sdk":"0.0.36","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.26","dist":{"shasum":"395ad723cb0ca310b46a48d5e5b5030e7169edfa","integrity":"sha512-h1LcAIdGdiHVn2qacDD+1nc6AxvqLQByTIt0EyXmWxYk72HiNv9SV/umHAbRlUHLW/mFbU81baX8MzAUMRKlkA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.26.tgz","fileCount":182,"unpackedSize":507862,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVcdsCfjfvja/ypFsyvQUmQXfWVpDGRXTHftoRFQqZxAiBIGEH16AEMQLOnh2bf31gVyKKg0k1oCUGun+rxKTwsqg=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.26_1634122236423_0.49644529949210003"},"_hasShrinkwrap":false},"0.0.27-beta.0":{"name":"@superfaceai/cli","version":"0.0.27-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/service-client":"0.0.25","@superfaceai/ast":"0.0.35-beta.0","@superfaceai/parser":"0.0.24-beta.1","@superfaceai/one-sdk":"0.0.41-beta.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.27-beta.0","dist":{"shasum":"519d2f7a99f42d9108ff132e13b5d1b876ab8421","integrity":"sha512-umeQqOS6mJfVWX91ATAy1My1lnLVpwr9bVcSLZNhIP0liT0mB4LlNdY/X1S1VG7SXbjGOEHOkrJYOckaF4IpUA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.27-beta.0.tgz","fileCount":185,"unpackedSize":518053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIELHG4jJeqEATALVQI2OrP0iyJxH3c1tMnr/dK1itf8vAiBo1DW+J6wIt1ZctFp+h+e9gS32qjoE7LgfaTxmzHvI0A=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.27-beta.0_1634900546068_0.8460171918617996"},"_hasShrinkwrap":false},"0.0.27-beta.1":{"name":"@superfaceai/cli","version":"0.0.27-beta.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"0.0.35-beta.0","@superfaceai/parser":"0.0.24-beta.1","@superfaceai/one-sdk":"0.0.41-beta.0","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.27-beta.1","dist":{"shasum":"0b8ca2eefd6fe56d9050dd3284f72eb1d30be5c3","integrity":"sha512-OqmhcpHvV0k4d3t4ra0SUBUO2j9n4xke0xupo3gs3fNEbC9zvZK6XwlX7b+C1fpIx98OFYqYnn+L2wlfK0H3Eg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.27-beta.1.tgz","fileCount":185,"unpackedSize":518053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpc6txaHNg7f/0rO/82Ifua4ugfnpui1onbx8un1GKHAiBI3awMD6HOSQkXUtX4+re506+DhN1iHo0kvDAkeR5DKg=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.27-beta.1_1635233324766_0.29466703529780625"},"_hasShrinkwrap":false},"0.0.27-beta.2":{"name":"@superfaceai/cli","version":"0.0.27-beta.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"0.0.35-beta.2","@superfaceai/parser":"0.0.24-beta.4","@superfaceai/one-sdk":"0.0.41-beta.2","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.27-beta.2","dist":{"shasum":"8005f60478c13dd17931eace581ebf030f4a7327","integrity":"sha512-SYsfR7o6iYJRlIKXhgY/bvD/Q/xNoUxIWEZoAG4Rc6VGQgvmBIyF467BBaRqBZ/CZrYQmC97fZRAIDkPRufLSg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.27-beta.2.tgz","fileCount":188,"unpackedSize":530916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDcZahItgGq9IhfU67op5ADXvnlGhc6GLpLSvNUf+vBAiEAiBmydyooSaW2N5ONSOaWM2JqtN9cDuhFGpJye7n8dfE="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.27-beta.2_1635771035602_0.7192218923755362"},"_hasShrinkwrap":false},"0.0.27-beta.3":{"name":"@superfaceai/cli","version":"0.0.27-beta.3","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"0.0.35-beta.2","@superfaceai/parser":"0.0.24-beta.4","@superfaceai/one-sdk":"0.0.41-beta.3","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.27-beta.3","dist":{"shasum":"8fb39aecc07e41c65b5a467c93101c08c0e07e2a","integrity":"sha512-60L4L5YJOjTnzIciVUVE+r6JfttlfQNUZxxDC+XoaV+STgUWjo/j2DhHuC9/8qLLD4wWJeckyG79XVutGxHmGg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.27-beta.3.tgz","fileCount":188,"unpackedSize":532796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5cMD3uvKwQ3PiZEBzJDcv1n3oPO5E/NQLqMm3+EdKVwIhALjSHZg0xxSXMURVlEzCPu8mYmoUMASh3TZgbCpF6idn"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.27-beta.3_1635843103364_0.5169531030698553"},"_hasShrinkwrap":false},"0.0.27-beta.4":{"name":"@superfaceai/cli","version":"0.0.27-beta.4","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"0.0.35-beta.2","@superfaceai/parser":"0.0.24-beta.5","@superfaceai/one-sdk":"0.0.41-beta.6","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@0.0.27-beta.4","dist":{"shasum":"7884ce3b29631c116bc424357caa1d1b14c198e3","integrity":"sha512-cFbG18S9FeDUczMohL404E2vL0U8FV+YxPJwbO2779kylP3fEYXiTQV7NnKEpto1VC123LwkT1IOcSjqdOOEiw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-0.0.27-beta.4.tgz","fileCount":188,"unpackedSize":532875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH18MJM9amT1sh8xeMgNmSB+gEYXGfm0tNNixpcPhBeWAiEA1jEW0zhUl9JqQ8GzUnm+V25Q1Evi7Hi6bBO2ui8sIPI="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.27-beta.4_1635939577001_0.8268090094677951"},"_hasShrinkwrap":false},"1.0.0":{"name":"@superfaceai/cli","version":"1.0.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":">=0.0.34","@superfaceai/one-sdk":"0.0.40","@superfaceai/parser":">=0.0.23","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.0.0","dist":{"shasum":"85243dedf6a7df319357b017f387860dd57ead3d","integrity":"sha512-wv2bMBLZMKpGQqT0yUMZFtekf7zBaHHjroTcmIru9YPPE03mxWV8P8z5XdT95smIv0f99X7ey+NjPbPOoBytnw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.0.0.tgz","fileCount":185,"unpackedSize":523362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAXh/ou5snCSSSQk+7jCuRHxyAalYitrjH/1h5fXZH7AiBeBpwDj0syvj7vaRGivZBap/VFiRzQC9zBbeFwj5/5Gg=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0_1636034620687_0.4564884171151442"},"_hasShrinkwrap":false},"1.0.1":{"name":"@superfaceai/cli","version":"1.0.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@superfaceai/ast":"^1.0.0","@superfaceai/parser":"^1.0.0","@superfaceai/one-sdk":"^1.0.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/service-client":"0.0.26","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.0.1","dist":{"shasum":"53c684be49c270c9eda50b01a10373db4d93d2e9","integrity":"sha512-T9nG1Pdf/fVA3K61ImFkYcduTSj6wGQTkB0Kv86APylQ+TssTq1k3U1EYuks0Q4dFnHIUJ7T7eXuvwjni3k9Xw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.0.1.tgz","fileCount":188,"unpackedSize":533044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2cqXCRA9TVsSAnZWagAAiP0QAIvImmRwCud79Vxl5hzw\n6qxe36geS2B3trLOOLmqNJipSEAkO7k8K45E+T/+cK7IRpqwbmZECBzAXEj9\nF92eqLa2rR+kIM/WypMIGivileE7K+iFwbpxJm7klMx6Kr8pyA8Q0izIP8Wl\nx/bchXANlZ0Y8hwpXLHGvSPlSI8K688pwhGxQdiDf1WFQlMKPw7rwUOj7crl\nkIPFvfWlzb2JKI8FYqGWS9vIW1ITTpwnCiyc9Wga1FBIddY0DWx380D/WlwP\nUs0Wqiur5CTaVI2Zvhnx2sBFfcQi77HfOrgkMLPpT8zs+5AhIAyJl1cD01Lf\n1TZ53VxhUWF0F0LIHV8A14+Dkeymg+2xpfwQ259bZVGHxciLmLCI6/UhpXXT\nDMOKBcZmQ79cf/9KQ8HuvweSySpofRM+VnsoAfgzzMHclpNzRSHs0nxLjTCA\n134sUeuWpRNzQzP4XmCJjRknl45c36I/0h5p2F9yJfC8xnD1faNd+PZQX3JG\ncFhPfJNS7Hre9XyWmXAJCAW7nYRiAds+gxfULilZY5MvHx56L5B5XbbSS/R1\nj9+vYhcTkCC7s3o22841qoeBrIsdbE5PDltk+OVdZzE8iKHWlQGIXIEqj+DM\nqc4upgGvZlhWL6ZQDEwHtFvmUnR1815O7N3vGybFRRQQ1gpZVOVkRTnIJC8E\nawFL\r\n=cSEz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2wlTSuUgvFJmqN3NCurieoZ06D5E5o4+JKrMjiWGidwIhAJGUvSS4cPVRgvhbjYNQixSw8w5ZG8rG2CYKdvVDfFbL"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.1_1636039819349_0.2454660811471292"},"_hasShrinkwrap":false},"1.1.0-beta.0":{"name":"@superfaceai/cli","version":"1.1.0-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.1.0","@superfaceai/one-sdk":"1.3.0","@superfaceai/parser":"^1.1.0","@superfaceai/service-client":"^1.1.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.1.0-beta.0","dist":{"shasum":"d12b4225e334ad9f72eca5f91714e3fa0faa6519","integrity":"sha512-fj1myNoSD3/YUngsNEThATzqVKMAFaYB7vGgQlqi15mGnl0A/ZpVayTNKhVdutX/D9t7Z+Tyvkdg3w8ln5oP2g==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.1.0-beta.0.tgz","fileCount":188,"unpackedSize":547520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDjt2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkAg//RxfJi/hgX+JJS96IDi9P1ac7azSbYKsJ5ELG/gpCh0A1L2vf\r\nxZfcQOjS2kfyNEhv5raIMbg7mL2HoXe6XD4Gtmm3hkkqW5Zb/YTNR0H7L7Jz\r\nIQrvjzJMeDn/yokDYBZoMFv/WvWGV1DJ5RplyQwLSjbek753HxCCGfbLughl\r\n3kjbLHhF/43hjV4iuZJzSAatAZovIZrUq8bX+OU3R+ORsfiBxFjNC9CUuHtn\r\n+HOHOzIdYTxN9GlDV7dK7Ii2FS8tcqNbF3ecqr9joJWqHAsLS+IKv9aLzvtu\r\ndVfYEgmL6KYIYdgXd7oAtoy7KI3M6kMrtz55TQepAGpH3rpS/E4/kMAKKbRa\r\nQ+BHbntTkMPBEM3DrXTYy6OCqtrvBH5hkc9DymB3hbLubOqYJ/v3NiwSsiZ3\r\nvuJLFE3HKMlkBRZf8sHse12cOoK63QI1Ws82BJMpRBM7anfiw9+vfy7XRyeV\r\n7mTY43EJDFgLD6cpmQjBVauWaHFn2hy1/U+0W+YDNVgPO4eUJx7JdqI3k2vo\r\nKqqEK064QZuGpQnfZeXsOeUmDsqLAvw5cKIn8ii1WGGpB0lMj+8V35cL9p7o\r\nYKRMJ+WzpIW61/HhSr5A/IruWD+TqIItK/U2gzSLR76GOqtpJaNHniCPQZIh\r\nuC6y1vtb2puv1VuxjXVTxhtd1VYpkAqroqE=\r\n=tYCD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV7A5E8IHPXgDBghGO/VXgTR0SmtonMN+1FAo2mGSjnwIhAJBZziU92phupzBC/GQSwxda8tjROcPA8iIQg3rZggQc"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.1.0-beta.0_1645099894540_0.33504275621536816"},"_hasShrinkwrap":false},"1.1.0":{"name":"@superfaceai/cli","version":"1.1.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.1.0","@superfaceai/one-sdk":"1.3.0","@superfaceai/parser":"^1.1.0","@superfaceai/service-client":"^1.1.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.1.0","dist":{"shasum":"f351b3beb9f49cb0fdc043780124dee1e39185de","integrity":"sha512-G3s1uYl98vWw3vCzEIU/yqL07VbnJyu7fRWBToQq7cQaTJbfqm9zGGJTElUEgzHh4VXTpeaabovMuT2lpkzVAw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.1.0.tgz","fileCount":188,"unpackedSize":549114,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGJeqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrw9A//X4wQsf5r4DzQ8Cax+8JVyx8ithC8R62VISNlLcXeA1GPxIpj\r\ncv+cxFlaV3EoSNqM9cLUKqo1fHc+csszzsWNpD8BK5nsiAVGdYzXGPXdNT/E\r\nQqi6++A7C7zqfD1UtakyhlolWcqe1YrujTnp8iWkQpIhZYGDGPCkwUTFfkSw\r\n38LxqXKwAj/PTVbzE/QHpz02xPHAALlunOOIouN/pMDdWj7gTgbcPqIRYAFP\r\n1AIpF1sM2VkGJgndkmKNFfJPvP24SdpUqEKNUXt6t2N/m+vFEJK5G099gUa5\r\nsF4jS13rLqsOdtj2Dp4qg1XGI/Uvi+pATONA7E2JaKuNQsLcPIhBA/hOVald\r\nAlYef41Lxk5I7rePFNdCrClCInbtMblbmMPghB5uxMgl7Fno87gPqrWNCnbd\r\n7uoHtYkaan3HcCUNwDHBmof4qFLM2Jfn4QLUuThSgDDMusQ+NLcx/p/K0vrO\r\novOoWTtztdT5uip4ae7NmpF8DgFLBxabGouu1z2W5WiHQLKNJbEoYrKSF9Cq\r\nWqmhbJTvbNj/7x88t84SMn9UzQnIFEW9e549Wy7qdPBNAa6Vtye0V/Ma4958\r\nH2Prez50FbZitWzC91xoVK8anG57+AIhUBA5FjTriq3L6E18J/fdgQ1iwyXz\r\nj7D2C2Um10U4NDZb8XwfwAt6sz8VIZOOBjA=\r\n=qB8O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi9/u8bKYscQ5FBr5pppAcYa+NLkWF4Sv5WqzSJ2kqdgIhAKq8J8tbpPolj/IMy76O2tsuC1I9cf69gev2vPwambdw"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.1.0_1645778858337_0.9354258082288713"},"_hasShrinkwrap":false},"1.2.0-beta.0":{"name":"@superfaceai/cli","version":"1.2.0-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"1.2.0-rc.3","@superfaceai/one-sdk":"1.4.0-beta.1","@superfaceai/parser":"1.2.0-beta.2","@superfaceai/service-client":"^1.1.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u \n  SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: long] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/characeter-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/characeter-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/characeter-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.2.0-beta.0","dist":{"shasum":"9c1236e72c590b77040a4dec4264228d58d7eb8d","integrity":"sha512-3OSSU9smB8KDhyYljhh0jQWshnzway3THNYVQNeNYIJcN3fWVIYqv5BLbbcGWtzW/1sHdQYQeo2cujZA8VvL6Q==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.2.0-beta.0.tgz","fileCount":188,"unpackedSize":549488,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJK+JzwL3jhiJkgA2xRV/zu16fkNiHdP5Zlo6Nvo+ZzAiAIZlMfRf6J+VTbxlqwKeQTbxd2l/Av6K0m/Il7eZEqFg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS/HZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTYg/8C4VVfP+5ortSIKh/fu9EJhFT4Hn07pSBAjtalJrNxt051kL6\r\n6Ck0eO51LFfj3p1aOX4zRTe9OoXnMx4DhcY1KidA1g3+pC6seae30LYUctUb\r\n4mIbb1Pz4FO7e6pJNmycZYVYhpA396oe6+CRc02Z5vBGZKLf+GzJdw4PiEY+\r\nDDOLTbn4pr09SI41Z+qFiSHlHPFhuO7C+yZKJqdJCZD6WYVFUDXw0xtv9h+6\r\nYcYozxGg2jMxBWw5B1O7uozHNoQf4iZ3ISbvZ0sMQmaoiLoTLHecVyjycsCU\r\nboSjJuE7lwJCKZgdJb1pttuzzhpJOxY2h/MBPdscWUa/MwUeI3j3yqzwk9dG\r\n1Bmnw97S/+VCsq8nJWk+UIFqIiLFxGeGVhSjY+BZ/Tr02h0w/e4kahn3DMes\r\nPkK339vHuO0nChpAcB8gpg6A+WnEHFleQrRJz0cnA90S4u6M2cUD9I+koUCo\r\nBADwbJNxTJMCuzCn6TVxElyFjELVFPcAGNxWV9Ej2Fkl4+xjuwX2xLEUVpij\r\nQIkRmYkW95ATkAkz+B2THiYgnFsxWPjFRT5t+DAl98th+df4P9wfWPc1X48Z\r\nsGhAj+Vj85wMmmRW3Q6bd0pYiEolwSs2sJW4Pd+HjIbzzhI4P4GYOhx0HlkG\r\nh0kihQe3zgp/J6e/OVBSM+qI2vZmbLynfu0=\r\n=OlJx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.2.0-beta.0_1649144281626_0.25985802324561"},"_hasShrinkwrap":false},"1.1.1":{"name":"@superfaceai/cli","version":"1.1.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.1.0","@superfaceai/one-sdk":"1.3.0","@superfaceai/parser":"^1.1.0","@superfaceai/service-client":"^1.1.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@1.1.1","dist":{"shasum":"0414d962ce99c32344751e97f2c9557740914544","integrity":"sha512-PYuiZbRb0RF7L8vGqLHAxVJc+K93oBVRnknAppEPl5ej6T13aXCKU8R3w+yjwDDw8wgkDQnFMUh6DIUCKWOBcg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-1.1.1.tgz","fileCount":188,"unpackedSize":550694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMB+t+ogzDhoDc/3Hn9XNe2xMXlbh8HXfl8A2UPkpN0AIgBg2uz0bEguZ/ut+QIiPRKwGTERMd1A/olHcV8Cb0eXQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigzEhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqgjw//Z2CoikdPfqy9WycCmIIti0A9PNFKw38ciTAc74kA6WmuSNsW\r\ndQY2n+RLM/Tn/IWhqL0m9WTgEGngs4x+o1ZnIULF4dwzCON1SVoBOuB7a5zy\r\neAcIJ0b9hNZqwR+K7rfVdNE7MFYVXT//gRMvLd55rFQrNj7XClEs75KPHG7z\r\nNNfehdPfJUeuSzaZJp+VWDCJzzjFM8vzGiP310Hixn+KYdzlyAG0z7vnZRms\r\nM4dWsr4fPshYPxGilOEx7aBh09TiWH3R5f4Kn9/St7zkdcvNE9EaKQRGKg29\r\n7jhBcf1ERj9kxeWi8TNclvnsvCwnrechGD4UZgikY3q2A+A667oHaq8usJln\r\nPJZnkJOQfi2ocFAReuRoeIF+CROikZVWOjDEVgmjD2yeuAllc2FSwRItPieA\r\nADUG+GI8NUMGX7ZMqBYaT1CJ3JkAqCRW1cuYz8FlFWORi+LXko8oOu7wG7dM\r\nmMSL9YQaRVoC0SlaNaXcS0LjFI5/JmQ/0+d7+2pinDckm/7yAS+bVUYA9JEB\r\nB9lfb61bJKlwWIdt95S7ZuvjBez3QXDcj/1a+uyKcM0f03C3HUDfurFjIv4B\r\nMPMVc31XvPE92AOKlF3sQqRe4boH302MwR8N2FNlhhj4nOm5caQxxIHjd17N\r\nUEs4+ZE85bvAACtnPln8uKpl2zwDBE+4xm8=\r\n=ToyE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.1.1_1652764961138_0.661716974670125"},"_hasShrinkwrap":false},"2.0.0-beta.0":{"name":"@superfaceai/cli","version":"2.0.0-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0-rc.1","@superfaceai/parser":"^1.2.0","@superfaceai/service-client":"^3.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-u\n    <value>] [-t <value>] [-v <value>] [--init | --no-init] [--no-super-json] [-i | -q | --profile | --map | --provider]\n    [-p <value>] [--mapFileName <value>] [--profileFileName <value>] [--providerFileName <value>] [-s <value>]\n\nFLAGS\n  -h, --help                  show CLI help\n  -i, --interactive           When set to true, command is used in interactive mode.\n  -p, --path=<value>          Base path where files will be created\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  -t, --variant=<value>       Variant of a map\n  -u, --usecase=<value>...    Usecases that profile or map contains\n  -v, --version=<value>       [default: 1.0.0] Version of a profile\n  --init                      When set to true, command will initialize Superface\n  --map                       Create a map\n  --mapFileName=<value>       Name of map file\n  --no-init                   When set to true, command won't initialize Superface\n  --no-super-json             When set to true, command won't change SuperJson file\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n  --profile                   Create a profile\n  --profileFileName=<value>   Name of profile file\n  --profileId=<value>         Profile Id in format [scope](optional)/[name]\n  --provider                  Create a provider\n  --providerFileName=<value>  Name of provider file\n  --providerName=<value>...   Names of providers. This argument is used to create maps and/or providers\n\nDESCRIPTION\n  Creates empty map, profile or/and provider on a local filesystem.\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create --profileId sms/service --providerName twilio --map\n\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n\n  $ superface create --providerName twilio tyntec --provider\n\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`.\n\nWhen running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\n\nUSAGE\n  $ superface compile\n\nOPTIONS\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --onlyMap                    Compile only a map/maps\n  --onlyProfile                Compile only a profile/profiles\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n  --providerName=providerName  Name of provider. This argument is used to compile map\n\nEXAMPLES\n  $ superface compile\n  $ superface compile --profileId starwars/character-information --profile\n  $ superface compile --profileId starwars/character-information --profile -q\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.0.0-beta.0","dist":{"shasum":"73acefdb817055cd9e3fd9f3497853dd692dd090","integrity":"sha512-Opy5iFJVKpCpZoiy5dgzPiH5AQ0GY8ninqb6BLGDe0XWtgIPA5vB/7YIT7umg+H8KzF4XrsXYAUC4Ujo3fJOHw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.0.0-beta.0.tgz","fileCount":194,"unpackedSize":576063,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGy/YUYklRhK0MrJlYIpDGfBYIl09SkLpeViZoVd6enJAiAMB5IE+EI2k65HGmeRp2U9nWiMTCTcP0EgZV6H4GFq1A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9eXAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP1Q//Twv8xX9Rmd6JapytqhApL2fdz3ABKMal1Gv7E1W0w7bVy15n\r\nfp4++Z/XlNKQTihtXo2AGYyDNHSH1xfjV/5P4aJVAwD+khsjsww9+spvrOgL\r\nKRjAZr//9oLM1Yys+6bfL59/WGCI/PE0tgf0KpgS9//TYW3/b49DeRlo5eut\r\nGqB+0KDlAOYzIQws8blwckgfMiLv5IRYeZTTE9f0rGqQSCylsjDOvduXGKSf\r\ns2HEI3ePeT7B8DRHnHlaVvE3HnG7DkBzhDzhL7JqcGNn3bKERAmB5yxoNqCC\r\naEZuE77m30OqfLm9OmIAJwaa1qD7ySzt+zGVrCd1iBu4COfo3OGsS20hfgfM\r\nGvab2rL+hB+XTjvbdk6/uSKqOYZooAkklZUDW75KO6MYastB0PLV+qUt6Uhe\r\n8SWJj4uQFa1uLNjFYZd0cFw4/wl81p0SdG1I79fgA4KLOnhgXvpw3gWn+Tvd\r\n67SwPXVH3105TRTo5pZJ2XWmIinU13j6XL/6tkfPyAUdr21OhVb54b0VUMnv\r\n1TLcNYO3kPSciWfKehNAcyZChdGqnovDc+yFW+B8uw37mk/u/wzazE52mNwR\r\nChFU0fIW/2RlH/Il97Y9/pqbDkdV0nsgZX2AS/d76JuswvLL+nRujzCxxP2G\r\ngjtSYcE58fP3V1td8RqE5I46Rl8xWX4+vm0=\r\n=vZJE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.0.0-beta.0_1660282303732_0.8736313648623171"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"@superfaceai/cli","version":"2.0.0-beta.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0-rc.1","@superfaceai/parser":"^1.2.0","@superfaceai/service-client":"^3.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-u\n    <value>] [-t <value>] [-v <value>] [--init | --no-init] [--no-super-json] [-i | -q | --profile | --map | --provider]\n    [-p <value>] [--mapFileName <value>] [--profileFileName <value>] [--providerFileName <value>] [-s <value>]\n\nFLAGS\n  -h, --help                  show CLI help\n  -i, --interactive           When set to true, command is used in interactive mode.\n  -p, --path=<value>          Base path where files will be created\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  -t, --variant=<value>       Variant of a map\n  -u, --usecase=<value>...    Usecases that profile or map contains\n  -v, --version=<value>       [default: 1.0.0] Version of a profile\n  --init                      When set to true, command will initialize Superface\n  --map                       Create a map\n  --mapFileName=<value>       Name of map file\n  --no-init                   When set to true, command won't initialize Superface\n  --no-super-json             When set to true, command won't change SuperJson file\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n  --profile                   Create a profile\n  --profileFileName=<value>   Name of profile file\n  --profileId=<value>         Profile Id in format [scope](optional)/[name]\n  --provider                  Create a provider\n  --providerFileName=<value>  Name of provider file\n  --providerName=<value>...   Names of providers. This argument is used to create maps and/or providers\n\nDESCRIPTION\n  Creates empty map, profile or/and provider on a local filesystem.\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create --profileId sms/service --providerName twilio --map\n\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n\n  $ superface create --providerName twilio tyntec --provider\n\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create -i\n```\n\n_See code: [src/commands/create.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`.\n\nWhen running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\n\nUSAGE\n  $ superface compile\n\nOPTIONS\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --onlyMap                    Compile only a map/maps\n  --onlyProfile                Compile only a profile/profiles\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n  --providerName=providerName  Name of provider. This argument is used to compile map\n\nEXAMPLES\n  $ superface compile\n  $ superface compile --profileId starwars/character-information --profile\n  $ superface compile --profileId starwars/character-information --profile -q\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.0.0-beta.1","dist":{"shasum":"83df84d60cdd7e3389b6be3525eb76fc455f88f7","integrity":"sha512-gXykjgxYvF1IylCf4lniEi7l27Q26dfbstQrwFLzgin3/ul1muU8Schs4oZb58jR9C4NfAKsTsB+JqLx7+uCQQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.0.0-beta.1.tgz","fileCount":194,"unpackedSize":576201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyi94c3yTngocPaLCKS9Ro6HKeWcLZqrio/pDjvXwHnQIgVnMdsLdMuMnfb7X58VFBtQ4fWcUv0EO2R8C9BmtXW30="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9jAyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHUhAAkLDguqrvpjapw7D418F8Hl6zG/Tzh/j1+BV3tjRGeukzQI1i\r\nTuiuizCksNpXBIu7a/7U8V+6LcRb0Sntm7on1mI1+moKVzHoT4gMk1hvhVB9\r\nlirrSnUbTZFHzoleu0bJ3YLtTVoR2fxAWYuts5X7sf3I1nkXw050VXeQje2P\r\nJUh4+Z9avjbNvUc9sB5An8dKYrb9O4CckwHuNin44ufLX+vYMA2H/FKV4D0s\r\noZdj9+lKnillSrSBtup1IVh37Bu30W6xMQPwdIu0kokcMwLbOmu1Tymm70bh\r\n9NqwU47D8q6YYey420YZ1PbKWKSRzZfFglDZcsWdFTr1A/y8CeIwTgkwgX/5\r\nyDF9kbg+2NQ3fA6LMjvntRH9D/84W8Zj+wigHyhxtFmTb0BFnT/xMhkjpJG2\r\nvcg8SE7Ncqsldv4jLUtE789z1Ho+eKD6L3ks9YwWVzZRWUYi2L5hCj2xWaMG\r\n5fCGBMOuaRlYfWqcGfy9dpv3fWL+hk1CCoBuKH/10iUUR+0y8HlQSKlSrbJP\r\n6sowI4EaTlVpQzaTQvY3fKDmaigyIz3N6MAWJ9DB2fL5zXY8LOnDIQ3bHJ2Q\r\n7P9wAcpS7I0peARqG4KsNMdcqjuxUwCbroS7G60CwO0+TG8Oa965+Vso2uP6\r\nUXvf5M0bXKpsRNrbCmI5DQa6EMu871p6LgI=\r\n=fon4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.0.0-beta.1_1660301362673_0.7613766524373151"},"_hasShrinkwrap":false},"2.0.0":{"name":"@superfaceai/cli","version":"2.0.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^26.0.24","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^4.28.4","@typescript-eslint/parser":"^4.28.4","concat-stream":"^2.0.0","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.1.0","mockttp":"^2.2.3","prettier":"^2.1.2","ts-jest":"^27.0.3"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^1.2.0","@superfaceai/service-client":"^3.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.0.5"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.0.0","dist":{"shasum":"d0a25810cb3000d9898dcd15cf90649068d60f1d","integrity":"sha512-vQBRj3x9KApdfvFWSxXnVUBZA4Ti7MldrqCj8stJvbuP30HT2PVmqSwKwjhus325E+SjMLboa1mWLPPFng1hyg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.0.0.tgz","fileCount":194,"unpackedSize":579941,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlswiIdkABVWlVh6capJEfva4WmEjPwmCjBaMFVJaX4AiEAxEtzcaghfHYoDel5QY20SptqY6Eo2ukqOXW2Zr2ftUo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+ldNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0zQ/+Km+/l6gDIwQGvB9utjs8SVw+EJr5KV3YDjBJCdZR9kc8M63D\r\nnRtX39CuyoNB4aIe05gtVSxX9AB49/tRs4r7PlAK4II4ngaBIuY1g1+BU1Rk\r\npgfIHSKvSs47jIsOygailW+tvm0MLHVoF1w7EbFqfHIE59MQgKv8iHC3gpJj\r\nn0HreZrx5wuqbgt8/QABbhZ9DLz3QrXJcGUFDqmL6njVZQS51eDR9vXesCij\r\nQZ1viUcRNEcda38WAMzOzIOwXevZZq5WMGlsWu86hJbDAGm1Ouow4YSkFPYM\r\nkYLJGIdP3H/DwOH/YEbyp9ZRFbE9PMV+n1ZS9RPq7Hb8bv/OUtuEYC4bL1MY\r\n6EH9dctJ0JzjATwA+76uV5E8Q6ChuIlNNUh9QM64RXsQsYZ1mlsyQZlhBvok\r\nLhqOuhaylYDhKZFwpb+Fk/L5+iiAOZM1Vn/pg+Rxu0X9+z5VNmtxmseyJq1R\r\na8k6vWX7D9bqGt0xuD8kBTZlKKT37bTS82GTgXhhEJe6OZX7G7sIjFGHH26b\r\nhwLD/gdewhbhG+4vbMp/Pt2rI0bD/EDt5rN8uGKa8MkwotuhjdORCS7V9g6L\r\njfjW23mpatteBTgEz+wgjcYVMeEk07oXkY2S0mNKjahKAa7IFAgQxP32xerw\r\nvyEhxOAQArFIB+B4WzHTDNx+7CllmI+FOZQ=\r\n=5QtG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.0.0_1660573517413_0.18503671658081844"},"_hasShrinkwrap":false},"2.1.0-beta.0":{"name":"@superfaceai/cli","version":"2.1.0-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/handlebars":"^4.1.0","@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","handlebars":"^4.7.7","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface prepare:map`](#superface-preparemap)\n* [`superface prepare:mock-map`](#superface-preparemock-map)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile\n\nOPTIONS\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --onlyMap                    Compile only a map/maps\n\n  --onlyProfile                Compile only a profile/profiles\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider. This argument is used to compile map\n\nEXAMPLES\n  $ superface compile\n  $ superface compile --profileId starwars/character-information --profile\n  $ superface compile --profileId starwars/character-information --profile -q\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --mapVariant=mapVariant        Optional map variant\n  --noColor                      When set to true, disables all colored output.\n  --noEmoji                      When set to true, disables displaying emoji in output.\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --noColor                            When set to true, disables all colored output.\n\n  --noEmoji                            When set to true, disables displaying emoji in output.\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u\n   SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\n  --noColor                  When set to true, disables all colored output.\n\n  --noEmoji                  When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: short] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --noColor                           When set to true, disables all colored output.\n\n  --noEmoji                           When set to true, disables displaying emoji in output.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint -f long\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands//logout.ts)_\n\n## `superface prepare:map`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface prepare:map\n\nOPTIONS\n  -f, --force                  When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        (required) Profile Id in format [scope](optional)/[name]\n\n  --providerName=providerName  (required) Name of provider.\n\n  --station                    When set to true, command will create map in folder structure of Superface station\n```\n\n_See code: [dist/commands/prepare/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/map.ts)_\n\n## `superface prepare:mock-map`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\n```\nUSAGE\n  $ superface prepare:mock-map\n\nOPTIONS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=scan        When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --profileId=profileId  (required) Profile Id in format [scope](optional)/[name]\n  --station              When set to true, command will create map in folder structure of Superface station\n```\n\n_See code: [src/commands/prepare/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.1.0-beta.0","dist":{"shasum":"614f494a94663c51e445105684c3d30f55e3620c","integrity":"sha512-E8DdUGj+ceV8NGqWpPQd73D0zGFPY+YXpafwQlCqMkTevzRQ8ztYmWzIDd9+5/y8iv1e3TdSMOd0Wh+gHQO/kg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.1.0-beta.0.tgz","fileCount":394,"unpackedSize":705069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTjnrN95+XAM+kn4m8+ZWGPwy8hWnfh4IiH3icAl+0PQIhAJp6vrfc4+Reqpy340gn8S7WZnOcjn5okVQPXC5n+YRQ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfHc1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq79xAAkLS3pfeEdaZWDcHXva9tBhmmVnLWT9xwpiBagsrDZBUSgD19\r\ns5R4bX6mNIEr03Zzu4mdMLg2yopgczZf6HvfHcACG6r419Z2nPaA/OvZStOP\r\nSpF68Atj5+Ryh3jbga8hlH2u19EicRSYlAaEsyvBqIPobanEVcVz4Wy2VOvq\r\nXlEs1GvDdWug5cc2wiYs+yTaCJmIoPyMcvT15b/1/VnodwrZOE1rU3gPJq3r\r\nQWtr8evfrX4+GNmqBOh8Bwyc6NxLPBvFzORazE9i2Df7Av+A/J3cH1m/dek0\r\n71Id0Jn14cXgSNU7eLISbQvQo6pcGTWthra9nBXqJi0CdwxVgDZAhaqje1Cq\r\n63lF8zMd7Sgcz46NhXeqLOb/hD9NYNYj70i3YdWm6y+IuO/Hp9iI0a7CfwAi\r\nqEGwDnS5Z9K8qfL5BcC6AyFN/+F0HHhKtSFY7hOyrPyKIuMHyGNcwcWreNRM\r\nu5aTMGAhkQVG3L8iRBbu0+R6sqtG8XdIgKtKeKu3pdIs0cSvw1V/xdnz806r\r\nEtF2t9VYCT+w0iN4vozlIbprKA08YO8RJk7oIV2GvFSpJVLTPdokTX1XSMBz\r\nlX6u4f4rKwIRTeBLoZR108OS53v7KxL+iywin3DC89pCZCEl1seuJdwkWTyS\r\nLvSXrNW6XquBUPnIuRmn3nX7hOFYHi4XMRE=\r\n=jbib\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.1.0-beta.0_1669101364889_0.07226399771172698"},"_hasShrinkwrap":false},"2.1.0-beta.1":{"name":"@superfaceai/cli","version":"2.1.0-beta.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/handlebars":"^4.1.0","@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","handlebars":"^4.7.7","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface prepare:map`](#superface-preparemap)\n* [`superface prepare:mock-map`](#superface-preparemock-map)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile\n\nOPTIONS\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --onlyMap                    Compile only a map/maps\n\n  --onlyProfile                Compile only a profile/profiles\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider. This argument is used to compile map\n\nEXAMPLES\n  $ superface compile\n  $ superface compile --profileId starwars/character-information --profile\n  $ superface compile --profileId starwars/character-information --profile -q\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --mapVariant=mapVariant        Optional map variant\n  --noColor                      When set to true, disables all colored output.\n  --noEmoji                      When set to true, disables displaying emoji in output.\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --noColor                            When set to true, disables all colored output.\n\n  --noEmoji                            When set to true, disables displaying emoji in output.\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u\n   SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\n  --noColor                  When set to true, disables all colored output.\n\n  --noEmoji                  When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: short] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --noColor                           When set to true, disables all colored output.\n\n  --noEmoji                           When set to true, disables displaying emoji in output.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint -f long\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands//logout.ts)_\n\n## `superface prepare:map`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface prepare:map\n\nOPTIONS\n  -f, --force                  When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        (required) Profile Id in format [scope](optional)/[name]\n\n  --providerName=providerName  (required) Name of provider.\n\n  --station                    When set to true, command will create map in folder structure of Superface station\n```\n\n_See code: [dist/commands/prepare/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/map.ts)_\n\n## `superface prepare:mock-map`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\n```\nUSAGE\n  $ superface prepare:mock-map\n\nOPTIONS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=scan        When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --profileId=profileId  (required) Profile Id in format [scope](optional)/[name]\n  --station              When set to true, command will create map in folder structure of Superface station\n```\n\n_See code: [src/commands/prepare/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.1.0-beta.1","dist":{"shasum":"20b2b283dfa45f4a7e7d6227815605ad5574aa37","integrity":"sha512-ru2DDHh3ra+YQPn1Qry/SbuUZY0q+BhgaeRFuTimYCNyphoLRdAolyVVcAZgRCY+C7GNQsLq5yxLdxOTbNYf7A==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.1.0-beta.1.tgz","fileCount":397,"unpackedSize":707741,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbr7gO41+qyCa8Dl0j9wRTfulocaUh+J57zDawqIQ8GwIhALzGXcHk0IM4PGo6XRfGRSijbwEfN2rEiHQIUmrZ092r"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfMp7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaTw/+IawAKlJWScp4COZz4KRiIfjSmazDRRvrMaVKBJGsYq8fB2fI\r\nmI9b06L4jjfJU3HxM/LCy0D4kvqFGpdzt9lcKyoZnGqCE72VDfoTsjpQfQ2s\r\nZKA7i57BNi3BFzXhXbs05fUXMEH1K/tAqvk9BD+ZFF+y2uX4YSGsA6JzL2ZX\r\nSnhHo22Urj3I+uWJ0HonXjL/5zHnELWURHq1l3bk2DhMK5fRwNunAXEEok17\r\ntEtxHe+JLbEiheWkY0D9ta8HageYfQE886SkPMvwJhnuwvrRkEtQnp/uHmEQ\r\nuAV5QtAJ0b2GZQbBb52HA9bE6Tvpdgb69PNNw7GxWe/wBItOAyjto94StEmU\r\nta7iML7knhWCthSr4/aTp3bT/kvtgARXJtyzlfyqcNI4DEPw6Z/UpRM+YeMx\r\n+rXgmY8uPl7f3N/pIcZxqy+GH9YzIjFkALvvpLvQ95JZr7RrB3/+cnfrRGfe\r\nbeT9WFBqHP/pTRZXRyzaPFu4GJJM19IsdUpJXHVRewbOfgmw9r7lHHjhjFWI\r\n0EkH6pwwEhOPytU+VOBztnDeaCYyjC9kP52KPsY0+eHOib3KmjLxpqK6UfwA\r\n+abuxTg4KB3Z12n/Kvth5jAnxUz2/4sS7uYmzY3/tAD1Feu3bBT2re8KktMz\r\n7fwti5obrc3WnqY1ibjmWyhfHCDaxiIw7BU=\r\n=WbM3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.1.0-beta.1_1669122683031_0.6129752126126029"},"_hasShrinkwrap":false},"2.1.0-beta.2":{"name":"@superfaceai/cli","version":"2.1.0-beta.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/handlebars":"^4.1.0","@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","handlebars":"^4.7.7","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface prepare:map PROFILEID PROVIDERNAME`](#superface-preparemap-profileid-providername)\n* [`superface prepare:mock-map PROFILEID`](#superface-preparemock-map-profileid)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check\n\nOPTIONS\n  -f, --failOnWarning          When true command will fail on warning\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider.\n\nDESCRIPTION\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n  $ superface check -f\n  $ superface check --profileId starwars/character-information\n  $ superface check --profileId starwars/character-information --providerName swapi\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile\n\nOPTIONS\n  -h, --help                   show CLI help\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --onlyMap                    Compile only a map/maps\n\n  --onlyProfile                Compile only a profile/profiles\n\n  --profileId=profileId        Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  Name of provider. This argument is used to compile map\n\nEXAMPLES\n  $ superface compile\n  $ superface compile --profileId starwars/character-information --profile\n  $ superface compile --profileId starwars/character-information --profile -q\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nOPTIONS\n  -f, --force                    When set to true and when provider exists in super.json, overwrites them.\n  -h, --help                     show CLI help\n  -p, --profile=profile          (required) Specifies profile to associate with provider\n  -q, --quiet                    When set to true, disables the shell echo output of action.\n  --localMap=localMap            Optional filepath to .suma map file\n  --localProvider=localProvider  Optional filepath to provider.json file\n  --mapVariant=mapVariant        Optional map variant\n  --noColor                      When set to true, disables all colored output.\n  --noEmoji                      When set to true, disables displaying emoji in output.\n  --write-env                    When set to true command writes security variables to .env file\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n  $ superface configure twilio -p send-sms -q\n  $ superface configure twilio -p send-sms -f\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create\n\nOPTIONS\n  -h, --help                           show CLI help\n  -i, --interactive                    When set to true, command is used in interactive mode.\n  -p, --path=path                      Base path where files will be created\n  -q, --quiet                          When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                      When number provided, scan for super.json outside cwd within range represented by\n                                       this number.\n\n  -t, --variant=variant                Variant of a map\n\n  -u, --usecase=usecase                Usecases that profile or map contains\n\n  -v, --version=version                [default: 1.0.0] Version of a profile\n\n  --init                               When set to true, command will initialize Superface\n\n  --map                                Create a map\n\n  --mapFileName=mapFileName            Name of map file\n\n  --no-init                            When set to true, command won't initialize Superface\n\n  --no-super-json                      When set to true, command won't change SuperJson file\n\n  --noColor                            When set to true, disables all colored output.\n\n  --noEmoji                            When set to true, disables displaying emoji in output.\n\n  --profile                            Create a profile\n\n  --profileFileName=profileFileName    Name of profile file\n\n  --profileId=profileId                Profile Id in format [scope](optional)/[name]\n\n  --provider                           Create a provider\n\n  --providerFileName=providerFileName  Name of provider file\n\n  --providerName=providerName          Names of providers. This argument is used to create maps and/or providers\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n  $ superface create --profileId sms/service --providerName twilio --map\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n  $ superface create --providerName twilio tyntec --provider\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u\n   SendSMS ReceiveSMS\n  $ superface create -i\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nOPTIONS\n  -h, --help             show CLI help\n  -p, --prompt           When set to true, prompt will be executed.\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --profiles=profiles    Profile identifiers.\n  --providers=providers  Provider names.\n\nEXAMPLES\n  superface init\n  superface init foo\n  superface init foo --providers bar twilio\n  superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nOPTIONS\n  -f, --force                When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                 show CLI help\n  -l, --local                When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=providers  Provider name.\n  -q, --quiet                When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan            When number provided, scan for super.json outside cwd within range represented by this\n                             number.\n\n  --noColor                  When set to true, disables all colored output.\n\n  --noEmoji                  When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface install\n  $ superface install sms/service@1.0\n  $ superface install sms/service@1.0 --providers twilio tyntec\n  $ superface install sms/service@1.0 -p twilio\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint\n\nOPTIONS\n  -f, --outputFormat=long|short|json  [default: short] Output format to use to display errors and warnings.\n  -h, --help                          show CLI help\n\n  -o, --output=output                 [default: -] Filename where the output will be written. `-` is stdout, `-2` is\n                                      stderr.\n\n  -q, --quiet                         When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan                     When number provided, scan for super.json outside cwd within range represented by\n                                      this number.\n\n  --append                            Open output file in append mode instead of truncating it if it exists. Has no\n                                      effect with stdout and stderr streams.\n\n  --noColor                           When set to true, disables all colored output.\n\n  --noEmoji                           When set to true, disables displaying emoji in output.\n\n  --profileId=profileId               Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName         Provider name\n\nDESCRIPTION\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n  $ superface lint -f long\n  $ superface lint --profileId starwars/character-information\n  $ superface lint --profileId starwars/character-information --providerName swapi\n  $ superface lint -o -2\n  $ superface lint -f json\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login\n\nOPTIONS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface login\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLE\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands//logout.ts)_\n\n## `superface prepare:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface prepare:map PROFILEID PROVIDERNAME\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nOPTIONS\n  -f, --force      When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help       show CLI help\n  -q, --quiet      When set to true, disables the shell echo output of action.\n  -s, --scan=scan  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor        When set to true, disables all colored output.\n  --noEmoji        When set to true, disables displaying emoji in output.\n  --station        When set to true, command will create map in folder structure of Superface station\n\nEXAMPLES\n  $ superface prepare:map starwars/character-information swapi --force\n  $ superface prepare:map starwars/character-information swapi -s 3\n  $ superface prepare:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/prepare/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/map.ts)_\n\n## `superface prepare:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\n```\nUSAGE\n  $ superface prepare:mock-map PROFILEID\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nOPTIONS\n  -f, --force      When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help       show CLI help\n  -q, --quiet      When set to true, disables the shell echo output of action.\n  -s, --scan=scan  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor        When set to true, disables all colored output.\n  --noEmoji        When set to true, disables displaying emoji in output.\n  --station        When set to true, command will create map in folder structure of Superface station\n\nEXAMPLES\n  $ superface prepare:mock-map starwars/character-information --force\n  $ superface prepare:mock-map starwars/character-information -s 3\n  $ superface prepare:mock-map starwars/character-information --station\n```\n\n_See code: [src/commands/prepare/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nOPTIONS\n  -f, --force                  Publishes without asking for any confirmation.\n  -h, --help                   show CLI help\n  -j, --json                   Formats result to JSON\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n\n  -s, --scan=scan              When a number is provided, scan for super.json outside cwd within the range represented\n                               by this number.\n\n  --dryRun                     Runs without sending the actual request.\n\n  --noColor                    When set to true, disables all colored output.\n\n  --noEmoji                    When set to true, disables displaying emoji in output.\n\n  --profileId=profileId        (required) Profile Id in format [scope/](optional)[name]\n\n  --providerName=providerName  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami\n\nOPTIONS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nEXAMPLES\n  $ superface whoami\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.1.0-beta.2","dist":{"shasum":"99344ec18f92f38d17602dff48e1d6b6c19d194a","integrity":"sha512-DXaOo6v2uqzV6yN05b7YppH1PovawBtEAG8Ajwx0oXB8dyRBH0kzIwvV8BRrz5z/ws8B5Gj2zrZFADi2j3kohA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.1.0-beta.2.tgz","fileCount":400,"unpackedSize":710850,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoJvNDzZDASTNvy6WX406kfx6KGw/e959IBJS3IYrg5wIhAJz3SKKNK6dhWvRJWOS9/fCG8v/tU8rUpjBnLt4x5+BZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfzvsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryLhAAiqbcy68txnEN8bfax8Z91vGo3njflocTXHUrtZdPeq8ZIJOg\r\nDEdu2TLoDBIFmLgMNQ/78HSSRnYsIzmfwveqUE4DsrKTCSCQfif1tmN7V7y/\r\niIx28L9OmJJTruS+03Tc9SfUWU9KgmBWSgUyHcTs3qtC/xjE0/xfmAyQpdnm\r\nK81LK3/zQUL5PhSxtkmysPlsL8jNZf+Gn9sSfYC/4gOF0cw5j0AU6kU5SxtW\r\nz/fJAXoSnPVNcA1e65oD7hfSevrn1UXTIG1YZzP0QvOvNHx6qI7bWlVeutX4\r\nzUITsDckt/2Bpfq34EjCImDI2GwRbyolA1NmOB8qzxtP/qFBLDTE775b8mA5\r\n9fglJROTYz01aFIw2H9XFKdNAZHTMGqwyxZNF6MFb/qEr5Sy/GzsHeB3iGse\r\nFl1d+NDZdyRKko24OVEuq8+Y6Uvggwgyq68b0R0PYoo9W0DwQfvz7GhO6/HC\r\nen72iGdsVSpXUsAhQ9F9FDKKY3ALeBwm3ELgm9j8ksATh56Lt4B131Ec6Dgd\r\ne6wqfYKQ+XNFayS0jVCPaNrfOPCT3R9BYrnPSsGMN4Qmwv6Jk/Yy39H86ujH\r\nYErOdUZwk9CpXOBeTAbYZj9AXCCif7/4UDFUaXsjrirIlEJOM77REp5Hoi/n\r\njnRyJ0HYo4xjXuHYnhRZfI0LQlSoLSGUEvg=\r\n=dFWi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.1.0-beta.2_1669282796638_0.0024872682512446787"},"_hasShrinkwrap":false},"2.1.0-beta.3":{"name":"@superfaceai/cli","version":"2.1.0-beta.3","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/handlebars":"^4.1.0","@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","handlebars":"^4.7.7","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface prepare:map PROFILEID PROVIDERNAME`](#superface-preparemap-profileid-providername)\n* [`superface prepare:mock-map PROFILEID`](#superface-preparemock-map-profileid)\n* [`superface prepare:mock-map-test PROFILEID`](#superface-preparemock-map-test-profileid)\n* [`superface prepare:profile PROFILEID`](#superface-prepareprofile-profileid)\n* [`superface prepare:provider PROVIDERNAME`](#superface-prepareprovider-providername)\n* [`superface prepare:test PROFILEID PROVIDERNAME`](#superface-preparetest-profileid-providername)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-u\n    <value>] [-t <value>] [-v <value>] [--init | --no-init] [--no-super-json] [-i | -q | --profile | --map | --provider]\n    [-p <value>] [--mapFileName <value>] [--profileFileName <value>] [--providerFileName <value>] [-s <value>]\n\nFLAGS\n  -h, --help                  show CLI help\n  -i, --interactive           When set to true, command is used in interactive mode.\n  -p, --path=<value>          Base path where files will be created\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  -t, --variant=<value>       Variant of a map\n  -u, --usecase=<value>...    Usecases that profile or map contains\n  -v, --version=<value>       [default: 1.0.0] Version of a profile\n  --init                      When set to true, command will initialize Superface\n  --map                       Create a map\n  --mapFileName=<value>       Name of map file\n  --no-init                   When set to true, command won't initialize Superface\n  --no-super-json             When set to true, command won't change SuperJson file\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n  --profile                   Create a profile\n  --profileFileName=<value>   Name of profile file\n  --profileId=<value>         Profile Id in format [scope](optional)/[name]\n  --provider                  Create a provider\n  --providerFileName=<value>  Name of provider file\n  --providerName=<value>...   Names of providers. This argument is used to create maps and/or providers\n\nDESCRIPTION\n  Creates empty map, profile or/and provider on a local filesystem.\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create --profileId sms/service --providerName twilio --map\n\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n\n  $ superface create --providerName twilio tyntec --provider\n\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create -i\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands//logout.ts)_\n\n## `superface prepare:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface prepare:map [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with\n  information from profile and provider files. Before running this command you should have prepared profile (run sf\n  prepare:profile) and provider (run sf prepare:provider)\n\nEXAMPLES\n  $ superface prepare:map starwars/character-information swapi --force\n\n  $ superface prepare:map starwars/character-information swapi -s 3\n\n  $ superface prepare:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/prepare/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/map.ts)_\n\n## `superface prepare:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\n```\nUSAGE\n  $ superface prepare:mock-map [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\nEXAMPLES\n  $ superface prepare:mock-map starwars/character-information --force\n\n  $ superface prepare:mock-map starwars/character-information -s 3\n\n  $ superface prepare:mock-map starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map.ts)_\n\n## `superface prepare:mock-map-test PROFILEID`\n\nPrepares test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have prepared mock provider map (run sf prepare:mock-map).\n\n```\nUSAGE\n  $ superface prepare:mock-map-test [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have prepared mock provider map (run sf prepare:mock-map).\n\nEXAMPLES\n  $ superface prepare:mock-map-test starwars/character-information --force\n\n  $ superface prepare:mock-map-test starwars/character-information -s 3\n\n  $ superface prepare:mock-map-test starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map-test.ts)_\n\n## `superface prepare:profile PROFILEID`\n\nPrepares profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface prepare:profile [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  Prepares profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface prepare:profile starwars/character-information --force\n\n  $ superface prepare:profile starwars/character-information -s 3\n\n  $ superface prepare:profile starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/profile.ts)_\n\n## `superface prepare:provider PROVIDERNAME`\n\nPrepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or creted provider.json file after running this command.\n\n```\nUSAGE\n  $ superface prepare:provider [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or creted\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface prepare:provider swapi --force\n\n  $ superface prepare:provider swapi -s 3\n\n  $ superface prepare:provider swapi --station\n```\n\n_See code: [dist/commands/prepare/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/provider.ts)_\n\n## `superface prepare:test PROFILEID PROVIDERNAME`\n\nPrepares test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface prepare:test [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface prepare:test starwars/character-information swapi\n\n  $ superface prepare:test starwars/character-information swapi --station\n\n  $ superface prepare:test starwars/character-information swapi --force\n\n  $ superface prepare:test starwars/character-information swapi -q\n```\n\n_See code: [dist/commands/prepare/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/test.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.1.0-beta.3","dist":{"shasum":"eb032dd1808dd353a8f9cac8a8e72804edad1def","integrity":"sha512-7omHqB42tWnfNQrrSyK2ZUw1kmyeXRjsRdWjTxkyVZzG7ytF1wzZAPz8IZ+gi692hnR77074cPjPzV96Xxcufg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.1.0-beta.3.tgz","fileCount":452,"unpackedSize":798589,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzPHr46PYZVzV8eUfBja6NMj4HX7QX/nD+9iGhrHS8EgIgBkEmRi49ZorYXAmMQ7SAQ0pv1cQMtfxSxldhGk8VHa0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkwvQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3Yw/8CTtWwqoEH+r9PTbBRVhxe7Qk63neZwGmsxTyjjScQxz+gbkT\r\neyh6ZbSZPKQnKVv/ZP7/t7haNT2Kw7m7gOCwRPCeeX89OkpvGYYC9ArCiJyL\r\nWbRcT7srUy7OKzzbZMn+WWps+337gDNn1Rxz7xXuBg+iRqTCJjiycLOQnGl5\r\n7YCACtxu3M3vKYGAstLBPhJN+DGZDI6cuQwQkZ0YbwMSKKEBb3wibUO9i6xy\r\n98p6zFY4OojOmvPcVrbCGF/XAiY8hwMweoP2fawQWA44gvjtpiEoL7qyno15\r\niJqhTfbV8CY8LZAsM5kY+9+vhzdtFnwZ9NytT2sJPiRHdKroEWAzWU9pJgev\r\nIU9KerCwR9Vg1DwQDlLk2ViokJdhxPp+b8WBrelsJISPRkXGveveDEs4kQ12\r\nv5/lED4rBdV4Hc7Ro848BZrKA5uC7fZ3DHMNct78ffRC2q0yucgjxR5Xo1vG\r\nltNq5EmIlT6cBrf1qPKoyR/C+qJKLAqoxKksuFTGM5B+oxhGSwEh9m0bt/UC\r\nfeGLni0xejzE13HQhWtvMHr+MpcnRUHeLHHfG70GtGRN0GIFC8iE3b1Ckm+b\r\n9Q7INNu93K7SfD6T4j66xDloMNvsem0KCj+Mu9pjmszs/WNyW94PXUunSG2G\r\npq3lidTWGtmBJDWGF1E+KD4iy76bwFQ7cww=\r\n=/GS5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.1.0-beta.3_1670581200431_0.4749116097638013"},"_hasShrinkwrap":false},"2.1.0-beta.4":{"name":"@superfaceai/cli","version":"2.1.0-beta.4","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/handlebars":"^4.1.0","@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","handlebars":"^4.7.7","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create`](#superface-create)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface prepare:map PROFILEID PROVIDERNAME`](#superface-preparemap-profileid-providername)\n* [`superface prepare:mock-map PROFILEID`](#superface-preparemock-map-profileid)\n* [`superface prepare:mock-map-test PROFILEID`](#superface-preparemock-map-test-profileid)\n* [`superface prepare:profile PROFILEID`](#superface-prepareprofile-profileid)\n* [`superface prepare:provider PROVIDERNAME`](#superface-prepareprovider-providername)\n* [`superface prepare:test PROFILEID PROVIDERNAME`](#superface-preparetest-profileid-providername)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create`\n\nCreates empty map, profile or/and provider on a local filesystem.\n\n```\nUSAGE\n  $ superface create [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-u\n    <value>] [-t <value>] [-v <value>] [--init | --no-init] [--no-super-json] [-i | -q | --profile | --map | --provider]\n    [-p <value>] [--mapFileName <value>] [--profileFileName <value>] [--providerFileName <value>] [-s <value>]\n\nFLAGS\n  -h, --help                  show CLI help\n  -i, --interactive           When set to true, command is used in interactive mode.\n  -p, --path=<value>          Base path where files will be created\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  -t, --variant=<value>       Variant of a map\n  -u, --usecase=<value>...    Usecases that profile or map contains\n  -v, --version=<value>       [default: 1.0.0] Version of a profile\n  --init                      When set to true, command will initialize Superface\n  --map                       Create a map\n  --mapFileName=<value>       Name of map file\n  --no-init                   When set to true, command won't initialize Superface\n  --no-super-json             When set to true, command won't change SuperJson file\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n  --profile                   Create a profile\n  --profileFileName=<value>   Name of profile file\n  --profileId=<value>         Profile Id in format [scope](optional)/[name]\n  --provider                  Create a provider\n  --providerFileName=<value>  Name of provider file\n  --providerName=<value>...   Names of providers. This argument is used to create maps and/or providers\n\nDESCRIPTION\n  Creates empty map, profile or/and provider on a local filesystem.\n\nEXAMPLES\n  $ superface create --profileId sms/service --profile\n\n  $ superface create --profileId sms/service --profile -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create --profileId sms/service --providerName twilio --map\n\n  $ superface create --profileId sms/service --providerName twilio --map -t bugfix\n\n  $ superface create --providerName twilio tyntec --provider\n\n  $ superface create --providerName twilio --provider --providerFileName my-provider -p my/path\n\n  $ superface create --profileId sms/service --providerName twilio --provider --map --profile -t bugfix -v 1.1-rev133 -u SendSMS ReceiveSMS\n\n  $ superface create -i\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n\n\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands//logout.ts)_\n\n## `superface prepare:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface prepare:map [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map, based on profile and provider on a local filesystem. Created file contains prepared structure with\n  information from profile and provider files. Before running this command you should have prepared profile (run sf\n  prepare:profile) and provider (run sf prepare:provider)\n\nEXAMPLES\n  $ superface prepare:map starwars/character-information swapi --force\n\n  $ superface prepare:map starwars/character-information swapi -s 3\n\n  $ superface prepare:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/prepare/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/map.ts)_\n\n## `superface prepare:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\n```\nUSAGE\n  $ superface prepare:mock-map [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have prepared profile file (run sf prepare:profile).\n\nEXAMPLES\n  $ superface prepare:mock-map starwars/character-information --force\n\n  $ superface prepare:mock-map starwars/character-information -s 3\n\n  $ superface prepare:mock-map starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map.ts)_\n\n## `superface prepare:mock-map-test PROFILEID`\n\nPrepares test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have prepared mock provider map (run sf prepare:mock-map).\n\n```\nUSAGE\n  $ superface prepare:mock-map-test [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have prepared mock provider map (run sf prepare:mock-map).\n\nEXAMPLES\n  $ superface prepare:mock-map-test starwars/character-information --force\n\n  $ superface prepare:mock-map-test starwars/character-information -s 3\n\n  $ superface prepare:mock-map-test starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/mock-map-test.ts)_\n\n## `superface prepare:profile PROFILEID`\n\nPrepares profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface prepare:profile [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  Prepares profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface prepare:profile starwars/character-information --force\n\n  $ superface prepare:profile starwars/character-information -s 3\n\n  $ superface prepare:profile starwars/character-information --station\n```\n\n_See code: [dist/commands/prepare/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/profile.ts)_\n\n## `superface prepare:provider PROVIDERNAME`\n\nPrepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or creted provider.json file after running this command.\n\n```\nUSAGE\n  $ superface prepare:provider [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or creted\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface prepare:provider swapi --force\n\n  $ superface prepare:provider swapi -s 3\n\n  $ superface prepare:provider swapi --station\n```\n\n_See code: [dist/commands/prepare/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/provider.ts)_\n\n## `superface prepare:test PROFILEID PROVIDERNAME`\n\nPrepares test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface prepare:test [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface prepare:test starwars/character-information swapi\n\n  $ superface prepare:test starwars/character-information swapi --station\n\n  $ superface prepare:test starwars/character-information swapi --force\n\n  $ superface prepare:test starwars/character-information swapi -q\n```\n\n_See code: [dist/commands/prepare/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare/test.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@2.1.0-beta.4","dist":{"shasum":"544d11eb2fe847a8a758be3e53f0fa0164b1a667","integrity":"sha512-ZhbuAA9l5dHervFhh+rHdv6wUC+Sy55txIUk0IIzCyGtBpteuchqQQKqu5zvAvkVtjljHszi07xaBElVwBRDgg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-2.1.0-beta.4.tgz","fileCount":459,"unpackedSize":801619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByw0CRoBTA0ulwtsRqRITqrb95CFBo9Mn06cUPYI9WnAiA+y5az3FcXxhD0LQZEI5gCnKoFlfkuD7LdjNKJKP15Zg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjow7yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVQg//Ql8X+x6wPYpkGj+p9lLzq7ugXc1u5q1uV+p70G6jHn2TEeJx\r\nN7P0MHwjjhDuzrNL+1OremkyChNiVHfPuVWjheDkg66sM1/vinFBKxyYSLIA\r\nG9U5FAqaxZINHfJSaELjOCFb5fG4KhHoQWqUe5refqwjRaOCFUqhGi1xTkhY\r\neY3KUiKQ/hdC4kjTuq30qmW41A4em2v7FmfWNpLn8nhRQ8xSwDfxdLYc58YA\r\nZI6w2ML+kXVRwoMw9QMKC9yykAXYwHVjGcgHCAsMvv+Opu/djM59PN5wXmJH\r\no6oB3xi6AdnCWA4pXN69blSlF5bc3p4m8j6j+EM1WEK6IUKew3wTjJ1fdAQV\r\nZo+fa1U4QY3mTGr3rRDJ+XcrLD9p0L/8ecnLB/+++1O+aEAilcobTMoJNpae\r\nzeLlROdg+6VBfFmO5X4allr9k52Pyvogz0GZyP0Cpjj/lS1kWWzoaCXvNyJS\r\nglGHZA5piaGjit0TUrzAYOZh6WuCSi65v+czK6u4DSodl1jr2PIGovMidk55\r\nrPFOPsT5BjptNUTOb9qOh/Rs5AmUPs4KK4u+uT6A5P0wYQCBQAkG37eVN6ej\r\nMdiTNRc9jszIZb2JVJ5QW3Rx9zC7AoOxox4Fb0xk9n1aupw6KxWxombCAevj\r\nn8wzFRfMTMg0Hxo3yHDCz3fTKz0rNnFnY9c=\r\n=0p7O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_2.1.0-beta.4_1671630578420_0.666211631307918"},"_hasShrinkwrap":false},"3.0.0-rc.0":{"name":"@superfaceai/cli","version":"3.0.0-rc.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create:map PROFILEID PROVIDERNAME`](#superface-createmap-profileid-providername)\n* [`superface create:mock-map PROFILEID`](#superface-createmock-map-profileid)\n* [`superface create:mock-map-test PROFILEID`](#superface-createmock-map-test-profileid)\n* [`superface create:profile PROFILEID`](#superface-createprofile-profileid)\n* [`superface create:provider PROVIDERNAME`](#superface-createprovider-providername)\n* [`superface create:test PROFILEID PROVIDERNAME`](#superface-createtest-profileid-providername)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains created structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface create:map [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-v <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=<value>     When number provided, scan for super.json outside cwd within range represented by this number.\n  -v, --variant=<value>  Variant of a map\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --station              When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map, based on profile and provider on a local filesystem. Created file contains created structure with\n  information from profile and provider files. Before running this command you should have prepared profile (run sf\n  prepare:profile) and provider (run sf prepare:provider)\n\nEXAMPLES\n  $ superface create:map starwars/character-information swapi --force\n\n  $ superface create:map starwars/character-information swapi -s 3\n\n  $ superface create:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/create/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/map.ts)_\n\n\n## `superface create:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have created profile file (run sf create:profile).\n\n```\nUSAGE\n  $ superface create:mock-map [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have created profile file (run sf create:profile).\n\nEXAMPLES\n  $ superface create:mock-map starwars/character-information --force\n\n  $ superface create:mock-map starwars/character-information -s 3\n\n  $ superface create:mock-map starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map.ts)_\n\n## `superface create:mock-map-test PROFILEID`\n\nCreates test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\n```\nUSAGE\n  $ superface create:mock-map-test [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\nEXAMPLES\n  $ superface create:mock-map-test starwars/character-information --force\n\n  $ superface create:mock-map-test starwars/character-information -s 3\n\n  $ superface create:mock-map-test starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map-test.ts)_\n\n## `superface create:profile PROFILEID`\n\ncreates profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface create:profile [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  creates profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface create:profile starwars/character-information --force\n\n  $ superface create:profile starwars/character-information -s 3\n\n  $ superface create:profile starwars/character-information --station\n```\n\n_See code: [dist/commands/create/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/profile.ts)_\n\n## `superface create:provider PROVIDERNAME`\n\nPrepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created provider.json file after running this command.\n\n```\nUSAGE\n  $ superface create:provider [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface prepare:provider swapi --force\n\n  $ superface prepare:provider swapi -s 3\n\n  $ superface prepare:provider swapi --station\n```\n\n_See code: [dist/commands/create/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/provider.ts)_\n\n## `superface create:test PROFILEID PROVIDERNAME`\n\nCreates test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface create:test [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface create:test starwars/character-information swapi\n\n  $ superface create:test starwars/character-information swapi --station\n\n  $ superface create:test starwars/character-information swapi --force\n\n  $ superface create:test starwars/character-information swapi -q\n```\n\n_See code: [dist/commands/create/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/test.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.0-rc.0","dist":{"shasum":"8e40857bdc4234d4a4f9d2009f5c2aba86d09dbb","integrity":"sha512-ipyXxyotouqt73UFmmb1Wfez/7ACbCilAwR1XvcULXjVFb46yVckCBeFSuq/nVwnEGYbqIygqTRPWms5zyC36g==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.0-rc.0.tgz","fileCount":459,"unpackedSize":770833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAtGE2uGJae0BnTYSfHZI/tQaLK+6gxKTNDD9WLD65LAiALZ713lxq4fy52gOAzuh2cQosP+oU41xzJpFHOxgz9cQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyjIpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOSA//br0slRE81cxrVcuSmqD+uXQ7zWJvY3vt3rKjYoB5BDW5n4NM\r\nzbv+VLTJi3jLSlOqCoWEtuj/JZWJ4nmZtHfFNJV6y79S5Pfk8RCmrJJzDr5c\r\n+PPHiRkmsA6CgFiNL6WfAfCpdX76Vy1/l4sPe+1F4WE/q1OMQnKBfqCfHbuv\r\nILlQ8HRlGPU1rJAhGIgNQJ+3gVmdCazuJJwWoTG46kBcSD3dlZrAFuBnVNmB\r\n0jhHH/O3aYiYAdA7CrVBGBZgfUcBHyAHgmAgTlp8T48z5aQDPfSC+wLWEjQ1\r\nFrRn4rQFP8GTtNLdbGwDeAufBgLxEJa+agAOtGNvB2kfJChfzzb1UvOePtj7\r\noI0FfcCWhhm8FRynL+GKCBYCL/3CxEV6RFdpn2Yt4qFwtpgQi4Tg3KQp/iUz\r\nqNqtrcqKrfuH7ugoTmpn4nk0aytC1DoltL/yzgXet7HZY1Vtzxhm5tMAk7cA\r\nCasFzxJghvP+24kojmQZeRCEYlXxdhwK65Vjq3c3s1sCPvkAG97pUrOl1Mdy\r\njRbQNROiIg6uMXrUI2PVymA5KHkKNF1K4l/JU/70wP0J7GUrPtqXCJcnFsBk\r\nRtLYT25m10gxgBbHPuALuiCX0eI3qOx41HLy+jOLe69KWB8i6b/pHfTpQGNR\r\nOXO17XnK5eXky8X3pZQEsr2Om7BY8GXo9CY=\r\n=lU6b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.0-rc.0_1674195497285_0.13843384068014064"},"_hasShrinkwrap":false},"3.0.0-rc.1":{"name":"@superfaceai/cli","version":"3.0.0-rc.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create:map PROFILEID PROVIDERNAME`](#superface-createmap-profileid-providername)\n* [`superface create:mock-map PROFILEID`](#superface-createmock-map-profileid)\n* [`superface create:mock-map-test PROFILEID`](#superface-createmock-map-test-profileid)\n* [`superface create:profile PROFILEID`](#superface-createprofile-profileid)\n* [`superface create:provider PROVIDERNAME`](#superface-createprovider-providername)\n* [`superface create:test PROFILEID PROVIDERNAME`](#superface-createtest-profileid-providername)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains created structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface create:map [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-v <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=<value>     When number provided, scan for super.json outside cwd within range represented by this number.\n  -v, --variant=<value>  Variant of a map\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --station              When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map, based on profile and provider on a local filesystem. Created file contains created structure with\n  information from profile and provider files. Before running this command you should have prepared profile (run sf\n  prepare:profile) and provider (run sf prepare:provider)\n\nEXAMPLES\n  $ superface create:map starwars/character-information swapi --force\n\n  $ superface create:map starwars/character-information swapi -s 3\n\n  $ superface create:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/create/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/map.ts)_\n\n\n## `superface create:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have created profile file (run sf create:profile).\n\n```\nUSAGE\n  $ superface create:mock-map [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have created profile file (run sf create:profile).\n\nEXAMPLES\n  $ superface create:mock-map starwars/character-information --force\n\n  $ superface create:mock-map starwars/character-information -s 3\n\n  $ superface create:mock-map starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map.ts)_\n\n## `superface create:mock-map-test PROFILEID`\n\nCreates test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\n```\nUSAGE\n  $ superface create:mock-map-test [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\nEXAMPLES\n  $ superface create:mock-map-test starwars/character-information --force\n\n  $ superface create:mock-map-test starwars/character-information -s 3\n\n  $ superface create:mock-map-test starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map-test.ts)_\n\n## `superface create:profile PROFILEID`\n\ncreates profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface create:profile [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  creates profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface create:profile starwars/character-information --force\n\n  $ superface create:profile starwars/character-information -s 3\n\n  $ superface create:profile starwars/character-information --station\n```\n\n_See code: [dist/commands/create/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/profile.ts)_\n\n## `superface create:provider PROVIDERNAME`\n\nPrepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created provider.json file after running this command.\n\n```\nUSAGE\n  $ superface create:provider [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface prepare:provider swapi --force\n\n  $ superface prepare:provider swapi -s 3\n\n  $ superface prepare:provider swapi --station\n```\n\n_See code: [dist/commands/create/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/provider.ts)_\n\n## `superface create:test PROFILEID PROVIDERNAME`\n\nCreates test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface create:test [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface create:test starwars/character-information swapi\n\n  $ superface create:test starwars/character-information swapi --station\n\n  $ superface create:test starwars/character-information swapi --force\n\n  $ superface create:test starwars/character-information swapi -q\n```\n\n_See code: [dist/commands/create/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/test.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.0-rc.1","dist":{"shasum":"99fb9873649dab2fe4ddb7df410c1491458a7ba0","integrity":"sha512-92Aw7e2PanTeM5DdWF16U7DaDsS0jqHuVux1GhFN878Uh4jv3pK9PuxF8fDp+L50uTzI1nkG4H494FiooZsRmA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.0-rc.1.tgz","fileCount":459,"unpackedSize":771024,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGyy/JaJ25hI23e90BVm7fzpgL7XygD3QzcEMQkPZvWRAiAkpTrQTvmGT+oOkLAF6gQo0tq5kuu89UbUDzNPwQBEXg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj02mQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTGg/9GLZVjAXn+JaxKKebjeTB1XqN8wwAI3WFK76dKQU7RvBCKFzv\r\nj7CnNex23nbYPqKhmI/Xl7ijjC0mcfnOwT+PBM4YWGvkWfidc/U0BCk7aqPc\r\n68kDNy6Mj9cmu5wt37BQmSqc2kGwH0s3xAVfjQHEyhvwwsTclCHFOCvRYs2R\r\nUS3gp6UMnv8gbhc9SsdIyPxKlUcJmgQZdV0/g4261RK076LPwbqeKeUuXdQQ\r\nMGlTTnqcrEeQbdsQNXsmEneoBAeH6Ba+3ydbqi7QNytGkAXo0+DiIqxCaPoZ\r\nzqpPpIJEFEbgFiE1pTyMa6QRT4pCjhvdpnM15qvDSLVQ6qIH4vi3XVE6/Q7y\r\nVGDuKrTgfyHF+3Yh5DPlC2rTUVnmNn4J1aIKloj/olCdzpJQUpHP7tOMoZu6\r\nI+RaEbZ96eCGMVLcyZGOxY+KOCApRYNxTkYewLarC0YQlTq2fjatGb1DKl4n\r\n94EDNOIEbfMREzugRAo++9rn8OwZJz4ne+4rvtCf4JLg2KDQz7enfN1/kNgP\r\nNWGUH+1JMf4qxHZ2xQbFiuUfjAA/80XPFsv0n/IsYzKZsiMXC8g4SO97NZGG\r\nSNcg61qFC0P54V5MsCrj9nFjLH2IQ5XPT/G5PyjVY6YAkbK3PSMc2Puo5MEx\r\nUI026pfn+NiZISnMHVSSnkIuteASJ3KQsng=\r\n=lfOp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.0-rc.1_1674799504425_0.33318657283219677"},"_hasShrinkwrap":false},"3.0.0-rc.2":{"name":"@superfaceai/cli","version":"3.0.0-rc.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.2.0","@superfaceai/one-sdk":"^2.0.0","@superfaceai/parser":"^2.0.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/superfaceai/cli/CI)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create:map PROFILEID PROVIDERNAME`](#superface-createmap-profileid-providername)\n* [`superface create:mock-map PROFILEID`](#superface-createmock-map-profileid)\n* [`superface create:mock-map-test PROFILEID`](#superface-createmock-map-test-profileid)\n* [`superface create:profile PROFILEID`](#superface-createprofile-profileid)\n* [`superface create:provider PROVIDERNAME`](#superface-createprovider-providername)\n* [`superface create:test PROFILEID PROVIDERNAME`](#superface-createtest-profileid-providername)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure [PROVIDERNAME] -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create:map PROFILEID PROVIDERNAME`\n\nPrepares map, based on profile and provider on a local filesystem. Created file contains created structure with information from profile and provider files. Before running this command you should have prepared profile (run sf prepare:profile) and provider (run sf prepare:provider)\n\n```\nUSAGE\n  $ superface create:map [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-v <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=<value>     When number provided, scan for super.json outside cwd within range represented by this number.\n  -v, --variant=<value>  Variant of a map\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --station              When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map, based on profile and provider on a local filesystem. Created file contains created structure with\n  information from profile and provider files. Before running this command you should have prepared profile (run sf\n  prepare:profile) and provider (run sf prepare:provider)\n\nEXAMPLES\n  $ superface create:map starwars/character-information swapi --force\n\n  $ superface create:map starwars/character-information swapi -s 3\n\n  $ superface create:map starwars/character-information swapi --station\n```\n\n_See code: [dist/commands/create/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/map.ts)_\n\n\n## `superface create:mock-map PROFILEID`\n\nPrepares map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have created profile file (run sf create:profile).\n\n```\nUSAGE\n  $ superface create:mock-map [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have created profile file (run sf create:profile).\n\nEXAMPLES\n  $ superface create:mock-map starwars/character-information --force\n\n  $ superface create:mock-map starwars/character-information -s 3\n\n  $ superface create:mock-map starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map.ts)_\n\n## `superface create:mock-map-test PROFILEID`\n\nCreates test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\n```\nUSAGE\n  $ superface create:mock-map-test [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\nEXAMPLES\n  $ superface create:mock-map-test starwars/character-information --force\n\n  $ superface create:mock-map-test starwars/character-information -s 3\n\n  $ superface create:mock-map-test starwars/character-information --station\n```\n\n_See code: [dist/commands/create/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map-test.ts)_\n\n## `superface create:profile PROFILEID`\n\ncreates profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface create:profile [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>]\n    [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  creates profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface create:profile starwars/character-information --force\n\n  $ superface create:profile starwars/character-information -s 3\n\n  $ superface create:profile starwars/character-information --station\n```\n\n_See code: [dist/commands/create/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/profile.ts)_\n\n## `superface create:provider PROVIDERNAME`\n\nPrepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created provider.json file after running this command.\n\n```\nUSAGE\n  $ superface create:provider [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Prepares provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface prepare:provider swapi --force\n\n  $ superface prepare:provider swapi -s 3\n\n  $ superface prepare:provider swapi --station\n```\n\n_See code: [dist/commands/create/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/provider.ts)_\n\n## `superface create:test PROFILEID PROVIDERNAME`\n\nCreates test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface create:test [PROFILEID] [PROVIDERNAME] [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface create:test starwars/character-information swapi\n\n  $ superface create:test starwars/character-information swapi --station\n\n  $ superface create:test starwars/character-information swapi --force\n\n  $ superface create:test starwars/character-information swapi -q\n```\n\n_See code: [dist/commands/create/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/test.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish [DOCUMENTTYPE] --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.0-rc.2","dist":{"shasum":"a6cfa765698aa2de87637f74e0ebc843b8cddd11","integrity":"sha512-Bg7t29KHtCLeqmhc4a0ESyBH+R5qYcar33G24cWVh20ArSqbvddQP1bxc5zhcxriuJA6s38KrohGh/iXfG/XbQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.0-rc.2.tgz","fileCount":462,"unpackedSize":773108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxBJOeX6KHmvOPCfFz4TOeXwOBVy9A8C3ZBm5SFa/K1AiEAsTZXdLj3F5MdhsshOrMfskTPObAnC1MeskEh3VkvgAc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2LEbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9dg//fAg47U+6sngCm/dphuheRUY/z7m2RVapxqM2J8Q2v4hMraTB\r\nAo1j1vrj25UMezPPv6lI6VWz7pYQrCf/GGGcQTvc9YcJhGpoK8lytEv7ZOq6\r\nMDuvh/nLcaArHn7oGiuyXoHfuuNj4b9BVIXvTOyi1qM9fOMlvcQBEkz114TO\r\nVh3aHkUzricUwqkUHel8ZLypid5nIIc4KtPtUN0AfhToJ488LlG/DHV/fLdO\r\nG4n+31x/Pcc9IeLWQqUCouImhBmTrWCGrIkLwnNXaDR+VQ0qp602s4BexVXo\r\nDvIzfvxcmROseZZ067Th1/CjpZ/v+/nWonLiJ2qbSQGHnuSVkBIEpGaN8hYM\r\nADr/uJlEy6KFJCD1w0mVmp3lOHh/Mj/Jkj3g+D/0PhIYhCh+SmEHd9gVLi1b\r\n6M3LkNKtlgZHlmwAGL2fLtqgKI/IAdB6IZYMwseuSMQQhiuEBGUmX1YFxAYu\r\nSPJwsqLav2plGBcAOMwzBT2xAalLHpVDINvkDfdKuX4McImnjNsKDDtDw75Z\r\nnS8OZoE5L/P3izJF+ZibV/TmXC6zrds1bFSrF4ffS8gqnmcPQfalKEpkL4q8\r\nvHvwi0cmWc0iGwmdR/IiHgXDQ7X+VLlH47iZ1oHXxAwRajqehyjw/Q0Icous\r\n0oG5zEtpcucdHhMuqADFwpO1EglKmqtEHAQ=\r\n=mpW/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.0-rc.2_1675145498975_0.5570461339569597"},"_hasShrinkwrap":false},"3.0.0":{"name":"@superfaceai/cli","version":"3.0.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.0","dist":{"shasum":"72ec478108e9ca5535439a68f9dbeabe2fb0abdb","integrity":"sha512-K9vrFV9BA84w7GoiiBq54iTYyp3IiekBrUdOONoBQ3t1GfRxdtKZ6YvMmzXE1BAySZYERggWjfm55K/0M03GWg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.0.tgz","fileCount":462,"unpackedSize":774332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtSGjiIzc93afxthZSwdikfIf1mjYzV3T+kkSdVgLSSAiEAjN3mex9wYxML3VrS9Lnj8JgaTI5uxS782jwq3QWmyLU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj45GvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr5xAAoAZVMoM5nO4VYR7tuXs5+dEH3CTYoGnQZw52kkwFEoV6kUZ6\r\nmvJk2a4xDONLEwfpNGtmJQuHvASw4JbkDU8QI2CL/P3R6C20Yq75GuDDRFg+\r\n0LxsXvFN3KbOi0ubHJpnq1/lUE32VkYInlMuLGbs/a1d5CNzgOXbK6ploLOd\r\nj+aNEju2KcCkjZvRdzBWXy48S9kQdtO+I0MWoCGJNeKlmiHTtSXucLHphmkB\r\nSdockr71Igp38aJbtIotFVkLlGYBAyPbVKo7j8svNL/Z3YCSoloJdi4WEBvY\r\nncDYb5pjcFhtFTJ8Ggs7I7ZqdfnAeoLf9U4eoKAXPYGuExwirOo6AT2D1MWH\r\n6rWYlc11fCTivIGooe7J1gGQ5kiCaRzxj17uL256wgeVQ0no5P07O9lMgh3B\r\nTkAo+GfejNInrs1OfmaoIk+hKyyALSnzSUQANw7QUY1vUnmDPlsUBdnjZQGK\r\nU86am3M7UADtHUoptNGRV39ZV+Ue26xoFUvtnDdrs0KxAJQGEaVD8F1nm/I0\r\nm2PEdBavm5kAmE8vno9dSURhGYyHIo/vQ3misI6T0tcLBrVNngqhTYZB4z8x\r\nkNAKcGJJ5es2BZb9R7AyKK9sygPRKWh6iwB+D1c8LkpRuGGP7F3pb9XRUZ/q\r\nOfzpdURurbsNd2FrnYkT2TD6hYnacDDTFoY=\r\n=5FtI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.0_1675858351133_0.9284209691444203"},"_hasShrinkwrap":false},"3.0.1":{"name":"@superfaceai/cli","version":"3.0.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.1","dist":{"shasum":"aa6b3d16dc3542f05feca18816608dae1760e87b","integrity":"sha512-YMmUWhVsB67Zrm9CDykQw17WzOlrLRISsg8dSXVDFnXdh9rYtEnesKeEAlvGAAfItvUhVwJvayC/xe3h2NZVoQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.1.tgz","fileCount":462,"unpackedSize":765203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuMFiSpxvKq8izYQ4D1u0S8mNCjTc8mv830O681U8oEAIhAP25KYWac7wT5KP+aAn2wEdSRkDgSW08Cz+xRhYL2x9r"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5LWwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqumw//T3lK3DtLH1kgKlU932g0e5UxF7KkxSAEF/I/wzfsHx8+n6OX\r\n+8QUvVgx/oO7p+PyjiD0AHMXMnxsARHdZRysnwCdu7unSpSU4tfPq6cBHh4l\r\n75Z1NXNKlgEFeDjAgoHRLyZ+0Nr5slpbPvQ0lqpmFXV9rJWyYxxQdSu2rFRt\r\nGm+xNVMMu/RCtKo9Ccef4BKVg/S6v5k15zg08IjEeEKLyt7ZJ5DArsYxWgFL\r\nE7oXNGmT/RPcyi6hwwaUpocKjck8RQTfHHrabmuZNAchi5yfrb1e20vO3oAF\r\nJj2zQ1XbtAS+R8igysepPr80Asw94E8x2Tn7ltm3NQYg/akGR7B0isd3AUPk\r\nGdnByFZAqBEsp5XDhKmnvzuvNNOg3mhXCfN/DWk+tIul+ud6HMdIX4Xfpd0i\r\n4N+NCZ1hQ1g8MgIC3Llg2T2k1R5fpPRWpIG81bOYLGInK7EyXxd49RJlM57E\r\nJ5GO+A/pvtXT9msHvXJeWvdrg01O1HL/MZWwVngGUNLmfmbsbx/RHApUAxeo\r\n5wVJrscc0LgUElgeJdROyAnxVNU+cyUwOdIXtrz+TYJLQk42NUY65f/276/x\r\nYwRL7oFj5XXh1tbipPtOMNzYQzDHQYTC/lYWSiY81r7Crjc53qg9Kg4dNolM\r\nFX9ettXN/vCxXNVwOmm0eXt0fvYuw958At4=\r\n=QhYx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.1_1675933104455_0.8015639467964903"},"_hasShrinkwrap":false},"3.0.2-rc.0":{"name":"@superfaceai/cli","version":"3.0.2-rc.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface check`](#superface-check)\n* [`superface compile`](#superface-compile)\n* [`superface configure PROVIDERNAME`](#superface-configure-providername)\n* [`superface create:map PROFILEID PROVIDERNAME`](#superface-createmap-profileid-providername)\n* [`superface create:mock-map PROFILEID`](#superface-createmock-map-profileid)\n* [`superface create:mock-map-test PROFILEID`](#superface-createmock-map-test-profileid)\n* [`superface create:profile PROFILEID`](#superface-createprofile-profileid)\n* [`superface create:provider PROVIDERNAME`](#superface-createprovider-providername)\n* [`superface create:test PROFILEID PROVIDERNAME`](#superface-createtest-profileid-providername)\n* [`superface init [NAME]`](#superface-init-name)\n* [`superface install [PROFILEID]`](#superface-install-profileid)\n* [`superface lint`](#superface-lint)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface publish DOCUMENTTYPE`](#superface-publish-documenttype)\n* [`superface whoami`](#superface-whoami)\n\n## `superface check`\n\nChecks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and its maps, in that case remote files can be used.\n\n```\nUSAGE\n  $ superface check [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [-j] [-f]\n\nFLAGS\n  -f, --failOnWarning     When true command will fail on warning\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider.\n\nDESCRIPTION\n  Checks all maps, profiles and providers locally linked in super.json. Also can be used to check specific profile and\n  its maps, in that case remote files can be used.\n  Command ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface check\n\n  $ superface check -f\n\n  $ superface check --profileId starwars/character-information\n\n  $ superface check --profileId starwars/character-information --providerName swapi\n\n  $ superface check --profileId starwars/character-information --providerName swapi -j\n\n  $ superface check --profileId starwars/character-information --providerName swapi -s 3\n\n  $ superface check --profileId starwars/character-information --providerName swapi -q\n```\n\n_See code: [src/commands/check.ts](https://github.com/superfaceai/cli/tree/main/src/commands/check.ts)_\n\n## `superface compile`\n\nCompiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are compiled.\n\n```\nUSAGE\n  $ superface compile [-q] [--noColor] [--noEmoji] [-h] [--profileId <value>] [--providerName <value>] [-s\n    <value>] [--onlyProfile | --onlyMap]\n\nFLAGS\n  -h, --help              show CLI help\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --onlyMap               Compile only a map/maps\n  --onlyProfile           Compile only a profile/profiles\n  --profileId=<value>     Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  Name of provider. This argument is used to compile map\n\nDESCRIPTION\n  Compiles locally linked maps and profiles in `super.json`. When running without `--profileId` flag, all locally linked\n  files are compiled. When running with `--profileId`, a single local profile source file, and all its local maps are\n  compiled. When running with `--profileId` and `--providerName`, a single local profile and a single local map are\n  compiled.\n\nEXAMPLES\n  $ superface compile\n\n  $ superface compile --profileId starwars/character-information --profile\n\n  $ superface compile --profileId starwars/character-information --profile -q\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyMap\n\n  $ superface compile --profileId starwars/character-information --providerName swapi --onlyProfile\n```\n\n_See code: [src/commands/compile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/compile.ts)_\n\n## `superface configure PROVIDERNAME`\n\nConfigures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface registry or from local file.\n\n```\nUSAGE\n  $ superface configure PROVIDERNAME -p <value> [-q] [--noColor] [--noEmoji] [-h] [--write-env] [-f]\n    [--localProvider <value>] [--localMap <value>] [--mapVariant <value>]\n\nARGUMENTS\n  PROVIDERNAME  Provider name.\n\nFLAGS\n  -f, --force              When set to true and when provider exists in super.json, overwrites them.\n  -h, --help               show CLI help\n  -p, --profile=<value>    (required) Specifies profile to associate with provider\n  -q, --quiet              When set to true, disables the shell echo output of action.\n  --localMap=<value>       Optional filepath to .suma map file\n  --localProvider=<value>  Optional filepath to provider.json file\n  --mapVariant=<value>     Optional map variant\n  --noColor                When set to true, disables all colored output.\n  --noEmoji                When set to true, disables displaying emoji in output.\n  --write-env              When set to true command writes security variables to .env file\n\nDESCRIPTION\n  Configures new provider and map for already installed profile. Provider configuration is dowloaded from a Superface\n  registry or from local file.\n\nEXAMPLES\n  $ superface configure twilio -p send-sms\n\n  $ superface configure twilio -p send-sms -q\n\n  $ superface configure twilio -p send-sms -f\n\n  $ superface configure twilio -p send-sms --localProvider providers/twilio.provider.json\n\n  $ superface configure twilio -p send-sms --localMap maps/send-sms.twilio.suma\n\n  $ superface configure twilio -p send-sms --mapVariant generated\n```\n\n_See code: [src/commands/configure.ts](https://github.com/superfaceai/cli/tree/main/src/commands/configure.ts)_\n\n## `superface create:map PROFILEID PROVIDERNAME`\n\nCreates map, based on profile and provider on a local filesystem. Created file contains structure with information from profile and provider files. Before running this command you should have created profile (run sf create:profile) and provider (run sf create:provider)\n\n```\nUSAGE\n  $ superface create:map PROFILEID PROVIDERNAME [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-v <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force            When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -s, --scan=<value>     When number provided, scan for super.json outside cwd within range represented by this number.\n  -v, --variant=<value>  Variant of a map\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n  --station              When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates map, based on profile and provider on a local filesystem. Created file contains structure with information\n  from profile and provider files. Before running this command you should have created profile (run sf create:profile)\n  and provider (run sf create:provider)\n\nEXAMPLES\n  $ superface create:map starwars/character-information swapi --force\n\n  $ superface create:map starwars/character-information swapi -s 3\n\n  $ superface create:map starwars/character-information swapi --station\n```\n\n_See code: [src/commands/create/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/map.ts)_\n\n\n## `superface create:mock-map PROFILEID`\n\nCreates map for mock provider on a local filesystem. Created map always returns success result example from profile file. Before running this command you should have created profile file (run sf create:profile).\n\n```\nUSAGE\n  $ superface create:mock-map PROFILEID [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates map for mock provider on a local filesystem. Created map always returns success result example from profile\n  file. Before running this command you should have created profile file (run sf create:profile).\n\nEXAMPLES\n  $ superface create:mock-map starwars/character-information --force\n\n  $ superface create:mock-map starwars/character-information -s 3\n\n  $ superface create:mock-map starwars/character-information --station\n```\n\n_See code: [src/commands/create/mock-map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map.ts)_\n\n## `superface create:mock-map-test PROFILEID`\n\nCreates test for mock provider map on a local filesystem. Created test expects success result example from profile file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\n```\nUSAGE\n  $ superface create:mock-map-test PROFILEID [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test for mock provider map on a local filesystem. Created test expects success result example from profile\n  file. Before running this command you should have created mock provider map (run sf create:mock-map).\n\nEXAMPLES\n  $ superface create:mock-map-test starwars/character-information --force\n\n  $ superface create:mock-map-test starwars/character-information -s 3\n\n  $ superface create:mock-map-test starwars/character-information --station\n```\n\n_See code: [src/commands/create/mock-map-test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/mock-map-test.ts)_\n\n## `superface create:profile PROFILEID`\n\ncreates profile file on local filesystem and links it to super.json.\n\n```\nUSAGE\n  $ superface create:profile PROFILEID [-q] [--noColor] [--noEmoji] [-h] [-v <value>] [-u <value>] [-s <value>] [-f]\n    [--station]\n\nARGUMENTS\n  PROFILEID  Profile Id in format [scope](optional)/[name]\n\nFLAGS\n  -f, --force               When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                show CLI help\n  -q, --quiet               When set to true, disables the shell echo output of action.\n  -s, --scan=<value>        When number provided, scan for super.json outside cwd within range represented by this\n                            number.\n  -u, --usecase=<value>...  Usecases that profile contains\n  -v, --version=<value>     [default: 1.0.0] Version of a profile\n  --noColor                 When set to true, disables all colored output.\n  --noEmoji                 When set to true, disables displaying emoji in output.\n  --station                 When set to true, command will create profile in folder structure of Superface station\n\nDESCRIPTION\n  creates profile file on local filesystem and links it to super.json.\n\nEXAMPLES\n  $ superface create:profile starwars/character-information --force\n\n  $ superface create:profile starwars/character-information -s 3\n\n  $ superface create:profile starwars/character-information --station\n```\n\n_See code: [src/commands/create/profile.ts](https://github.com/superfaceai/cli/tree/main/src/commands/commands/create/profile.ts)_\n\n## `superface create:provider PROVIDERNAME`\n\nCreates provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created provider.json file after running this command.\n\n```\nUSAGE\n  $ superface create:provider PROVIDERNAME [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates provider on a local filesystem and adds it to super.json. You do not have to touch super.json or created\n  provider.json file after running this command.\n\nEXAMPLES\n  $ superface create:provider swapi --force\n\n  $ superface create:provider swapi -s 3\n\n  $ superface create:provider swapi --station\n```\n\n_See code: [src/commands/create/provider.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/provider.ts)_\n\n## `superface create:test PROFILEID PROVIDERNAME`\n\nCreates test file for specified profile and provider. Examples in profile are used as an input and @superfaceai/testing library is used to orchestrate tests.\n\n```\nUSAGE\n  $ superface create:test PROFILEID PROVIDERNAME [-q] [--noColor] [--noEmoji] [-h] [-s <value>] [-f] [--station]\n\nARGUMENTS\n  PROFILEID     Profile Id in format [scope](optional)/[name]\n  PROVIDERNAME  Name of provider\n\nFLAGS\n  -f, --force         When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help          show CLI help\n  -q, --quiet         When set to true, disables the shell echo output of action.\n  -s, --scan=<value>  When number provided, scan for super.json outside cwd within range represented by this number.\n  --noColor           When set to true, disables all colored output.\n  --noEmoji           When set to true, disables displaying emoji in output.\n  --station           When set to true, command will create map in folder structure of Superface station\n\nDESCRIPTION\n  Creates test file for specified profile and provider. Examples in profile are used as an input and\n  @superfaceai/testing library is used to orchestrate tests.\n\nEXAMPLES\n  $ superface create:test starwars/character-information swapi\n\n  $ superface create:test starwars/character-information swapi --station\n\n  $ superface create:test starwars/character-information swapi --force\n\n  $ superface create:test starwars/character-information swapi -q\n```\n\n_See code: [src/commands/create/test.ts](https://github.com/superfaceai/cli/tree/main/src/commands/create/test.ts)_\n\n## `superface init [NAME]`\n\nInitializes superface local folder structure.\n\n```\nUSAGE\n  $ superface init [NAME] [-q] [--noColor] [--noEmoji] [-h] [--profiles <value>] [--providers <value>] [-p]\n\nARGUMENTS\n  NAME  Name of parent directory.\n\nFLAGS\n  -h, --help              show CLI help\n  -p, --prompt            When set to true, prompt will be executed.\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --profiles=<value>...   Profile identifiers.\n  --providers=<value>...  Provider names.\n\nDESCRIPTION\n  Initializes superface local folder structure.\n\nEXAMPLES\n  $ superface init\n\n  $ superface init foo\n\n  $ superface init foo --providers bar twilio\n\n  $ superface init foo --profiles my-profile@1.1.0 another-profile@2.0 --providers osm gmaps\n```\n\n_See code: [src/commands/init.ts](https://github.com/superfaceai/cli/tree/main/src/commands/init.ts)_\n\n## `superface install [PROFILEID]`\n\nAutomatically initializes superface directory in current working directory if needed, communicates with Superface Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install profiles and providers listed in super.json\n\n```\nUSAGE\n  $ superface install [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-p <value>] [-f] [-l] [-s <value>]\n\nARGUMENTS\n  PROFILEID  Profile identifier consisting of scope (optional), profile name and its version.\n\nFLAGS\n  -f, --force                 When set to true and when profile exists in local filesystem, overwrites them.\n  -h, --help                  show CLI help\n  -l, --local                 When set to true, profile id argument is used as a filepath to profile.supr file.\n  -p, --providers=<value>...  Provider name.\n  -q, --quiet                 When set to true, disables the shell echo output of action.\n  -s, --scan=<value>          When number provided, scan for super.json outside cwd within range represented by this\n                              number.\n  --noColor                   When set to true, disables all colored output.\n  --noEmoji                   When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Automatically initializes superface directory in current working directory if needed, communicates with Superface\n  Store API, stores profiles and compiled files to a local system. Install without any arguments tries to install\n  profiles and providers listed in super.json\n\nEXAMPLES\n  $ superface install\n\n  $ superface install sms/service@1.0\n\n  $ superface install sms/service@1.0 --providers twilio tyntec\n\n  $ superface install sms/service@1.0 -p twilio\n\n  $ superface install --local sms/service.supr\n```\n\n_See code: [src/commands/install.ts](https://github.com/superfaceai/cli/tree/main/src/commands/install.ts)_\n\n## `superface lint`\n\nLints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in that case remote files can be used.Outputs the linter issues to STDOUT by default.\n\n```\nUSAGE\n  $ superface lint [-q] [--noColor] [--noEmoji] [-h] [--providerName <value>] [--profileId <value>] [-o\n    <value>] [--append] [-f long|short|json] [-s <value>]\n\nFLAGS\n  -f, --outputFormat=<option>  [default: short] Output format to use to display errors and warnings.\n                               <options: long|short|json>\n  -h, --help                   show CLI help\n  -o, --output=<value>         [default: -] Filename where the output will be written. `-` is stdout, `-2` is stderr.\n  -q, --quiet                  When set to true, disables the shell echo output of action.\n  -s, --scan=<value>           When number provided, scan for super.json outside cwd within range represented by this\n                               number.\n  --append                     Open output file in append mode instead of truncating it if it exists. Has no effect with\n                               stdout and stderr streams.\n  --noColor                    When set to true, disables all colored output.\n  --noEmoji                    When set to true, disables displaying emoji in output.\n  --profileId=<value>          Profile Id in format [scope/](optional)[name]\n  --providerName=<value>       Provider name\n\nDESCRIPTION\n  Lints all maps and profiles locally linked in super.json. Also can be used to lint specific profile and its maps, in\n  that case remote files can be used.Outputs the linter issues to STDOUT by default.\n  Linter ends with non zero exit code if errors are found.\n\nEXAMPLES\n  $ superface lint\n\n  $ superface lint -f long\n\n  $ superface lint --profileId starwars/character-information\n\n  $ superface lint --profileId starwars/character-information --providerName swapi\n\n  $ superface lint -o -2\n\n  $ superface lint -f json\n\n  $ superface lint -s 3\n```\n\n_See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/src/commands/lint.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [src/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface publish DOCUMENTTYPE`\n\nUploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check and Lint internaly to ensure quality\n\n```\nUSAGE\n  $ superface publish DOCUMENTTYPE --profileId <value> --providerName <value> [-q] [--noColor] [--noEmoji]\n    [-h] [--dryRun] [-f] [-s <value>] [-j] [--noSwitch | [--switch | ]]\n\nARGUMENTS\n  DOCUMENTTYPE  (map|profile|provider) Document type of published file\n\nFLAGS\n  -f, --force             Publishes without asking for any confirmation.\n  -h, --help              show CLI help\n  -j, --json              Formats result to JSON\n  -q, --quiet             When set to true, disables the shell echo output of action.\n  -s, --scan=<value>      When a number is provided, scan for super.json outside cwd within the range represented by\n                          this number.\n  --dryRun                Runs without sending the actual request.\n  --noColor               When set to true, disables all colored output.\n  --noEmoji               When set to true, disables displaying emoji in output.\n  --noSwitch              After publish do NOT switch to the remote version of profile/map/provider\n  --profileId=<value>     (required) Profile Id in format [scope/](optional)[name]\n  --providerName=<value>  (required) Name of the provider. This argument is used to publish a map or a provider.\n  --switch                After publish switch to the remote version of profile/map/provider\n\nDESCRIPTION\n  Uploads map/profile/provider to Store. Published file must be locally linked in super.json. This command runs Check\n  and Lint internaly to ensure quality\n\nEXAMPLES\n  $ superface publish map --profileId starwars/character-information --providerName swapi -s 4\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi -f\n\n  $ superface publish provider --profileId starwars/character-information --providerName swapi -q\n\n  $ superface publish profile --profileId starwars/character-information --providerName swapi --dryRun\n```\n\n_See code: [src/commands/publish.ts](https://github.com/superfaceai/cli/tree/main/src/commands/publish.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.2-rc.0","dist":{"shasum":"b14da2e1a230031ff44de8abbcefc9458b112adc","integrity":"sha512-xWhToM75KBCtMPfAoIR+X9FfxDP0MfQexSelTAKVPrJi5ybVeEdj1QQGFLwEdXyxnKu/GRrSuf8D2bT2e7nPdw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.2-rc.0.tgz","fileCount":462,"unpackedSize":766748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqzw8pbbJY1tfE5h0I5FGtsdrJBZsjVR47yLVQm7cULAiEA6tmoQ0Yw6/uq3TifKx3/G7fR65MsvhTLzygxPUgJHoE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCtAtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqG2w/9GB1OsXEAze+B93hE4mPLWbo8yViLwaipe8nKQMOYLO3r84pb\r\nCthDqG+bPG9eoPIU8Kdw2DIJCsaZ4PFQkNRaw3XWPvs9WmN4SWP1Ssd6r8HH\r\n1gsZiMTVGOxQLUaP5NMd6MwlvlcHWT9UFPNQ5Ehf5UdHm2fu8acTSZd/HTrY\r\nLYjzGNjndyGWxXhxZVTY4vF/SIjT6zN5BR1g58mYp08df0eAg+3fkOTUtsbq\r\ncXQi+tsoB3oyi8u5ocJImK1HvpVIz7HQwqGufzWzdGvJMgEaonpEuckeh3xc\r\ntdljXikfP4lB7UBVYUhT2rA5J+y9BtBh6WN1xgdG4Q1R63G2W+3VYX+Ocx/f\r\nELCf81eEMZsQecObYGClj6JKsag8iExog3mmN6EnKJMycU1eiLHe1IuBtBD6\r\n6wxKOGFCUa6NIfr6EYK64yP6oUh8UqcY+9bcSdFU5MFEckbI4mUXBlN2gSFf\r\n1BxDH1ilwy3GXmckf/MXPcwC5igTrMOZFg0TXols7BH4203tLYJSRHjvuAfk\r\nKoamVCTdPZ2YEQQYFv6cODKVQcIqbtSj9dad7VQgQgqYk9AeYtr1G74njwfV\r\nYXwTdOwxWfsg1nzF2PwLdIJZ194Gvw+V9LpU+fZxjbE6MouT8vqeFOkg+xZX\r\n3gVs6hIk4wSs6gfF/69llXch2cQA+lmPurM=\r\n=flTi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.2-rc.0_1678430253404_0.5385099381171101"},"_hasShrinkwrap":false},"3.0.2":{"name":"@superfaceai/cli","version":"3.0.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"^5.0.0","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@3.0.2","dist":{"shasum":"bd8c79eaea8960d7515bb93a7654661f424d79fa","integrity":"sha512-PMgV12gE236POGulS/uKIi8u84DV4fCvmcuCTtx/pFpTL64vHcIZguZGGqvyBtWPUoRAkwmuiydJ/5hZjv64vg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-3.0.2.tgz","fileCount":462,"unpackedSize":766836,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC28VhQ3tBjcpKFkLL26/StMydv+0Zl4CodPlv25zWjCgIhAKr9zJiKuMmQl3sB2qEV+SnbkVNSPYuHgxOqhGimP1I6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEDfzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpaug//ZIvtsiGJ+FNtDGQVgnGexudh5hlWvMVqMeXomCnV/G5FMtQM\r\nRjkesbUvndeiPm1cSfYcFz08GHmzkG9uX/XheySqDKo8jAJK16BMOrhZ4vdB\r\n5NdhcHLp5IMRSdbpuaujetoVSh9JymIyB13/5f4AzdwuankjEOYGgZjwBeiE\r\nlezOQnxFE0ZIaJlx0aWg6Oj9fmrrP47Zekr100ht0tWv6uT4lFe69jF66ZUt\r\n/GVQs4aj9Agw45GYfFDDnRFZ9VKoudyKAJOBWHFpG/HrSE5gVUnmDnPupIY4\r\n8tVFwmBK6EbWE127m4AjTG6Jx6E7Peo7pGgg+0m8wzChCikMqO/hU/QqbPlF\r\nY+JrKEMtsLKeXWPkGHi7ZVnM/Ge64ujh/hdODPfZ0unoNZ0hDfJFpVgjODtS\r\nabTsBwKozCqsBj8gllMNfSU/6P0K8caCP5hpSOTPRtkWUImrDBOWd8w5LGNg\r\nrAoUEVaTKNDzr9nYHX+sZj6Ecbmbuvu0/T9zSgG6BKvfcQG0kqN2NbvpiIJS\r\nmDakODTyCG/HxHOmP0BOp/HzWXsjV/R7b4IGO+tRzn9ucCPZSpTJk2ppo7s4\r\nj+Gw8tFW5Rky64Zxi/NhaBvFr85vR5EuZZ2F5x8H9nSw+JmYII8OounIOqwj\r\ndjkvElBI09b6AO/s/EpaL8sjZ3hNjDPnzig=\r\n=IH62\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_3.0.2_1678784498864_0.2835480333564766"},"_hasShrinkwrap":false},"4.0.0-beta.0":{"name":"@superfaceai/cli","version":"4.0.0-beta.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.0","dist":{"shasum":"d19a8882183ec65996ab1be9fe5d7f9ca28d8e6f","integrity":"sha512-yu6FCLNm514x5RW2TbZ/KXBzfSipHKaySnddCB4ecFUNgn/ByACdpp+J+Rls3ADCYYuMG9sJQDQDsvEdjuX/bQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.0.tgz","fileCount":589,"unpackedSize":893385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHA5iaJz3F22CMKbR0tCpMjGLeIw0RPufkgD4WwwulqWAiEAlWVA8Tv1OBqUQxZRQmKsDqVm6REUAOm1COBR33BepBE="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.0_1688489554434_0.7720374634045943"},"_hasShrinkwrap":false},"4.0.0-beta.2":{"name":"@superfaceai/cli","version":"4.0.0-beta.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.2","dist":{"shasum":"f297079bdde39e73aec30b7c99d7cd5cdd0174c0","integrity":"sha512-fyfi93cJYR99XW+klZ8lmxgvo12jXSVaM1+m2xXZLeEDJGcD964logUWy0i/L8PBBXh5BDx/whwEq5hzYGlLAg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.2.tgz","fileCount":589,"unpackedSize":895002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOGhHJxH+RqIXXcVoyfj2pfZL7CtCULoW9G4vAzchDygIgAp7MLUaRwXeu3nnoDHuIAv46RFPSk3Xkjtloh5r9bt0="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.2_1688557269403_0.9704076700720428"},"_hasShrinkwrap":false},"4.0.0-beta.3":{"name":"@superfaceai/cli","version":"4.0.0-beta.3","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"# CLI\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n![NPM](https://img.shields.io/npm/v/@superfaceai/cli)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\">\n\nSuperface CLI provides access to superface tooling from the CLI.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nSuperface (super-interface) is a higher-order API, an abstraction on top of modern APIs like GraphQL and REST. Superface gives you the one interface to discover, connect, and query any capabilities available via conventional APIs.\n\nThrough its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such, it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.\n\nSuperface allows for switching providers at runtime in milliseconds with no development cost. Furthermore, Superface decentralizes the composition and aggregation of integrations, and thus creates an Autonomous Integration Mesh.\n\nMotivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\nYou can get more information at https://superface.ai and https://superface.ai/docs.\n\n## Install\n\nTo install this package, just install the cli globally using one of the following commands:\n\n```shell\n# if using yarn\nyarn global add @superfaceai/cli\n# otherwise\nnpm install --global @superfaceai/cli\n```\n\nOr you can use NPX directly with Superface CLI commands:\n\n```shell\nnpx @superfaceai/cli [command]\n# eg.\nnpx @superfaceai/cli install [profileId eg. communication/send-email]\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai).\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n- [@Vratislav Kalenda](https://github.com/Vratislav)\n- [@Z](https://github.com/zdne)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2021 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.3","dist":{"shasum":"d23d73dfa0cf1ccdb8d1fca8ba1b8e74ebc43c83","integrity":"sha512-xA9+rkbSEh+PybtEum95kQP79cCpPElb8zswL2i7ScEy1KVtpLCCZslE8ZnZtaorthGO6eJSHmftw6uAlAU0jw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.3.tgz","fileCount":589,"unpackedSize":895002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAYwOw3scsmN0i5aCyHeeFDISJAs/W6F8U6ChJUR+KZAiEArFzvaqlocMU6/M+kbDeUmQiyh2YCkIDS1uKjcroMTSE="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.3_1688563196234_0.569039535145901"},"_hasShrinkwrap":false},"4.0.0-beta.4":{"name":"@superfaceai/cli","version":"4.0.0-beta.4","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.4","dist":{"shasum":"72b4213be3bac6474fa4b803da42ad5b2801486c","integrity":"sha512-3M6/WsrmepAVpPriJvUhErgNrEdkzeQ8h3Rh66r1nArRsiDi+Sq0k+xzn5jzjmbblMDOUSMdTi3sjDPIllPCug==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.4.tgz","fileCount":616,"unpackedSize":910529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcteG7Kx5/etPw9axzy9iuzLyiLTHelG9/S7CDmQ2ZjgIgPtv0dkJGlTbREM+0zhqFC04u6DgbBzOaGvg7l5YL6AM="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.4_1688756281884_0.8937464813165155"},"_hasShrinkwrap":false},"4.0.0-beta.5":{"name":"@superfaceai/cli","version":"4.0.0-beta.5","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.5","dist":{"shasum":"ab0a82cd71ae2437ed8eb8a8eaf4dbf465f93d77","integrity":"sha512-zGYS6/a3MPDxn2ksDS5UoKZamoL9DIplQWpXn6QjY6mo4zaKGa22iUgdFN3q/oyYgWaw0lcBTXNNBAOF4b8+RQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.5.tgz","fileCount":616,"unpackedSize":910558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiDvaj63BOM7JvxgwZxqZTQgcDO9QkLgfGz8Qs+bXO0gIgBjJsZoRJXkAVSfHkRQSl4Y32yNjn+6P/OVYhRRPstIk="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.5_1688976567551_0.5216780440060371"},"_hasShrinkwrap":false},"4.0.0-beta.6":{"name":"@superfaceai/cli","version":"4.0.0-beta.6","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.6","dist":{"shasum":"b3b02cdc5b2ea2d327fbff62a090689c252f3574","integrity":"sha512-Sr4xdO/DB2F/sOK61PA36BWSfyWf+GKpzzcXYXeZFmGFwsVQ+1MV7oUx9NHHPMUS8dEGbPBa3tsc/TyrWMPhwA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.6.tgz","fileCount":619,"unpackedSize":918386,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlgnG3eB8CGx2pMqp4qQCZiQoHLPt1jACKeF6SnNJITAiEA8Rnahj/Z+nTUSf3eqkvRXyWNJcIe0kS/sE3OtLYPgwU="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.6_1689061617916_0.1809444574375889"},"_hasShrinkwrap":false},"4.0.0-beta.7":{"name":"@superfaceai/cli","version":"4.0.0-beta.7","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.7","dist":{"shasum":"72dce062d83f8ef03753d9073450af3f7b26ef60","integrity":"sha512-5Xxn7wktXKYYBEllGdrbXBauP0gcsLbYnIt9gO8gDaYxZKBwzmutx6d6q/QT+JGytIOJ40r6e3TRK6JjU6KF9w==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.7.tgz","fileCount":619,"unpackedSize":919020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzMOWCKsqTViy/B8GTeahLEkt/kWYf+xFsuC/kW+CK5QIgWtpB1X34N3tjb6HDzG8TvQHEEg+zIshWfHFfXKjFnKE="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.7_1689065603511_0.24647828644994574"},"_hasShrinkwrap":false},"4.0.0-beta.8":{"name":"@superfaceai/cli","version":"4.0.0-beta.8","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.8","dist":{"shasum":"53f5c18faad36b1b289c4f92e7afe308e79db715","integrity":"sha512-WArmrp6uNzeZo9io7VbdpjRhJUCZ+2yFAbplylnf8QY1c7hTd3YfQvz4sWP36fGQsrqHP6PhiI+yjgdNvwF5NA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.8.tgz","fileCount":619,"unpackedSize":919020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExnEqHKcdcZ6OdOydQ7/B1j5MJJ7s4iqIDxxLC8o558AiB0sGEl9WS8PzWRtzaWaHb8xsAtBPusC2SBW/D6xKayCg=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.8_1689066130860_0.6937105358137192"},"_hasShrinkwrap":false},"4.0.0-beta.9":{"name":"@superfaceai/cli","version":"4.0.0-beta.9","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.9","dist":{"shasum":"77e6026e569bc4f14a094eac9dfdceaf4fcfa9a2","integrity":"sha512-beTIQ23P5Ckjws5QgFKbRNMCcz1hFIZJi27yafEG77b5cU9Dnz020D+hwaB/hb/GIlKEq9jKG+N/H4fvmMeZCg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.9.tgz","fileCount":619,"unpackedSize":918905,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUnXN/mD4442GuEeIT0Fl8Ai3y3pyE0V/XdXsDEwpg0gIgYIqfO/PvR4e5iXs9M/uwPIhpdK7NF+i8b/xqWZkixjM="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.9_1689077663887_0.4854089451613879"},"_hasShrinkwrap":false},"4.0.0-beta.10":{"name":"@superfaceai/cli","version":"4.0.0-beta.10","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.10","dist":{"shasum":"e3a7acfb08e6ca36bacffa5fdc142a4a90b91922","integrity":"sha512-kAD4z5PMEGjHDAUTkcojlI+8loemhSBon81DTW0Oaf/YXe6jIeCU6J1mR0Lg4jETXs+EobEIAQpUDse8xdSWog==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.10.tgz","fileCount":619,"unpackedSize":918906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2TmJYKPgORZYoRYhUsspIyh0qSUIwSoJywKtKDE8dhAiEA5sut3BqYtCGn7+c4K+yppCfTpOxlspWwNY+or8WZkxo="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.10_1689080078928_0.9756478005916993"},"_hasShrinkwrap":false},"4.0.0-beta.11":{"name":"@superfaceai/cli","version":"4.0.0-beta.11","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.11","dist":{"shasum":"1af907f56d71284249cf59e8c3468f7763fdccec","integrity":"sha512-qXXLV9iYCJMjKtTj8nFsCpnwFJyJ65Zx42E/fAmPqMTTj4DHWNTxUQLp0BAcDldLFy+3BayeODmIFoUMb8SlHw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.11.tgz","fileCount":619,"unpackedSize":919054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNNpep+uiB1tnYeSvrf6rB5rZxTuE+hAwRKE4oJKjsfgIgHmw0RGqPRwgTWMvaKdUx9FqS0Hm01r4VmNWqBieg7L0="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.11_1689151675690_0.26437156015018526"},"_hasShrinkwrap":false},"4.0.0-beta.12":{"name":"@superfaceai/cli","version":"4.0.0-beta.12","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","hooks":{"init":"dist/hooks/init"},"plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.12","dist":{"shasum":"76ee3c8c5c184eb6900a3cf584c37797c44853e3","integrity":"sha512-RuOC/ZuujgQ9CmTFB84jDjXALR6iZj6E3eaxQdMZcWx9BBAL5tZXiAjeKSkTkAkqAfsXOZNt8vlTR433ccn2Pg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.12.tgz","fileCount":629,"unpackedSize":933711,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2l6zkQgFV0pr6E7F69DwARMERPTTdsl6ERAlgks8PdQIgR2rQPluMZq1oYpOCpj26wdpjB53wSro2UsfOR85SVvw="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.12_1689245959987_0.2396039210526082"},"_hasShrinkwrap":false},"4.0.0-beta.13":{"name":"@superfaceai/cli","version":"4.0.0-beta.13","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.13","dist":{"shasum":"9c2e60617fe22750d32db9afccc4a93c747e1c18","integrity":"sha512-o9cooRxT8O/o4UzE6BNPtczXUfQpywo7+b67aTFdGmjdrktnaFoqRGp1lkoZxu7ntkdBD+9aHdqlG/OCKRzDhw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.13.tgz","fileCount":625,"unpackedSize":933728,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9BAu0lkcv2cE1P23vmkSmMpSk/lBgtgXYPoyoVyznkAiB/gyoXHqlfXRzwCq/B+5D58Ji6WFCh5AeehqH+4iW6zA=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.13_1689254857698_0.9620972594034167"},"_hasShrinkwrap":false},"4.0.0-beta.14":{"name":"@superfaceai/cli","version":"4.0.0-beta.14","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.14","dist":{"shasum":"e9a3c2472b888f7568bbb7846f6dda9a7f39c9e9","integrity":"sha512-9KPLYJg5bmN+iyO0imsMpslvl+XcJscAHey3UPrACxT24TP80dpRgEyDfX0lRCxOqHLM3MNU3PEEYNN5gw+log==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.14.tgz","fileCount":625,"unpackedSize":935782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4x44fwikGVgOsW02bIzjvI6Ioljbs5T4IiXSl1+zg8AiAlB6OptmIADhkmSkUQAJpyRcEEkTAXaSXk/s4Dn1Us4w=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.14_1689331492972_0.5524628656090662"},"_hasShrinkwrap":false},"4.0.0-beta.15":{"name":"@superfaceai/cli","version":"4.0.0-beta.15","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"readmeFilename":"README.md","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID]`](#superface-map-providername-profileid)\n* [`superface new PROVIDERNAME [PROMPT]`](#superface-new-providername-prompt)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. This command will execute integration using Node.js (more runners coming soon)\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration. Commands `prepare`, `new` and `map` must be run before this command. This command will\n  execute integration using Node.js (more runners coming soon)\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME [PROMPT]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME [PROMPT] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n© 2023 Superface\n","licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0-beta.15","dist":{"shasum":"2193460069f127b29c29aba7b92a3a3b52dc6550","integrity":"sha512-FzJ/WRmehGZHMneRO+/kRLu31ZdKCkpASuKDQvLRtv4qIVUoEQCz9oP+gaNHWkJTO7ga+d/mfi77+GQKCbfaKA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0-beta.15.tgz","fileCount":628,"unpackedSize":950923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAtgR4n4oY7WT3Q8RVz1yhdMNRvz2GNn7HxUkjePwBrQIhALFjHX0pPgNJYduLEt9vPR9AAooIC6Ew5W2Hrr5PdcKi"}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0-beta.15_1689587061612_0.5537275104452855"},"_hasShrinkwrap":false},"4.0.0":{"name":"@superfaceai/cli","version":"4.0.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.0","dist":{"shasum":"2914691f7970ea6a3fea2777f3e18d0323c817b2","integrity":"sha512-2rNeFI2vfn2TVOtevDgwkEhc2BbjF6DGGnM3Vin7iFpQB2N7Qm8UPm4TGmhDdK9RjZXFuI5MJ94X0PkteQ3hjg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.0.tgz","fileCount":628,"unpackedSize":951008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn3auOyVL312Asu8q253Rzpxx8PfozJmzPZbvMl5RVeQIgJV+3gQnXR1lpkyd422UhrwDw9snsbABE/lwf4O7OAuU="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.0_1689596518284_0.29546438327883906"},"_hasShrinkwrap":false},"4.0.1":{"name":"@superfaceai/cli","version":"4.0.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.1","dist":{"shasum":"0a4372bb747b1267c6f82507d10b489289eb750a","integrity":"sha512-l18D0uF8bIQUrpZADG5kh4vcac23GhWDVUJTpHsQkG0VKoAS+2FYNTONSIdT1zJ5C2vO2/WjvUc1ySQElN7zrA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.1.tgz","fileCount":628,"unpackedSize":953147,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3nQVFr0UB9BhkjUX+gir2H6YukdT6YqTEFd6Ju9PjXQIgeopnxyF/DiZ+BQhY6eKSys3LT/9pTIwBQLAV+NxYpFc="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.1_1690874465357_0.16434360045370888"},"_hasShrinkwrap":false},"4.0.2":{"name":"@superfaceai/cli","version":"4.0.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"postinstall":"echo \"Thanks for checking out Superface.ai!\nFor help, run: superface --help\nDocumentation: https://sfc.is/docs\nQuestions or feedback: https://sfc.is/discussions\n\"","prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@types/superagent":"^4.1.10","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/one-sdk":"^2.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","inquirer-file-tree-selection-prompt":"^1.0.7","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.0.2","dist":{"shasum":"e49991b47b57058f14d92169e46479a3b24b75bd","integrity":"sha512-6fqUHhIsGBUXo78ErrtUJD6JaUSMSr43T1ajyawP+PRospuNJoYG7p3D/qa3DPMuAByZJ4gT7jmeArl/nzHS3A==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.0.2.tgz","fileCount":628,"unpackedSize":955073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqQiwHjj1BliWOnPCz5vXFFzasY5DliGgcqvqWoaHFDgIgBq1D6hyRUEhCY4UgNHgxSoXc07kpe9eOEtSjrx19G7U="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.0.2_1692600791686_0.01764346277271578"},"_hasShrinkwrap":false},"4.1.0":{"name":"@superfaceai/cli","version":"4.1.0","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"postinstall":"echo \"Thanks for checking out Superface.ai!\nFor help, run: superface --help\nDocumentation: https://sfc.is/docs\nQuestions or feedback: https://sfc.is/discussions\n\"","prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.1.0","dist":{"shasum":"5283c0536307f065e435d1b6159cf3e5b1afb1b4","integrity":"sha512-ux9Gey2NuKM2X2tZrRwo16GGe59Vn/r8zV0AKzQERyrDOGP9mahYIFGHQ3crtB498HhH4BHgf2uqs9yJljDFVQ==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.1.0.tgz","fileCount":256,"unpackedSize":364677,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5yRugl9AP1JeN3QFsc+egqb63AL3U4F1DzD4skh9BhAiAS67KxiNfyv05uq42S3mqjrZDRNfRD+qk2rQC8JDP/ag=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.1.0_1693914140443_0.9500088222813265"},"_hasShrinkwrap":false},"4.1.1":{"name":"@superfaceai/cli","version":"4.1.1","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"postinstall":"echo \"Thanks for checking out Superface.ai!\nFor help, run: superface --help\nDocumentation: https://sfc.is/docs\nQuestions or feedback: https://sfc.is/discussions\n\"","prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.1.1","dist":{"shasum":"1925aa64dbc65af4169e5bd93365a812b1973516","integrity":"sha512-/4+8cLkmknKOhaTo/w0kP0w209/5SFk4HyoEp92WS4HyP5UOhtlEwgHh/eVDU01z8pQRzfCzunG8bMZHllvLzw==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.1.1.tgz","fileCount":256,"unpackedSize":364967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEM4JsOVnXPHijyEbJyUJYfg3Ck5fE5EMETtrjLPirmYAiEAv1sSnzMfkIGumklM+HEDxIOqeJmljOf0Jrs2DiC1UCw="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.1.1_1695111494262_0.6354617531273985"},"_hasShrinkwrap":false},"4.1.2":{"name":"@superfaceai/cli","version":"4.1.2","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"postinstall":"echo \"Thanks for checking out Superface.ai!\nFor help, run: superface --help\nDocumentation: https://sfc.is/docs\nQuestions or feedback: https://sfc.is/discussions\n\"","prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.1.2","dist":{"shasum":"d50b5062882ea760d171adac78e7ac3aeb909679","integrity":"sha512-X59jJRjcXT35v/qVhTUfkjTz5CivBnkzbwTbPsoSHRZn56slMrV1wMxxA4fs3eAKOMWleaacmDMW9oHafYEorg==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.1.2.tgz","fileCount":256,"unpackedSize":374074,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSX8ES9q6Nh5pVp+/3sX+Es0npxmnKEoHvMrBvoVqaoAiBH7sX/zzoy4vtzHfmbYjPsiLoPknvPcfkMgo0Rfgf2Tw=="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.1.2_1696493769808_0.3440787670854186"},"_hasShrinkwrap":false},"4.1.3":{"name":"@superfaceai/cli","version":"4.1.3","description":"Superface CLI utility","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"private":false,"bin":{"superface":"bin/superface","sf":"bin/superface"},"scripts":{"postinstall":"echo \"Thanks for checking out Superface.ai!\nFor help, run: superface --help\nDocumentation: https://sfc.is/docs\nQuestions or feedback: https://sfc.is/discussions\n\"","prebuild":"rimraf dist","build":"tsc -p tsconfig.release.json --outDir dist","test":"yarn test:fast && yarn test:integration","test:clean":"jest --clear-cache && jest","lint":"eslint src/","lint:fix":"yarn lint --fix","format":"prettier -c src/","format:fix":"prettier --write src/","prepush":"yarn build && yarn test && yarn lint && yarn format","test:fast":"jest","test:integration":"jest --config=jest.config.integration.js","fixtures:recompile":"node ./dist/test/compile-fixtures.js"},"devDependencies":{"@types/concat-stream":"^1.6.0","@types/debug":"^4.1.5","@types/handlebars":"^4.1.0","@types/inquirer":"^7.3.1","@types/jest":"^27.0.1","@types/node":"^17.0.8","@types/rimraf":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.1.5","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^8.0.0","jest":"27.1.0","mockttp":"^3.6.0","prettier":"^2.3.2","ts-jest":"27.0.5"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-warn-if-update-available":"^1.7.0","@superfaceai/ast":"^1.3.0","@superfaceai/parser":"^2.1.0","@superfaceai/service-client":"5.2.1","chalk":"^4.1.0","cross-fetch":"^3.1.4","debug":"^4.3.1","handlebars":"^4.7.7","inquirer":"^7.3.3","nanospinner":"^1.1.0","netrc-parser":"^3.1.6","open":"^8.2.1","rimraf":"^3.0.2","typescript":"4.3.4"},"oclif":{"commands":"dist/commands","bin":"superface","plugins":["@oclif/plugin-warn-if-update-available"],"warn-if-update-available":{"timeoutInDays":7,"message":"<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."}},"licenseText":"MIT License\n\nCopyright (c) 2023 Superface s.r.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","license":"MIT","_id":"@superfaceai/cli@4.1.3","dist":{"shasum":"4b2674f9746d92776293124f3745f3a45c3c6d74","integrity":"sha512-0XkJfZDED5rh77mJZDpCIjSpF6lCfiJEhyKGyQAIsLDVFCWiumz+i0VdyUEP9wVi/8Qspj4CnZI63pj/i1WSDA==","tarball":"https://registry.npmjs.org/@superfaceai/cli/-/cli-4.1.3.tgz","fileCount":256,"unpackedSize":375497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClLjWMDkcY1HhnmdKapuL6Wg/VDKKJWrz6ObCYiMX+kgIgcNnexz9f6OvZd4+7c1FjAiggWjsdEGhunfzuwVWekms="}]},"_npmUser":{"name":"superface-bot","email":"hello@superface.ai"},"directories":{},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_4.1.3_1700645280519_0.8414256301366159"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-26T18:51:09.257Z","0.0.10":"2021-04-26T18:51:09.771Z","modified":"2023-11-22T09:28:00.999Z","0.0.11":"2021-04-27T09:01:53.085Z","0.0.12":"2021-04-29T06:59:07.530Z","0.0.13":"2021-05-05T10:32:37.113Z","0.0.14":"2021-05-12T11:09:00.200Z","0.0.15":"2021-06-03T11:53:23.041Z","0.0.16":"2021-06-07T13:35:03.178Z","0.0.17":"2021-06-08T08:36:52.688Z","0.0.18":"2021-06-15T12:45:27.941Z","0.0.19":"2021-07-08T05:23:58.024Z","0.0.20":"2021-07-20T14:17:53.000Z","0.0.22":"2021-08-04T10:00:06.693Z","0.0.23":"2021-09-07T08:54:39.686Z","0.0.24":"2021-09-23T06:46:20.705Z","0.0.25":"2021-09-29T14:43:19.065Z","0.0.26":"2021-10-13T10:50:36.982Z","0.0.27-beta.0":"2021-10-22T11:02:26.262Z","0.0.27-beta.1":"2021-10-26T07:28:44.954Z","0.0.27-beta.2":"2021-11-01T12:50:35.750Z","0.0.27-beta.3":"2021-11-02T08:51:43.620Z","0.0.27-beta.4":"2021-11-03T11:39:37.153Z","1.0.0":"2021-11-04T14:03:40.881Z","1.0.1":"2021-11-04T15:30:19.582Z","1.1.0-beta.0":"2022-02-17T12:11:34.712Z","1.1.0":"2022-02-25T08:47:38.511Z","1.2.0-beta.0":"2022-04-05T07:38:01.807Z","1.1.1":"2022-05-17T05:22:41.331Z","2.0.0-beta.0":"2022-08-12T05:31:44.010Z","2.0.0-beta.1":"2022-08-12T10:49:22.890Z","2.0.0":"2022-08-15T14:25:17.635Z","2.1.0-beta.0":"2022-11-22T07:16:05.096Z","2.1.0-beta.1":"2022-11-22T13:11:23.272Z","2.1.0-beta.2":"2022-11-24T09:39:56.887Z","2.1.0-beta.3":"2022-12-09T10:20:00.666Z","2.1.0-beta.4":"2022-12-21T13:49:38.649Z","3.0.0-rc.0":"2023-01-20T06:18:17.487Z","3.0.0-rc.1":"2023-01-27T06:05:04.727Z","3.0.0-rc.2":"2023-01-31T06:11:39.266Z","3.0.0":"2023-02-08T12:12:31.326Z","3.0.1":"2023-02-09T08:58:24.713Z","3.0.2-rc.0":"2023-03-10T06:37:33.622Z","3.0.2":"2023-03-14T09:01:39.070Z","4.0.0-beta.0":"2023-07-04T16:52:34.701Z","4.0.0-beta.1":"2023-07-05T10:50:03.777Z","4.0.0-beta.2":"2023-07-05T11:41:09.649Z","4.0.0-beta.3":"2023-07-05T13:19:56.590Z","4.0.0-beta.4":"2023-07-07T18:58:02.147Z","4.0.0-beta.5":"2023-07-10T08:09:27.699Z","4.0.0-beta.6":"2023-07-11T07:46:58.128Z","4.0.0-beta.7":"2023-07-11T08:53:23.825Z","4.0.0-beta.8":"2023-07-11T09:02:11.177Z","4.0.0-beta.9":"2023-07-11T12:14:24.128Z","4.0.0-beta.10":"2023-07-11T12:54:39.255Z","4.0.0-beta.11":"2023-07-12T08:47:55.971Z","4.0.0-beta.12":"2023-07-13T10:59:20.337Z","4.0.0-beta.13":"2023-07-13T13:27:38.036Z","4.0.0-beta.14":"2023-07-14T10:44:53.249Z","4.0.0-beta.15":"2023-07-17T09:44:21.884Z","4.0.0":"2023-07-17T12:21:58.527Z","4.0.1":"2023-08-01T07:21:05.601Z","4.0.2":"2023-08-21T06:53:12.088Z","4.1.0":"2023-09-05T11:42:20.710Z","4.1.1":"2023-09-19T08:18:14.481Z","4.1.2":"2023-10-05T08:16:09.985Z","4.1.3":"2023-11-22T09:28:00.725Z"},"maintainers":[{"name":"zdne","email":"z@goodapi.co"},{"name":"freaz","email":"mail@ondrejmusil.cz"},{"name":"superface-bot","email":"hello@superface.ai"}],"description":"Superface CLI utility","repository":{"type":"git","url":"https://github.com/superfaceai/cli.git"},"author":{"name":"Superface Team"},"license":"MIT","readme":"[Website](https://superface.ai) | [Get Started](https://superface.ai/docs/introduction/getting-started) | [Documentation](https://superface.ai/docs) | [GitHub Discussions](https://sfc.is/discussions) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)\n\n<img src=\"https://github.com/superfaceai/cli/blob/main/docs/LogoGreen.png\" alt=\"Superface\" width=\"100\" height=\"100\">\n\n# Superface CLI\n\n**Let AI connect the APIs for you.**\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/cli/main.yml)](https://github.com/superfaceai/cli/actions/workflows/main.yml)\n[![Stable Release](https://img.shields.io/github/v/release/superfaceai/cli?label=homebrew)](#install)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/cli)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\nSuperface CLI abstracts APIs into the business cases you need. Point at API docs,\nstate your desired use case, let AI create an integration code, then use it\nin your application. You remain in control of the code, and your app communicates\ndirectly with your chosen APIs without any middlemen or proxy.\n\n## Install\n\n[Install Homebrew](https://brew.sh/), then install Superface CLI with:\n\n```shell\nbrew install superfaceai/cli/superface\n```\n\n## Usage\n\n  <!-- commands -->\n* [`superface execute PROVIDERNAME PROFILEID`](#superface-execute-providername-profileid)\n* [`superface login`](#superface-login)\n* [`superface logout`](#superface-logout)\n* [`superface map PROVIDERNAME [PROFILEID] [LANGUAGE]`](#superface-map-providername-profileid-language)\n* [`superface new PROVIDERNAME PROMPT [PROFILEID]`](#superface-new-providername-prompt-profileid)\n* [`superface prepare URLORPATH [NAME]`](#superface-prepare-urlorpath-name)\n* [`superface whoami`](#superface-whoami)\n\n## `superface execute PROVIDERNAME PROFILEID`\n\nRun the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this command. You can switch runner language via `language` flag (`js` by default).\n\n```\nUSAGE\n  $ superface execute PROVIDERNAME PROFILEID [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars.character-information\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Run the created integration in superface directory. Commands `prepare`, `new` and `map` must be run before this\n  command. You can switch runner language via `language` flag (`js` by default).\n\nEXAMPLES\n  $ superface execute resend communication/send-email\n```\n\n_See code: [dist/commands/execute.ts](https://github.com/superfaceai/cli/tree/main/src/commands/execute.ts)_\n\n## `superface login`\n\nLogin to superface server\n\n```\nUSAGE\n  $ superface login [-q] [--noColor] [--noEmoji] [-h] [-f]\n\nFLAGS\n  -f, --force  When set to true user won't be asked to confirm browser opening\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Login to superface server\n\nEXAMPLES\n  $ superface login\n\n  $ superface login -f\n```\n\n_See code: [src/commands/login.ts](https://github.com/superfaceai/cli/tree/main/src/commands/login.ts)_\n\n## `superface logout`\n\nLogs out logged in user\n\n```\nUSAGE\n  $ superface logout [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Logs out logged in user\n\nEXAMPLES\n  $ superface logout\n```\n\n_See code: [dist/commands/logout.ts](https://github.com/superfaceai/cli/tree/main/src/commands/logout.ts)_\n\n## `superface map PROVIDERNAME [PROFILEID] [LANGUAGE]`\n\nCreates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters and input in the created files before execution. The created Comlinks can be tested by running `superface execute` command\n\n```\nUSAGE\n  $ superface map PROVIDERNAME [PROFILEID] [LANGUAGE] [-q] [--noColor] [--noEmoji] [-h] [-t <value>]\n\nARGUMENTS\n  PROVIDERNAME  Name of provider.\n  PROFILEID     Id of profile, eg: starwars/character-information\n  LANGUAGE      (python|js) [default: js] Language of the generated application code. Default is `js`\n\nFLAGS\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -t, --timeout=<value>  [default: 300] Operation timeout in seconds. If not provided, it will be set to 300 seconds.\n                         Useful for large API documentations.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates a new (or updates an existing) Comlink Map that maps the use case to the selected API provider. After Map is\n  available, the integration is ready to be used by our WASM OneSDK. You should check security, integration parameters\n  and input in the created files before execution. The created Comlinks can be tested by running `superface execute`\n  command\n\nEXAMPLES\n  $ superface map resend communication/send-email\n```\n\n_See code: [dist/commands/map.ts](https://github.com/superfaceai/cli/tree/main/src/commands/map.ts)_\n\n## `superface new PROVIDERNAME PROMPT [PROFILEID]`\n\nCreates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the API integration. Use name of API provider as the first argument followed by the description of your use case. You need to run `superface prepare` command before running this command.\n\n```\nUSAGE\n  $ superface new PROVIDERNAME PROMPT [PROFILEID] [-q] [--noColor] [--noEmoji] [-h] [-t <value>]\n\nARGUMENTS\n  PROVIDERNAME  URL or path to the API documentation.\n  PROMPT        Short description of your use case in natural language.\n  PROFILEID     Optional ID of the new profile, e.g. starwars/character-information. If not provided, profile ID will be\n                inferred from the prompt.\n\nFLAGS\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -t, --timeout=<value>  [default: 300] Operation timeout in seconds. If not provided, it will be set to 300 seconds.\n                         Useful for large API documentations.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Creates new Comlink Profile for your use case based on the selected API. Comlink Profile defines the interface of the\n  API integration. Use name of API provider as the first argument followed by the description of your use case. You need\n  to run `superface prepare` command before running this command.\n\nEXAMPLES\n  $ superface new swapi \"retrieve character's homeworld by their name\"\n\n  $ superface new swapi \"retrieve character's homeworld by their name\" swapi/character-information\n\n  $ superface new resend \"Send email to user\"\n```\n\n_See code: [dist/commands/new.ts](https://github.com/superfaceai/cli/tree/main/src/commands/new.ts)_\n\n## `superface prepare URLORPATH [NAME]`\n\nLearns API from the documentation and prepares the API metadata.\n\n```\nUSAGE\n  $ superface prepare URLORPATH [NAME] [-q] [--noColor] [--noEmoji] [-h] [-v] [-t <value>]\n\nARGUMENTS\n  URLORPATH  URL or path to the API documentation.\n  NAME       API name. If not provided, it will be inferred from URL or file name.\n\nFLAGS\n  -h, --help             show CLI help\n  -q, --quiet            When set to true, disables the shell echo output of action.\n  -t, --timeout=<value>  [default: 300] Operation timeout in seconds. If not provided, it will be set to 300 seconds.\n                         Useful for large API documentations.\n  -v, --verbose          When set to true command will print the indexed documentation overview. This is useful for\n                         debugging.\n  --noColor              When set to true, disables all colored output.\n  --noEmoji              When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Learns API from the documentation and prepares the API metadata.\n\n  The supported documentation formats are:\n  - OpenAPI specification (via URL or local file)\n  - documentation hosted on ReadMe.io (via URL)\n  - plain text (see below)\n\n  If you want to use plain text documentation you need to format the docs with **the separator**. The documentation\n  conventionally consists of various topics, usually set apart by separate pages or big headings. They might be\n  _authentication, rate limiting, general rules, API operations (sometimes grouped by resources)_.\n\n  It's highly recommended each of these topics (or chunks) is set apart in the docs provided for Superface, too. For\n  that, we use _the separator_.\n\n  The separator is a long `===========` ended with a newline. Technically 5 _equal_ characters are enough to form a\n  separator. The API docs ready for the ingest might look something like the following:\n\n  `\n  # Welcome to our docs\n  (...)\n  ================================\n  # API Basics\n  (...)\n  ================================\n  # Authorizing Requests\n  (...)\n  ================================\n  # /todos/:id/items\n  This endpoint lists all items (...)\n  ================================\n  (...)\n  `\n  This command prepares a Provider JSON metadata definition that can be used to generate the integration code. Superface\n  tries to fill as much as possibe from the API documentation, but some parts are required to be filled manually. You\n  can find the prepared provider definition in the `superface/` directory in the current working directory.\n\nEXAMPLES\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml\n\n  $ superface prepare https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml openai\n\n  $ superface prepare path/to/openapi.json\n\n  $ superface prepare https://workable.readme.io/reference/stages workable\n\n  $ superface prepare https://workable.readme.io/reference/stages workable --verbose\n```\n\n_See code: [dist/commands/prepare.ts](https://github.com/superfaceai/cli/tree/main/src/commands/prepare.ts)_\n\n## `superface whoami`\n\nPrints info about logged in user\n\n```\nUSAGE\n  $ superface whoami [-q] [--noColor] [--noEmoji] [-h]\n\nFLAGS\n  -h, --help   show CLI help\n  -q, --quiet  When set to true, disables the shell echo output of action.\n  --noColor    When set to true, disables all colored output.\n  --noEmoji    When set to true, disables displaying emoji in output.\n\nDESCRIPTION\n  Prints info about logged in user\n\nEXAMPLES\n  $ superface whoami\n\n  $ sf whoami\n```\n\n_See code: [src/commands/whoami.ts](https://github.com/superfaceai/cli/tree/main/src/commands/whoami.ts)_\n\n<!-- commandsstop -->\n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/cli.git` (or `git clone git@github.com:superfaceai/cli.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn <script-name>` or `npm run <script-name>`):\n\n- `test` - run all tests\n- `lint` - lint the code (use `lint --fix` to run autofix)\n- `format` - check the code formatting (use `firmat:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\nTo install a local artifact globally, symlink the binary (`ln -s bin/superface <target>`) into one of the following folders:\n\n- `~/.local/bin` - local binaries for your user only (may not be in `PATH` yet)\n- `/usr/local/bin` - system-wide binaries installed by the system administrator\n- output of `yarn global bin` - usually the same as `/use/local/bin`\n\n**Note**: The project needs to be built (into the `dist` folder) to run cli commands.\n\n**Note**: You can change url of API requests by setting `SUPERFACE_API_URL` environment variable to desired base url.\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTING.md).\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface CLI is licensed under the [MIT](LICENSE).\n\n© 2023 Superface\n","readmeFilename":"README.md"}