{"_id":"@0xtemple/cli","_rev":"2-b2764651448a7df521e37a0018e005b2","name":"@0xtemple/cli","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@0xtemple/cli","version":"0.0.1","description":"Tookit for interacting with vara eps framework","keywords":["gear","vara","temples labs","blockchain"],"type":"module","author":{"name":"team@temples.build"},"homepage":"https://github.com/0xtempl/temples-engine/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/0xtempl/temples-engine/issues"},"repository":{"type":"git","url":"git+https://github.com/0xtempl/temples-engine.git"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"types":"src/index.ts","bin":{"temples":"dist/temples.js"},"dependencies":{"@0xtemple/common":"^0.0.1","chalk":"^5.0.1","@gear-js/api":"^0.36.5","@polkadot/api":"^10.11.2","child_process":"^1.0.2","dotenv":"^16.0.3","ejs":"^3.1.8","execa":"^7.0.0","glob":"^8.0.3","path":"^0.12.7","prettier":"^2.8.4","prettier-plugin-rust":"^0.1.9","typescript":"5.1.6","yargs":"^17.7.1","zod":"^3.22.3","zod-validation-error":"^1.3.0"},"devDependencies":{"@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10","ts-node":"^10.9.1","tsup":"^6.7.0","tsx":"^3.12.6","vitest":"0.31.4"},"scripts":{"build":"pnpm run build:js","build:js":"tsup && chmod +x ./dist/temples.js","clean":"pnpm run clean:js","clean:js":"rimraf dist","dev":"tsup --watch","lint":"eslint . --ext .ts"},"_id":"@0xtemple/cli@0.0.1","_integrity":"sha512-PQJ/s3v9bRg/Ouy+3kYBwJXUHHacD/tlsBqyR/H23TCSg/xKVs/w+L4SZZuYLuwR0/GLxjt6LeEcSbg3FIjgjw==","_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/aee5a2ba136a73ba5dfe25391666b1f2/0xtemple-cli-0.0.1.tgz","_from":"file:0xtemple-cli-0.0.1.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-PQJ/s3v9bRg/Ouy+3kYBwJXUHHacD/tlsBqyR/H23TCSg/xKVs/w+L4SZZuYLuwR0/GLxjt6LeEcSbg3FIjgjw==","shasum":"6cb5ab6bf1bc273ad5ac6525a1ce5fd9d1e79c8a","tarball":"https://registry.npmjs.org/@0xtemple/cli/-/cli-0.0.1.tgz","fileCount":18,"unpackedSize":45567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/vizncFtgRAGAmPBYvXrgP9WsQH2qwKdAWFgNU8abcAiEAw+qMaMoTNCQwAeZmLCysVGnJorZSKE2QKFG6leayj2Q="}]},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@163.com"},"directories":{},"maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@163.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.1_1709301393923_0.8420877580526731"},"_hasShrinkwrap":false},"0.0.2":{"name":"@0xtemple/cli","version":"0.0.2","description":"Tookit for interacting with vara eps framework","keywords":["gear","vara","temples labs","blockchain"],"type":"module","author":{"name":"team@temples.build"},"homepage":"https://github.com/0xtempl/temples-engine/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/0xtempl/temples-engine/issues"},"repository":{"type":"git","url":"git+https://github.com/0xtempl/temples-engine.git"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"types":"src/index.ts","bin":{"temples":"dist/temples.js"},"dependencies":{"@0xtemple/common":"^0.0.1","chalk":"^5.0.1","@gear-js/api":"^0.36.5","@polkadot/api":"^10.11.2","child_process":"^1.0.2","dotenv":"^16.0.3","ejs":"^3.1.8","execa":"^7.0.0","glob":"^8.0.3","path":"^0.12.7","prettier":"^2.8.4","prettier-plugin-rust":"^0.1.9","typescript":"5.1.6","yargs":"^17.7.1","zod":"^3.22.3","zod-validation-error":"^1.3.0"},"devDependencies":{"@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10","ts-node":"^10.9.1","tsup":"^6.7.0","tsx":"^3.12.6","vitest":"0.31.4"},"scripts":{"build":"pnpm run build:js","build:js":"tsup && chmod +x ./dist/temples.js","clean":"pnpm run clean:js","clean:js":"rimraf dist","dev":"tsup --watch","lint":"eslint . --ext .ts"},"_id":"@0xtemple/cli@0.0.2","_integrity":"sha512-ce/dBbI+6b8ih/16qzPNk1M2oZdhUiGR7YWZl7AmoPY418ZQMab3KQPxsNH1X1QbQvkmM13+y4Ti9uUBv+9nzA==","_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/9c0bdc09f3f90424747823da166081af/0xtemple-cli-0.0.2.tgz","_from":"file:0xtemple-cli-0.0.2.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ce/dBbI+6b8ih/16qzPNk1M2oZdhUiGR7YWZl7AmoPY418ZQMab3KQPxsNH1X1QbQvkmM13+y4Ti9uUBv+9nzA==","shasum":"50abb9cab4fcf1b1664ba7932291d1fc2a89afc7","tarball":"https://registry.npmjs.org/@0xtemple/cli/-/cli-0.0.2.tgz","fileCount":18,"unpackedSize":45511,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDys0rv914oHODgAwT+137p5vDq5x3WFHUaVxxS27iT1AIgGqRLKTwi3H3i5GOhiX/MT4Q1jlPb4zOwlBs57GYdos0="}]},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@163.com"},"directories":{},"maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@163.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.2_1709369647543_0.10865644989320122"},"_hasShrinkwrap":false},"0.0.3":{"name":"@0xtemple/cli","version":"0.0.3","description":"Tookit for interacting with vara eps framework","keywords":["gear","vara","temples labs","blockchain"],"type":"module","author":{"name":"team@temples.build"},"homepage":"https://github.com/0xtempl/temples-engine/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/0xtempl/temples-engine/issues"},"repository":{"type":"git","url":"git+https://github.com/0xtempl/temples-engine.git"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"types":"src/index.ts","bin":{"temples":"dist/temples.js"},"dependencies":{"@0xtemple/common":"^0.0.1","chalk":"^5.0.1","@gear-js/api":"^0.36.5","@polkadot/api":"^10.11.2","child_process":"^1.0.2","dotenv":"^16.0.3","ejs":"^3.1.8","execa":"^7.0.0","glob":"^8.0.3","path":"^0.12.7","prettier":"^2.8.4","prettier-plugin-rust":"^0.1.9","typescript":"5.1.6","yargs":"^17.7.1","zod":"^3.22.3","zod-validation-error":"^1.3.0"},"devDependencies":{"@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10","ts-node":"^10.9.1","tsup":"^6.7.0","tsx":"^3.12.6","vitest":"0.31.4"},"scripts":{"build":"pnpm run build:js","build:js":"tsup && chmod +x ./dist/temples.js","clean":"pnpm run clean:js","clean:js":"rimraf dist","dev":"tsup --watch","lint":"eslint . --ext .ts"},"_id":"@0xtemple/cli@0.0.3","_integrity":"sha512-oj0gZCUUhH8rOkCDqXsF1wUB9bqvMEcjjTloIzy77oGjwRcaNE9hq+/1s9VsJV3RBW7elw8+1zvweuMb3/wzPw==","_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/a19bd9bdb654a628df9174070398758e/0xtemple-cli-0.0.3.tgz","_from":"file:0xtemple-cli-0.0.3.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-oj0gZCUUhH8rOkCDqXsF1wUB9bqvMEcjjTloIzy77oGjwRcaNE9hq+/1s9VsJV3RBW7elw8+1zvweuMb3/wzPw==","shasum":"596da389010d9ad60f335db0fc5b77b2748d2e1a","tarball":"https://registry.npmjs.org/@0xtemple/cli/-/cli-0.0.3.tgz","fileCount":18,"unpackedSize":46877,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU1UNXWWVXU4SOtGjjLBniUxlmjJqHVJDATnxY21/n6AIgN/1ubzNNxlediNK43qqWJBVBpzRJeRKkH7CNdElV5Qo="}]},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@163.com"},"directories":{},"maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@163.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.0.3_1709390003298_0.47937852890938437"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-01T13:56:33.822Z","0.0.1":"2024-03-01T13:56:34.084Z","modified":"2024-03-02T14:33:23.930Z","0.0.2":"2024-03-02T08:54:07.731Z","0.0.3":"2024-03-02T14:33:23.461Z"},"maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@163.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"description":"Tookit for interacting with vara eps framework","homepage":"https://github.com/0xtempl/temples-engine/tree/main/packages/cli#readme","keywords":["gear","vara","temples labs","blockchain"],"repository":{"type":"git","url":"git+https://github.com/0xtempl/temples-engine.git"},"author":{"name":"team@temples.build"},"bugs":{"url":"https://github.com/0xtempl/temples-engine/issues"},"license":"Apache-2.0","readme":"## The Temples CLI\n\nThe Temples CLI is used for building and developing a Temples project.\n\nIt comes with\n\n\n1. `schemagen <configPath>`: Autogenerate Temples schemas based on the store schemas config file\n2. `publish`: Deploy your own world project on the specified sui network.\n3. `upgrade`: Upgrade your own world project on the specified sui network.\n4. `localnode`: Start a local Sui node for development\n5. `faucet`: An interface to the Devnet/Localnet faucet. It makes it easy to fund addresses on the Devnet/localnet\n\n## Installation\n\nWe don’t recommend installing the CLI globally.\n\nInstead, you should add the CLI as a dev dependency to your project (done automatically if you start from a starter kit using `pnpm create temples-world`), and use it with `pnpm build` inside your project directory.\n\n## Using the CLI\n\nSome commands expect a Temples config in the same folder where the CLI is being executed. This includes `schemagen` and `publish`.\n\n`faucet`, and `localnode` can be executed anywhere.\n\n## Commands\n\n### `schemagen`\n\nGenerates Store libraries from a `temples.config.ts` file. See the [Store Config and `schemagen` documentation](../schemas/config) in the Store section for more details.\n\n```bash\n# in a folder with a temples.config.ts\ntemples schemagen temples.config.ts\n```\n\n### `publish`\n\nDeploy a Temples contract project with the World framework.\n\nThis tool will use the `temples.config.ts` to detect all systems, schemas and projectName in the World and will deploy them to the chain specified.\n\nWhen using the deployer, you must set the private key of the deployer using the `PRIVATE_KEY` environment variable. You can make this easier by using [`dotenv`](https://www.npmjs.com/package/dotenv) before running `temples publish` in your deployment script.\n\nTo set up the target network for deploying the contract (mainnet/testnet/devnet/localnet), before deploying the contract, please make sure that you have some tokens in your account, which will be used for some fees when deploying the contract. (If you choose devnet/localnet, you can get some test tokens via `temples faucet`), if you need to deploy the contract on localnet, please make sure you have started localnode.\n\n```bash\n# to deploy sui locally\ntemples publish --network localnet\n# to deploy to sui devnet\ntemples publish --network devnet\n# to deploy to sui testnet\ntemples publish --network testnet\n# to deploy to sui mainnet\ntemples publish --network mainnet\n```\n\n\n### `upgrade`\n\nUpgrade Temples contract project.\n\nWhen you add a new schema or modify the system code, you need to upgrade the contract through the `upgrade` method. ([Contract upgrade specification](../migrating-from-others))\n\n```bash\ntemples upgrade --network <network:mainnet/testnet/devnet/localnet>\n```\n\n### `localnode`\n\nThe localnode uses the official `sui-test-validator` binary provided by sui to start the localnode.\n\nThe local rpc is `http://127.0.0.1:9000`\n\n```bash\ntemples localnode\n```\n\n### `faucet`\n\nConnects to a Temples faucet service to fund an address.\n\n```bash\ntemples faucet --network <network:devnet/localnet>\ntemples faucet --network <network:devnet/localnet> --recipient <address>\n```\n\nThe default faucet service automatically gives test tokens to accounts in [`dotenv`](https://www.npmjs.com/package/dotenv).\n\nTo fund an address on the devnet/localnet, run `temples faucet --recipient <address>`\n","readmeFilename":"README.md"}