Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Allow parameters to ipfs init #1296

Closed
peerchemist opened this issue May 27, 2015 · 8 comments
Closed

[Feature request] Allow parameters to ipfs init #1296

peerchemist opened this issue May 27, 2015 · 8 comments
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue topic/daemon + init topic/docs-ipfs Topic docs-ipfs topic/repo Topic repo

Comments

@peerchemist
Copy link

Default behavior is to init IPFS root in ~/.ipfs , allow parameter where this can be changed.

Examples:

ipfs init ipfs-test

ipfs init /var/lib/ipfs

@whyrusleeping
Copy link
Member

this is currently changeable through the environment variable IPFS_PATH. This also appears to be an undocumented feature which we should probably address

@daviddias
Copy link
Member

@RichardLitt we should add the env vars to the CLI API spec as it will have to be part of a language implementation

@jbenet
Copy link
Member

jbenet commented Jan 13, 2016

Indeed.

This is documented in ipfs main help now. Should likely also be documented
in ipfs daemon and ipfs init.

On Fri, Jan 1, 2016 at 22:45 David Dias notifications@github.com wrote:

@RichardLitt https://github.com/RichardLitt we should add the env vars
to the CLI API spec as it will have to be part of a language implementation


Reply to this email directly or view it on GitHub
#1296 (comment).

@dignifiedquire
Copy link
Member

Env vars are really problematic, as they will not work in the same way on Windows and on any other api transport like http. So I suggest that all config that can be done via an env variable also needs to be available as a regular flag.

@jbenet
Copy link
Member

jbenet commented Jan 13, 2016

ok we could use a --repo-path plag (or --repo if we dont think we'll
need to use it in other commands)

On Wednesday, January 13, 2016, Friedel Ziegelmayer <
notifications@github.com> wrote:

Env vars are really problematic, as they will not work in the same way on
Windows and on any other api transport like http. So I suggest that all
config that can be done via an env variable also needs to be available as a
regular flag.


Reply to this email directly or view it on GitHub
#1296 (comment).

RichardLitt added a commit that referenced this issue Jan 13, 2016
See #1296

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
@Ape
Copy link

Ape commented Jan 14, 2016

@dignifiedquire Is there any scenario where it would be useful to set IPFS_PATH on the HTTP API?

@dignifiedquire
Copy link
Member

@Ape I would say so, e.g. if it's used from another application that's running locally and it wants to start a daemon that has another home directory specific to the application.

@RichardLitt RichardLitt added exp/novice Someone with a little familiarity can pick up and removed difficulty: easy labels Feb 2, 2016
dignifiedquire added a commit to dignifiedquire/go-ipfs that referenced this issue Apr 4, 2016
Closes ipfs#1296

License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
dignifiedquire added a commit to dignifiedquire/go-ipfs that referenced this issue Apr 4, 2016
Closes ipfs#1296

License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
dignifiedquire added a commit to dignifiedquire/go-ipfs that referenced this issue Apr 4, 2016
Closes ipfs#1296

License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
@RichardLitt RichardLitt added help wanted Seeking public contribution on this issue and removed help wanted Seeking public contribution on this issue labels May 31, 2016
dignifiedquire added a commit to dignifiedquire/go-ipfs that referenced this issue Jul 27, 2016
Closes ipfs#1296

License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
@RichardLitt
Copy link
Member

#2526 was closed due to lack of activity. If anyone is interested on picking this issue up, that might be a good place to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue topic/daemon + init topic/docs-ipfs Topic docs-ipfs topic/repo Topic repo
Projects
None yet
Development

No branches or pull requests

8 participants