Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit c5a38ee

Browse files
author
Mrinal Wahal
committed
updated docs
1 parent 7ae5ce2 commit c5a38ee

28 files changed

Lines changed: 239 additions & 380 deletions

cmd/dev.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var (
8383
// devCmd represents the dev command
8484
var devCmd = &cobra.Command{
8585
Use: "dev [-p port]",
86-
Aliases: []string{"d", "start", "up"},
86+
Aliases: []string{"start", "up"},
8787
Short: "Start local development environment",
8888
Long: `Initialize a local Nhost environment for development and testing.`,
8989
Run: func(cmd *cobra.Command, args []string) {

cmd/root.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func Execute() {
118118
}
119119

120120
// un-comment the following to auto-generate documentation
121-
// generateDocumentation()
121+
// generateDocumentation()
122122

123123
}
124124

@@ -135,21 +135,22 @@ func generateDocumentation() {
135135
}
136136

137137
func init() {
138+
138139
cobra.OnInitialize(initConfig)
139140

140141
// Here you will define your flags and configuration settings.
141142
// Cobra supports persistent flags, which, if defined here,
142143
// will be global for your application.
143144

144-
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.nhost.yaml)")
145+
// rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.nhost.yaml)")
145146

146147
rootCmd.PersistentFlags().BoolVarP(&logger.JSON, "json", "j", false, "Print JSON formatted logs")
147148
rootCmd.PersistentFlags().StringVar(&nhost.API, "endpoint", "https://nuno.nhost.dev/v1/functions", "Auth endpoint - for internal testing")
148149
//rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
149150
//rootCmd.PersistentFlags().Bool("viper", true, "use Viper for configuration")
150151
//viper.BindPFlag("author", rootCmd.PersistentFlags().Lookup("author"))
151152
//viper.BindPFlag("useViper", rootCmd.PersistentFlags().Lookup("viper"))
152-
viper.SetDefault("author", "Mrinal Wahal mrinalwahal@gmail.com")
153+
viper.SetDefault("author", "Mrinal Wahal wahal@nhost.io")
153154
viper.SetDefault("license", "MIT")
154155

155156
//rootCmd.AddCommand(versionCmd)

docs/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## nhost
2+
3+
Open Source Firebase Alternative with GraphQL
4+
5+
### Synopsis
6+
7+
8+
_ ____ __
9+
/ | / / /_ ____ _____/ /_
10+
/ |/ / __ \/ __ \/ ___/ __/
11+
/ /| / / / / /_/ (__ ) /_
12+
/_/ |_/_/ /_/\____/____/\__/
13+
14+
15+
Nhost.io is a full-fledged serverless backend for Jamstack and client-serverless applications.
16+
Version -
17+
Documentation - https://docs.nhost.io
18+
19+
20+
```
21+
nhost [flags]
22+
```
23+
24+
### Options
25+
26+
```
27+
--config string config file (default is $HOME/.nhost.yaml)
28+
-d, --debug Show debugging level logs
29+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
30+
-h, --help help for nhost
31+
-j, --json Print JSON formatted logs
32+
-f, --log-file string Write logs to given file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [nhost dev](nhost_dev.md) - Start local development environment
38+
* [nhost env](nhost_env.md) - Manage your Nhost env vars
39+
* [nhost execute](nhost_execute.md) - Execute commands inside your Nhost containers
40+
* [nhost init](nhost_init.md) - Initialize current directory as Nhost app
41+
* [nhost link](nhost_link.md) - Link local app to a remote one
42+
* [nhost list](nhost_list.md) - List remote apps
43+
* [nhost login](nhost_login.md) - Log in to your Nhost account
44+
* [nhost logout](nhost_logout.md) - Log out from your Nhost account
45+
* [nhost logs](nhost_logs.md) - Read container logs of any service
46+
* [nhost purge](nhost_purge.md) - Delete all containers created by `nhost dev`
47+
* [nhost support](nhost_support.md) - Reach out to us
48+
* [nhost uninstall](nhost_uninstall.md) - Remove the installed CLI from system permanently
49+
* [nhost upgrade](nhost_upgrade.md) - Upgrade this version of Nhost CLI to latest version
50+
* [nhost version](nhost_version.md) - Show the current version of Nhost CLI you have installed
51+
52+
###### Auto generated by spf13/cobra on 22-Oct-2021

docs/nhost.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

docs/nhost_dev.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,28 @@ Start local development environment
77
Initialize a local Nhost environment for development and testing.
88

99
```
10-
nhost dev [flags]
10+
nhost dev [-p port] [flags]
1111
```
1212

1313
### Options
1414

1515
```
16-
-h, --help help for dev
16+
-h, --help help for dev
17+
-p, --port string Port for dev proxy (default "1337")
1718
```
1819

1920
### Options inherited from parent commands
2021

2122
```
2223
--config string config file (default is $HOME/.nhost.yaml)
2324
-d, --debug Show debugging level logs
25+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
2426
-j, --json Print JSON formatted logs
25-
-l, --log-file string Write logs to given file
27+
-f, --log-file string Write logs to given file
2628
```
2729

2830
### SEE ALSO
2931

3032
* [nhost](nhost.md) - Open Source Firebase Alternative with GraphQL
3133

32-
###### Auto generated by spf13/cobra on 19-Jun-2021
34+
###### Auto generated by spf13/cobra on 22-Oct-2021

docs/nhost_down.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/nhost_env.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
## nhost env
22

3-
Handle your Nhost env vars
4-
5-
### Synopsis
6-
7-
A longer description that spans multiple lines and likely contains examples
8-
and usage of using your command. For example:
9-
10-
Cobra is a CLI library for Go that empowers applications.
11-
This application is a tool to generate the needed files
12-
to quickly create a Cobra application.
3+
Manage your Nhost env vars
134

145
### Options
156

@@ -22,14 +13,15 @@ to quickly create a Cobra application.
2213
```
2314
--config string config file (default is $HOME/.nhost.yaml)
2415
-d, --debug Show debugging level logs
16+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
2517
-j, --json Print JSON formatted logs
26-
-l, --log-file string Write logs to given file
18+
-f, --log-file string Write logs to given file
2719
```
2820

2921
### SEE ALSO
3022

3123
* [nhost](nhost.md) - Open Source Firebase Alternative with GraphQL
32-
* [nhost env ls](nhost_env_ls.md) - Fetch env vars from remote
24+
* [nhost env list](nhost_env_list.md) - Fetch env vars from remote
3325
* [nhost env pull](nhost_env_pull.md) - Sync env vars from remote with local env
3426

35-
###### Auto generated by spf13/cobra on 19-Jun-2021
27+
###### Auto generated by spf13/cobra on 22-Oct-2021
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## nhost env ls
1+
## nhost env list
22

33
Fetch env vars from remote
44

@@ -7,26 +7,27 @@ Fetch env vars from remote
77
List your environment variables stored on remote.
88

99
```
10-
nhost env ls [flags]
10+
nhost env list [flags]
1111
```
1212

1313
### Options
1414

1515
```
16-
-h, --help help for ls
16+
-h, --help help for list
1717
```
1818

1919
### Options inherited from parent commands
2020

2121
```
2222
--config string config file (default is $HOME/.nhost.yaml)
2323
-d, --debug Show debugging level logs
24+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
2425
-j, --json Print JSON formatted logs
25-
-l, --log-file string Write logs to given file
26+
-f, --log-file string Write logs to given file
2627
```
2728

2829
### SEE ALSO
2930

30-
* [nhost env](nhost_env.md) - Handle your Nhost env vars
31+
* [nhost env](nhost_env.md) - Manage your Nhost env vars
3132

32-
###### Auto generated by spf13/cobra on 19-Jun-2021
33+
###### Auto generated by spf13/cobra on 22-Oct-2021

docs/nhost_env_pull.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ nhost env pull [flags]
2121
```
2222
--config string config file (default is $HOME/.nhost.yaml)
2323
-d, --debug Show debugging level logs
24+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
2425
-j, --json Print JSON formatted logs
25-
-l, --log-file string Write logs to given file
26+
-f, --log-file string Write logs to given file
2627
```
2728

2829
### SEE ALSO
2930

30-
* [nhost env](nhost_env.md) - Handle your Nhost env vars
31+
* [nhost env](nhost_env.md) - Manage your Nhost env vars
3132

32-
###### Auto generated by spf13/cobra on 19-Jun-2021
33+
###### Auto generated by spf13/cobra on 22-Oct-2021

docs/nhost_execute.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## nhost execute
2+
3+
Execute commands inside your Nhost containers
4+
5+
### Synopsis
6+
7+
Run shell commands directly inside your
8+
already running Nhost service containers.
9+
10+
```
11+
nhost execute [flags]
12+
```
13+
14+
### Options
15+
16+
```
17+
-c, --command string Command to run inside service
18+
-h, --help help for execute
19+
-s, --service string Service to run the command inside
20+
```
21+
22+
### Options inherited from parent commands
23+
24+
```
25+
--config string config file (default is $HOME/.nhost.yaml)
26+
-d, --debug Show debugging level logs
27+
--endpoint string Auth endpoint - for internal testing (default "https://nuno.nhost.dev/v1/functions")
28+
-j, --json Print JSON formatted logs
29+
-f, --log-file string Write logs to given file
30+
```
31+
32+
### SEE ALSO
33+
34+
* [nhost](nhost.md) - Open Source Firebase Alternative with GraphQL
35+
36+
###### Auto generated by spf13/cobra on 22-Oct-2021

0 commit comments

Comments
 (0)