Projects

fw project link

project link

Link this project to Framework Cloud

Added in 0.1.0.

Adds FW_PROJECT_TOKEN and FW_CLOUD_URL to the project's .env, so the R and Python packages can publish to the server the project came from. Values already in .env are kept.

--from SLUG uses your login to get a new project token for one of your projects. --pull-token takes a project token from the project's page; fw asks for it, or reads it from stdin.

Usage

fw project link [flags]

Options

Name Type Description
--from string

the slug of your project on Framework Cloud

--pull-token bool

use a project token (asked for, or read from stdin)

--url string

Framework Cloud server

Environment variable: FW_CLOUD_URL

Exit codes

Code Meaning
0 Success
1 Failure
2 Bad flags or arguments
3 Not logged in, or the server rejected the token
4 The server has no such project or resource
5 Browser login was denied, or its code expired
6 An upload has "private" in a path; rerun with --include-private if you mean to send it

With --json, a failure also prints one JSON line on stderr: {"error": "...", "exit_code": 4}. Exit code 6 adds "reason": "private_path".

Examples

Not run

fw project link --from vaccine-study
fw project link --pull-token --url https://framework.example.edu

Related reference