github.com/vchain-us/vcn@v0.9.11-0.20210921212052-a2484d23c0b3/docs/cmd/vcn_serve.md (about) 1 ## vcn serve 2 3 Start a local API server 4 5 ### Synopsis 6 7 Start a local API server 8 9 In Codenotary Cloud mode api key is required. Provide it using x-notarization-lc-api-key header on each request. 10 11 Environment variables: 12 VCN_USER= 13 VCN_PASSWORD= 14 VCN_NOTARIZATION_PASSWORD= 15 VCN_NOTARIZATION_PASSWORD_EMPTY= 16 VCN_OTP= 17 VCN_OTP_EMPTY= 18 VCN_LC_HOST= 19 VCN_LC_PORT= 20 VCN_LC_CERT= 21 VCN_LC_SKIP_TLS_VERIFY=false 22 VCN_LC_NO_TLS=false 23 24 25 ``` 26 vcn serve [flags] 27 ``` 28 29 ### Options 30 31 ``` 32 -h, --help help for serve 33 --host string host address 34 --lc-cert string local or absolute path to a certificate file needed to set up tls connection to a Codenotary Cloud server 35 --lc-host string if set with host, action will be route to a Codenotary Cloud server 36 --lc-no-tls allow insecure connections when connecting to a Codenotary Cloud server 37 --lc-port string set port for set up a connection to a Codenotary Cloud server (default 443). If --lc-no-tls is provided default port will be 80 (default "443") 38 --lc-skip-tls-verify disables tls certificate verification when connecting to a Codenotary Cloud server 39 --port string port (default "8080") 40 --tls-cert-file string TLS certificate file 41 --tls-key-file string TLS key file 42 ``` 43 44 ### Options inherited from parent commands 45 46 ``` 47 -o, --output string output format, one of: --output=json|--output=yaml|--output=''. In Codenotary Cloud authenticate command is possible to specify also --output=attachments. It permits to download all items attached to an artifact. 48 -S, --silent silent mode, don't show progress spinner, but it will still output the result 49 --vcnpath string config files (default is /tmp/.vcn/config.json on linux, c:\temp\config.json or c:\windows\temp\config.json on Windows) 50 ``` 51 52 ### SEE ALSO 53 54 * [vcn](vcn.md) - vChain CodeNotary - Notarize and authenticate, from code to production 55 56 ###### Auto generated by spf13/cobra on 29-Jul-2021