Skip to content
moqsien edited this page Jan 22, 2024 · 5 revisions

This command is related to some configurations about gvc.

moqsien@moqsiendeiMac gvc % g cfg -h
Configurations.

Usage:
   config [command]

Aliases:
  config, cfg

Available Commands:
  download-conf Downloads gvc config file from your remote repo.
  repo          Sets account info for your remote Repo[Github/Gitee].
  reset         Resets configs for GVC to default values.
  upload-conf   Uploads gvc config file to your remote repo.

Flags:
  -h, --help   help for config

Use " config [command] --help" for more information about a command.
  1. Subcommand "repo" will setup remote repositary for gvc to restore all the conf files.
  2. Subcommand "reset" will reset gvc confs to default values.
  3. Subcommands "upload-" and "download-" will synchronize gvc conf file to remote repo.

Examples for setup your remote repository:

moqsien@moqsiendeiMac gvc % g cfg repo
RepoType  : github

UserName  : moqsien

AuthToken : ghp_Bp6lxd...

CryptoKey : **************

ProxyURI  : http://localhost:2023

[ Submit ]

Note:

  • Repo type can be github or gitee.
  • Username is your github/gitee username.
  • Auth token is the api auth token of github/gitee. You can google for how to get it.
  • Crypto key if for encryption your private info.

**How to get your private access token for github: **

settings

personal

**How to get your personal access token for gitee: **

gitee

Clone this wiki locally