You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,6 +23,54 @@ The `now` command is used to deploy projects and can be used from either the roo
21
23
<Snippetdarktext="now [path-to-project]" />
22
24
<Caption>Using the <InlineCode>now</InlineCode> command and supplying a path to the root directory of the project.</Caption>
23
25
26
+
### Project Linking
27
+
28
+
When running `now` in a directory for the first time, [Now CLI](/download) needs to know which [scope](/docs/now-cli#options/global-options/scope) and [Project](/docs/v2/platform/projects) you
29
+
want to deploy your directory to. You can choose to either link an existing project or to create a new one.
30
+
31
+
<Note>
32
+
Project linking requires at least version 17 of{''}
33
+
<Linkhref="/download">Now CLI</Link>. If you have an earlier version, please{''}
34
+
<Linkhref="/guides/updating-now-cli">update</Link> to the latest version.
35
+
</Note>
36
+
37
+
<br />
38
+
39
+
<Snippetclipboard={false}darktext={`now
40
+
? Set up and deploy “~/web/my-lovely-project”? [Y/n] y
41
+
? Which scope do you want to deploy to? My Awesome Team
42
+
? Link to existing project? [y/N] y
43
+
? What’s the name of your existing project? my-lovely-project
44
+
🔗 Linked to awesome-team/my-lovely-project (created .now and added it to .gitignore)`} />
45
+
<Caption>Linking an existing project when running <InlineCode>now</InlineCode> in a new directory.</Caption>
46
+
47
+
Once set up, a new `.now` directory will be added to your directory. The `.now` directory contains
48
+
both the organization and project `id` of your project. If you want unlink your directory, you can remove the `.now` directory.
49
+
50
+
You can use the[`--confirm` option](#commands/now/unique-options/confirm) to skip these questions.
51
+
52
+
### Framework Detection
53
+
54
+
When you create a new project, Now CLI will automatically detect the framework you are using and offer
55
+
default project settings accordingly.
56
+
57
+
<Snippetclipboard={false}darktext={`now
58
+
? Set up and deploy “~/web/my-new-project”? [Y/n] y
59
+
? Which scope do you want to deploy to? My Awesome Team
60
+
? Link to existing project? [y/N] n
61
+
? What’s your project’s name? my-new-project
62
+
? In which directory is your code located? my-new-project/
63
+
Auto-detected project settings (Next.js):
64
+
- Build Command: \`next build\` or \`build\` from \`package.json\`
65
+
- Output Directory: Next.js default
66
+
- Development Command: next dev --port $PORT
67
+
? Want to override the settings? [y/N]`} />
68
+
<Caption>Creating a new project with the <InlineCode>now</InlineCode> command.</Caption>
69
+
70
+
When creating a new project, you will be provided with default **Build Command**, **Output Directory**, and **Development Command** options.
71
+
72
+
You can continue with the default project settings or overwrite them. You can also edit your project settings later in your project dashboard.
73
+
24
74
### Global Options
25
75
26
76
The following [global options](#options) can be passed when using the `now` command:
@@ -44,6 +94,16 @@ The `--build-env` option, shorthand `-b`, can be used to provide environment var
ZEIT Now is best at deploying technologies that can be served over HTTP and distributed through our CDN network:
120
+
121
+
- Static websites and static generators (React, Vue, Angular, etc)
122
+
- Code that renders HTML on the server-side
123
+
- API endpoints that query databases or web APIs and return dynamic data
124
+
125
+
In general, most popular technologies and languages already have [quickstarts](/docs/v2/introduction#quickstarts) or [guides](/guides) you can start taking advantage of today.
126
+
117
127
exportdefault ({ children }) => <Docmeta={meta}>{children}</Doc>
0 commit comments