1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
"use strict";(self.webpackChunkcanine_docs=self.webpackChunkcanine_docs||[]).push([[2036],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>h});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=a.createContext({}),s=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=s(e.components);return a.createElement(l.Provider,{value:t},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=s(n),m=r,h=p["".concat(l,".").concat(m)]||p[m]||d[m]||o;return n?a.createElement(h,i(i({ref:t},u),{},{components:n})):a.createElement(h,i({ref:t},u))}));function h(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[p]="string"==typeof e?e:r,i[1]=c;for(var s=2;s<o;s++)i[s]=n[s];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},7343:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>d,frontMatter:()=>o,metadata:()=>c,toc:()=>s});var a=n(7462),r=(n(7294),n(3905));const o={sidebar_position:1},i="Command Lind Interface (CLI)",c={unversionedId:"using-jackal/cli/cli",id:"using-jackal/cli/cli",title:"Command Lind Interface (CLI)",description:"The CLI is a tool for both users and developers to interact with the Jackal Protocol without a traditional GUI.",source:"@site/docs/using-jackal/cli/1_cli.md",sourceDirName:"using-jackal/cli",slug:"/using-jackal/cli/cli",permalink:"/docs/using-jackal/cli/cli",draft:!1,editUrl:"https://github.com/JackalLabs/canine-docs/blob/master/docs/using-jackal/cli/1_cli.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Keplr Wallet",permalink:"/docs/using-jackal/wallet/keplr"},next:{title:"Accessing JKL Tokens on a Decentralized Exchange and Withdrawing to Jackal Protocol",permalink:"/docs/using-jackal/fund"}},l={},s=[{value:"Download and Install",id:"download-and-install",level:2},{value:"Setting up an Account",id:"setting-up-an-account",level:2},{value:"Buying Storage",id:"buying-storage",level:2}],u={toc:s},p="wrapper";function d(e){let{components:t,...n}=e;return(0,r.kt)(p,(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"command-lind-interface-cli"},"Command Lind Interface (CLI)"),(0,r.kt)("p",null,"The CLI is a tool for both users and developers to interact with the Jackal Protocol without a traditional GUI."),(0,r.kt)("h2",{id:"download-and-install"},"Download and Install"),(0,r.kt)("p",null,"Head to the ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/JackalLabs/canine-chain/releases"},"Releases")," page and download the binary for your system."),(0,r.kt)("h2",{id:"setting-up-an-account"},"Setting up an Account"),(0,r.kt)("p",null,"You can create a new account like this:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-sh"},"canined keys add {account name}\n")),(0,r.kt)("p",null,"Or you can recover an account with a seed phrase like this:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-sh"},"canined keys add {account name} --recover\n")),(0,r.kt)("h2",{id:"buying-storage"},"Buying Storage"),(0,r.kt)("p",null,"Buying 1TB for a single month:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-sh"},"canined tx storage buy-storage $(canined keys show {account name} -a) 720h 1099511627776 ujkl --from {account name} --gas-prices=0.02ujkl\n")),(0,r.kt)("p",null,"In this case, ",(0,r.kt)("inlineCode",{parentName:"p"},"720h")," is 720 hours, or one month, you can specify the hours you wish to buy storage for here. ",(0,r.kt)("inlineCode",{parentName:"p"},"1099511627776")," is how many bytes you wish to purchase, this value is 1TiB, you can increase this or decrease this as you please."))}d.isMDXComponent=!0}}]); |